首先导入controlSUITE\device_support\F2837xS\v210\F2837xS_examples_Cpu1\blinky
然后选择LAUNCHXL_RAM,编译写入RAM,运行正常。
接下来改成LAUNCHXL_FLASH,编译正常,写入会出现:
C28xx_CPU1: GEL Output:Memory Map Initialization Complete
C28xx_CPU1: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
C28xx_CPU1: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 6.0.14.5)IcePick_C_0: Error: (Error -154 @ 0x0) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 6.0.14.5)C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: Breakpoint Manager: Unable to remove requested AET job
C28xx_CPU1: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
IcePick_C_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
或者卡在void InitFlash_Bank1(void)中的 Flash1EccRegs.ECC_ENABLE.bit.ENABLE = 0xA;
以前用相同内核的28075也是不能FLASH烧写。
请专家给予解释指导
Johnson Chen1:
请问你用的CCS版本是多少?应该是CCS 版本的问题。