Tool/software:
Hi,
I am implementing firmware upgradation on TMS320F28P659DK8PTP using a custom bootloader.
-
Currently, I am able to boot from the bootloader app in Bank0 and switch to the application stored in Bank1 & Bank2 (since the application size is larger than 256 KB). In this case, the .cmd file places the code starting from Bank1.
-
When a new firmware arrives via Standard CAN, I use the Flash API to write it into Bank3 & Bank4. For this slot, the .cmd file places the code starting from Bank3.
So effectively I have:
-
Slot A → Bank1 & Bank2
-
Slot B → Bank3 & Bank4
My doubt is
Suppose, from the bootloader, I determine the currently active slot using an EEPROM flag — let’s say it is Slot B.
I then receive new firmware and write it to Slot A, and switch execution to Slot A.
My question is: when the code starts executing from Slot A, how does it select the appropriate .cmd
file for Slot A?