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.

TMS320F28P659SH-Q1: CPU2 application not started

Part Number: TMS320F28P659SH-Q1


Tool/software:

Hello,

My project is currently running on CPU1. I would like to run a part of the code on CPU2. I did following for this:

1. Placed code part for CPU2 from the address 0x000E0000 ( FLASH BANK3) 

2. In the main - function, running on CPU1 added:

/*assign Flash bank 3 for CPU2*/
SysCtl_allocateFlashBank(SYSCTL_FLASH_BANK3, SYSCTL_CPUSEL_CPU2);

/*start CPU2*/
Device_bootCPU2(BOOTMODE_BOOT_TO_FLASH_BANK3_SECTOR0);

3. Start debugger and run CPU1

4. Connect to CPU2

After this, CPU2 seems to be still in ROM boot code  - PC = 0x3FA5F1

What is wrong? Why CPU2 doesn't jumt into the code on address 0x000E0000 ?

Thank you

  • Hello,

    Did you allocate RAM to CPU2? Can you share your linker command file? If your project is using any GSRAMs for CPU2 then you need to allocate it:

    MemCfg_setGSRAMControllerSel(MEMCFG_SECT_GSx, MEMCFG_GSRAMCONTROLLER_CPU2); // Replace x with actual GSRAM bank

    Best regards,
    Ibukun