This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28066: 重新定义Flash的入口Codestart

Part Number: TMS320F28066

我不使用FlashA区,把BEGIN段和bootloader代码放到FlashB区里面。芯片重新上电,代码没有跑起来,请问会是什么原因?

  • 1.如果我把自己写的bootloader代码放到B区,BEGIN 保持在0x3f7ff6。那么我在升级代码的时候是不是可以不擦除FlashA区?

    2.如果我使用JTAG升级的时候不擦除FlashA区,是不是就会避免在升级的过程中因为电源干扰导致烧录中断使DSP被锁死的情况?

  • 跟进过去了

  • 1.如果我把自己写的bootloader代码放到B区,BEGIN 保持在0x3f7ff6。那么我在升级代码的时候是不是可以不擦除FlashA区?

    Yes you can erase Flash A but you must reserve and flash program 0x3F 7FF6 and 0x3F 7FF7 with the branch instruction and address of your code, wherever that may be, before resetting your device. The branch instruction at 0x3F 7FF6 is just a sign post pointing to anywhere but the sign post cannot be moved.

    2.如果我使用JTAG升级的时候不擦除FlashA区,是不是就会避免在升级的过程中因为电源干扰导致烧录中断使DSP被锁死的情况?

    Yes, Sector A does contain the CSM passwords, avoiding erase/program of this sector will safeguard against any accidental corruption/lock of those locations.

    If we are looking for best containment of that possibility I would also advise to stay out of Sector H as well if possible.  While there are no CSM passwords there, the topology of the flash is such that Sector H acts as a balanced sector to Sector A.

    Finally, there will not be issues as long as there is no interruption of the flashing process of these sectors, this is more a extra safe step in case there could be a power fault or interruption during flash programming.