ST Turbo+ mPSD DK3400 User Manual Download Page 9

UM0299

Running the demo project

 9/24

Figure 3.

Project window

3.2 

Compiling the project and programming the flash memory

1.

Click the "Make All" icon in the menu bar:

This compiles and builds the project.

2. 

Start the debugger by clicking the debugger icon in the menu bar.

This programs the flash and refreshes the RIDE environment, showing actions in the 
"Debug/Action/Messages Window" (See 

Figure 10 on page 18

 ).

The line highlighted in blue in the Code/ Edit/Trace window indicates where MCU 
execution has stopped in the main program, waiting for your debugging command. In 
the example shown in 

Figure 10

, MCU execution stopped at the first line of executable 

code.

Summary of Contents for Turbo+ mPSD DK3400

Page 1: ...mance see Section 3 8 on page 13 This development kit contains a simple demonstration project that illustrates the power and efficiency of the software development tools based upon Raisonance RIDE sof...

Page 2: ...ng 10 3 4 Changing the display of information 10 3 5 Setting breakpoints in the program 11 3 6 Monitoring variables in the Watch window 12 3 7 Iterating code 12 3 8 Setting instruction traces 13 3 8 1...

Page 3: ...UM0299 List of tables 3 24 List of tables Table 1 Summary of icons 17 Table 2 ED3K4 jumpers factory default settings 19 Table 3 Document revision history 23...

Page 4: ...2 RIDE menu bar 8 Figure 3 Project window 9 Figure 4 MCU registers 11 Figure 5 Watch window 12 Figure 6 Trace options 14 Figure 7 Code view disassembly 15 Figure 8 Trace display 16 Figure 9 Messages...

Page 5: ...th a ED3K4 v1 1 daughter card and PSD3434E 40U6 see Figure 1 eRLINK an embedded JTAG adapter from Raisonance for debugging with Raisonance integrated development environment RIDE present on bottom sid...

Page 6: ...notes Keil uVision 3 software and support tools for PSD3400 demo version limited to 2Kbytes code size The PSD3400 circuit board with its embedded RLINK tool or your own designed circuit board with a...

Page 7: ...cept all default choices 5 Go back to the home page and click on Copy Device Drivers and Demo Code 6 Click on Install Demos for the Ride Environment Raisonance 7 Unzip the files in the foloder of your...

Page 8: ...help as you follow the procedures 3 1 Opening the demo project in RIDE 1 Launch RIDE from the Windows programs menu Raisonance Kit 6 1 or from the RIDE icon The RIDE title menu bar is diplayed see Fi...

Page 9: ...icking the debugger icon in the menu bar This programs the flash and refreshes the RIDE environment showing actions in the Debug Action Messages Window See Figure 10 on page 18 The line highlighted in...

Page 10: ...unction timer0_init 4 Double click Disassembly Code in the left debugger window This opens a display named Disassembly code led_blink showing both C and Assembly code source instructions 5 Click the S...

Page 11: ...breakpoint addresses can be set by the debugger 1 Set two breakpoints by clicking on the green dot on the left of the two lines of code timer0_delay blink_delay in the while 1 loop The green dot turns...

Page 12: ...he watch window It should report the value 0x0A see Figure 5 5 Click Go again While the code is running place the mouse over the Value field should read as 0xA right click and select Evaluate enter 0x...

Page 13: ...he LED is now permanently blinking at the slower rate This code modification is now permanent and resident in the code Flash 6 Click Reset 3 8 Setting instruction traces The PSD3400 will rapidly strea...

Page 14: ...n the real time performance of the project 3 8 2 Displaying traces 1 Go back to the file led_blink c by clicking on its file tab 2 Set one breakpoint at the following line of code before while 1 PSD_r...

Page 15: ...nk lines indicate where a breakpoint happened 4 Open the Trace Display window by clicking on the Trace led_blink file tab The last instruction that was executed MCU Program Counter at 01B is listed at...

Page 16: ...normally and in real time 7 After about 10 seconds click Stop and look at the messages in the window that records the actions see Figure 9 This window shows the number of non sequential instructions...

Page 17: ...arts and stops the debugger Step in single steps into a called function Step over steps through code one instruction at a time Executes an entire called function as one step stopping with the first in...

Page 18: ...Running the demo project UM0299 18 24 Figure 10 RIDE interface window...

Page 19: ...of the DK3400 jumpers on the daughter board These are the defaults setting for Operating Mode 2 that enables the on board eRLINK to drive the on board PSD3400 Table 2 ED3K4 jumpers factory default se...

Page 20: ...t settings JP4 1 2 3 JP6 1 2 JP7 1 2 3 JP8 JP9 JP10 1 2 1 JP1 JP2 JP3 2 1 2 JP11 2 4 6 1 3 5 JP12 JP5 1 2 3 uPSD3400 128Mbit NAND Flash uPSD eRlink JTAG connector Power Extension connector CN1 Extensi...

Page 21: ...re using software from a third party tool provider please refer to the third party for software product support and downloads B 2 Hardware spare parts Your development tool comes with the hardware you...

Page 22: ...Serial Number The serial number is found located on the rear panel of the ST Micro Connect box and is also listed on the Global Reference card provided with the emulator 5 TEB Target Emulation Board h...

Page 23: ...UM0299 Revision history 23 24 Appendix C Revision history Table 3 Document revision history Date Revision Changes 1 Jun 2006 2 Initial release 14 Feb 2007 3 Format update...

Page 24: ...NTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS E...

Reviews: