Part Number: TMS570LS0914
Tool/software:
Hi all,
I am working on a CAN based bootloader for the TMS570ls0914 controller. At the offset i would like to say that I won't be able to share the project because of confidentiality. However, I can share certain snippets. I'm facing issue when jumping to the application from the bootloader as it hits "prefetch entry" and gets stuck there. My application side linker configuration are as follows
Vectors: 0x00020000 length = 0x20
Flash0: 0x00020020 length= 32 Kb
I first tested this configuration by flashing this application to this address from the debugger and then flashing my bootloader without erasing these select sectors. And then from my bootloader I jumped to address 0x00020000 and the application was working.
However, the issue comes up when I generate the hex file from the application project (intel hex, romwidth 16 memwidth 16) and write to the address location 0x00020000 using Flash API. I checked the internal flash and data is good. But I can see some question marks in the internal flash (indeterminate value). Could this be due to the debugger or improper use of flash API? And could this be causing the jump issue? I can share the screenshots if needed.
As for the usage of flash APIs, I am writing 16 bytes at a time. Does this violate any memory boundaries? I'm using it in the Auto ECC mode.
I have also tried by disabling all the self tests in the bootloader side as well as application side of the code.
Please let me know if you need any additional details or code snippets.
Best,
Vishnu

(internal flash memory - application hex written via Flash API over CAN)