Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
To try and simplify this, I have a LaunchpadXL with the TMS320F28377S and CCS v8.2 connected to it running blinky_cpu01. I'm trying to move the boot pins to GPIO70 so that I can pull GPIO70 high and get a blinking LED on powerup instead of using GPIO72 & GPIO84. If there's a simpler way of doing this, let me know. With that in mind:
1) How do I configure EMU_BOOTCTRL and test this change? I cannot find any sample code for doing this. The only reference anywhere to the memory address is 6.9.1 of the datasheet.
2) How do I test that change? I found on google something about issuing a "debug restart", but this new version of CCS has "CPU Reset" and "Restart" in the toolbar. Am I supposed to pause the debugger, click "CPU Reset" then hit "Resume (F8)" to check that the light will blink only if GPIO70 is pulled high?
3) Once I settle on EMU_BOOTCTRL settings, how do I then write the BOOTCTRL register? What memory address is it? Are there multiple BOOTCTRL registers for multiple zones I need to set? Do I need to use the Flash_API library and write a program that uses that? I saw some references to an old Flash-editor plugin for CCS on this forum that can apparently do the job - does that still exist somewhere? Someone else here modified the codestart.asm file to do it, is that what I'm supposed to do?
4) I want to assign GPIO70 for both boot pins, and if that pin is high, it boots into flash, and if it's low, it won't run the code and you need to plug a debugger in to run the code from CCS. So am I correct in understanding that EMU_BOOTCTRL and BOOTCTRL should be written to 0x46460B5A?
Thanks,
David