EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #289 background imageLoading...
Page #289 background image
Lab 12: Programming the Flash
C2000 Microcontroller Workshop - System Design 12 - 19
21. Under Scripts on the menu bar click:
EMU Boot Mode Select EMU_BOOT_FLASH.
This has the debugger load values into EMU_KEY and EMU_BMODE so that the
bootloader will jump to "Flash" at address 0x3F7FF6.
22. Single-Step by using the <F5> key (or you can use the Step Into button on the
horizontal toolbar) through the bootloader code until you arrive at the beginning of the
codestart section in the CodeStartBranch.asm file. (Be patient, it will take about
125 single-steps). Notice that we have placed some code in CodeStartBranch.asm
to give an option to first disable the watchdog, if selected.
23. Step a few more times until you reach the start of the C-compiler initialization routine at
the symbol _c_int00.
24. Now do Run Go Main. The code should stop at the beginning of your
main()routine. If you got to that point succesfully, it confirms that the flash has been
programmed properly, that the bootloader is properly configured for jump to flash mode,
and that the codestart section has been linked to the proper address.
25. You can now run the CPU, and you should observe the LED on the controlCARD
blinking. Try resetting the CPU, select the EMU_BOOT_FLASH boot mode, and then
hitting run (without doing all the stepping and the Go Main procedure). The LED should
be blinking again.
26. Halt the CPU.
Terminate Debug Session and Close Project
27. Terminate the active debug session using the Terminate button. This will close the
debugger and return CCS to the “CCS Edit Perspective” view.
28. Next, close the project by right-clicking on Lab12 in the Project Explorer
window and select Close Project.
Running the Code Stand-alone Operation (No Emulator)
Recall that if the device is in stand-alone boot mode, the state of GPIO34 and GPIO37 pins are
used to determine the boot mode. On the controlCARD switch SW1 controls the boot options for
the F28069 device. Check that switch SW1 positions 1 and 2 are set to the default “1 – on”
position (both switches up). This will configure the device (in stand-alone boot mode) to
GetMode. Since the OTP_KEY has not been programmed, the default GetMode will be boot
from flash. Details of the switch positions can be found in Appendix A.
29. Close Code Composer Studio.
30. Disconnect the USB cable (emulator) from the Docking Station (i.e. remove power from
the controlCARD).
31. Re-connect the USB cable to the Docking Station to power the controlCARD. The LED
should be blinking, showing that the code is now running from flash memory.
End of Exercise

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals