Stm32 Running Water Lamp Experiment

Source: Internet
Author: User
Tags jlink
Stm32 Running water lamp Experiment

Holiday, finally have time to engage in my STM32 of the small board. Started soldering last night, right? Core Board

Welding completed, the first welding 0805 package, QFP64 is the first time. Just started feeling a little

afraid, but fortunately, the forum is not the introduction of welding experience. The theory is still relatively solid. Welding

Stm32 chip when that is a halo, first put the chip well, and then put on a little rosin, with a soldering iron

Melt the rosin and the melted rosin can hold the chip. Then weld the edges on several pins to strengthen

The chip is fixed. Finally with a soldering iron a little bit of spot welding tin, in the pin and pad contact position to put solder

.

more depressed, because it is the first time, put more solder, there are several places connected together. Fortunately there are

Take the tin strip and get the excess solder away. There are places to spare the solder really can't get off, simply looking for

Pick a needle out (now a little afraid, what if the pin section). But fortunately, finally put

The welding of the QFP64 is good.

Then plug in the Jlink ready to debug, according to Mdk_4_jlink_v7_stm32_sram.pdf inside the

Set the RVMDK (and finally know the full name of this thing RealView Microcontrol development Kit).

Then use RVMDK to open the test program for the running lights that Tony teacher gave. Click Debug, there's a problem.

In the Forum asked Tony teacher, he said that the SRAM address is not set up well. Back to RVMDK

Click Options for Targets "SRAM", then click on the Target tab.


Really dizzy, the above address less a ' 0 ', written as a 0x2000 000 (above has been corrected)

then click on the Debug tab and click Cortex-m3 J-link on the right settings

Select the Flash download tab

determine the address as shown above.


Set OK, then click Start/stop Debug Session (or Crtl+f5) to start debugging
This behavior occurs, stating that the settings are correct. It is possible to debug. Click Run, run at full speed, see

to the running lights led starts flashing (only one flash, stun, current limiting resistor only solder

side, there is no welding). When the power is turned off and the power is switched on, the LED stops blinking.


And then I thought about how I could get the stm32 to blink when it's plugged in (that is, like ordinary

Single-chip microcomputer).

Then I click Start/stop Debug Session (or CRTL+F5) to end the debugging.

I see a button next to the options Download to Flash Memory click below

The output bar displays

Programming done

Verify OK

I thought the program download completed, power off again after power, running lights still did not blink.

Then there was no way to turn to Mr. Tony for help. Tony's teacher said to put the Select target column



Changed to the original default

then click Rebuilt All Target Files, and then click Download to Flash Memory. See

Programming Done

Verify OK

The program downloaded successfully, after restarting the STm32, the running lights start flashing.


Report:


The Boot0 Boot1 jumper on the core board is directly dangling.


The jumper on the Jlink is only connected to USP, which uses the Jlink to provide power. (using Jlink for the first time, see

There is a Jtagsel jumper, thought is to do jlink time to connect it, now know not, he is

Debug Jlink of the main chip AT91 when used, do not use the jlink when using the tube)


SMD LEDs have a negative side of the Green Line (as with diodes)

Mr. Tony's

I welded the board


STM32 Development Board DIY test the first step: the Happy Lantern


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.