Part Number: TMS320F28375S
Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hello
I am experiencing a weird problem. I have a bootloader flashed in the first two flash sectors and running from flash. Then I have a few sectors left empty. Actually they are reserved for a second bootloader, but for now They are empty. Then there is a place in flash for the main application.
Consider this:
In the bootloader code, I make a small and insignificant change to just get two different checksums (I only change the value of a defined macro, which is not even used in the code). So I get two different versions of the Bootloader. let's call them BL0_v1 and BL0_v2
I flash each one on the DSP (and there is nothing else flashed, only that bootloader. No application). And both run normally.
Case 1: BL0_v1 ==> OK
Case 2: BL0_v2 ==> OK
Then in another case, I also flash the main application besides the bootloader. In this case, with one of the bootloaders, the dsp doesn't boot, even after a power cycle!
Case 3: BL0_v1 + APP ==> OK
Case 4: BL0_v2 + APP ==> Does't run!!
I repeat again that the difference between BLv_v1 and BL0_v2 is insignificant. So whatever is causing this problem is not about the content of that small change. It happens randomly, and it has happened also by small changes in other parts of the code as well.
My question is that what could possibly be the reason of this problem? Why it happens randomly? If there is something wrong in the Bootloader code BL0_v2 (which there isn't, because v2 is essentially the same as v1), why that issue happens only when the App is also present and not without the app?
I have developed a two stage bootloader and I noticed this issue during my tests. this BL_0 is actualy the first stage loader.
At first I thought the issue is from the second stage bootoader that was developed, because during my development, sometimes just by a small change in the stage 2 bootloader something similar would happen and the dsp would just die after a reset. (During those tests I didn't change BL0). Then I noticed that even with some changes in BL_0 and without the second stage BL, This issue could happen. I appreciate any ideas bout the cause of this issue.



