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.

CCS: After update 28377 CPU2's proggram using F021 API function restart failed



Tool/software: Code Composer Studio

Hello,

I am trying to add program updating function to 28377. Now I have finished erasing and downloading each section. I checked every section's new data in memory browser in debug mode, and they are all right. Then I power off 28377, and reconnect it in debug mode, in "run/ load/ verify program", it also tells me "program verifcation success". However, the program fail to restart after power off and power on again.

I only erase the CPU02 program and download the same program in TI-txt file. The program in CPU1 has not been changed. And if I only download CPU1 and CPU2's program in CCS, after power off and power on again, the program work nomally. So I do not think there is anything wrong in my program. 

I am not sure whether the _c_int00 is abnomal or the bootmode is abnomal. In fact I do nothing on both them all. they are all set by default. But if the bootmode is abnomal, I do not know how to configure the BOOTCTRL register in my program.

Besides, I have added "IPCBootCPU2(C1C2_BROM_BOOTMODE_BOOT_FROM_FLASH);" in CPU1. Thank you.

Best regards,

Yanpo, Li

  • Hello

    Are you trying to emulation standalone with the debugger connected and CPU2 isn't running?

    In order to emulate standalone with debugger connected, the following steps should perform how you expect:
    (With each CPU flash programmed already)
    1. Reset CPU1 (CPU reset, not restart)
    2. Set EMUBOOT to flash CPU1
    3. Reset(CPU reset, not restart) CPU2
    4. Run CPU2 (Don't set bootmode to flash, for this type of scenario don't use the gel scripts, you want it to go to wait boot)
    5. Run CPU1
    6. CPU1 will then boot to flash, while CPU2 is waiting for BOOT IPC command
    7. CPU1 app will send IPC to boot CPU2 to flash
    8. CPU2 will boot to flash and run

    Best regards
    Chris