Other Parts Discussed in Thread: C2000WARE
Greetings for the day,
I am working on LAUNCHXL-F28069M. I've developed a code for calculation of parameters of Encoder like RPM, direction using Ecap and I'm displaying it on the OLED display (I2C comm), the code is all good but I'm facing trouble to load the code in non volatile memory or flash memory. My board loses code as soon as I reset it or cycle power and of course for my application I'll need it to restart everytime I cycle power. I read through portal and tried various suggestions and answers and yet I can't load or read from the flash.
I've tried following answers:
- Adding _FLASH in Sysctrl or to predefined Symbols : https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/539257/f28075-programming-and-running-from-flash
- Adding Non RAM .cmd file and excluding the RAM_lnk.cmd file: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1262270/tms320f28335-flash-run/4779984?tisearch=e2e-sitesearch&keymatch=RAM%20LNK#4779984
- Toggling S1 bootmode switches (Though setting switch 3 to 0 disconnects my board, so I could only toggle 1 and 2)
- Trying different settings in Debug configuration
EDIT : I've realised I'm successfully saving my program into the flash by checking the flash memory.
- Cleared Memory - Programmed Memory
(I've also verified that RAM_lnk.cmd doesn't alter the flash memory)
though I'm now able to save the code in the flash, it's still not getting executed, is there any alteration I need to do with my connections or code?