Hi all
Following the documentation and code from TI I was able to implement a boot loader on my custom board with a TM4C1290NCPDT loaded at 0x0 in FLASH and my application at 0x4000. I am able to reload my application with this boot loader successfully using the sflash.exe code that I compiled from the Tivaware tools directory. It all works great, thanks!
However, I am unable to re-start the microcontroller after loading it with a boot loader, and I seem to need a full power cycle to get it to go again (at which point it works fine.)
I am sending sflash the run command with the address 0x4000 (the address of the start of my application in flash.) is that the right address I should be passing in? I thought so but now I wonder if it should instead be the resetISR vector? I am confused. I have also tried 0x0 (which is where the boot loader is in flash) and that doesn’t work either.
Power cycling my board is not a big deal but it is a bit painful as there are other parts like FPGAs that then take time to reconfigure.
Thanks
Peter
sflash command:
./sflash ../cm_mcu.bin -r 0x4000 -p 0x4000 -c /dev/ttyUSB2 -b 115200 -d -s 76
[Though I think it’s not needed to answer this problem, I’m using the latest version of Tivaware on a Linux box based on RHEL7 with a gcc based Makefile compilation path.]