Other Parts Discussed in Thread: C2000WARE
Hello. i'm a beginner of TMS320F28388D , trying to run both core with SYS/BIOS.
Here's the version of program that i'm using
- CCS 10.1.1
- C2000Ware 3.03.00
- Complier V20.2.1.LTS
- Xdc tool 3.61.02.27
- BIOS 6.83.00.18
----------------------------------------------------------------------------------------------------------------
At first, I tried it using single core with SYS/BIOS and it did work.
Then i tried same situation using both CPU cores, but it didn't work.
So I removed almost every Hwi, Swi , etc.. on app.cfg file , except simple timer & idle for trobleshooting. here's my code below
-----------------------------------------------------------------------------------------------------------------
CPU1
<main.c>
void main(void) {
Device_init();
#ifdef _FLASH
Device_bootCPU2(BOOTMODE_BOOT_TO_FLASH_SECTOR0);
#else
Device_bootCPU2(BOOTMODE_BOOT_TO_M0RAM); // activate
#endif
EINT;
ERTM;
BIOS_start();
}
add "timer1" ( 1 sec timer, counting "tickcount1" for every second ) at app.cfg
CPU2
<main.c>
void main(void){
EINT;
ERTM;
BIOS_start();
}
add "timer2" ( 2sec timer, counting "tickcount2" for every 2 sec ) at app.cfg
-------------------------------------------------------------------------------------------------------------------------
Although compiling was successful, but there are some difference between my expectation and actual performance
my expectation : increasing variables "tickcount1" & "tickcount2" seperately based on different timer period ( i think it means that SYS/BIOS is running at both CPU cores )
actual performance : when i started CPU1 first, nothing has changed (even timer1) . then i started CPU2 , both variables ( tickcount1 & 2 ) start increasing simultaneously based on timer2 period ( 2sec )
It seems that SYS/BIOS on CPU1 doesn't operate. Could you give me some advice about this situation or initial SYS/BIOS setting tips with multicore situation ?
Since I can't find examples about SYS/BIOS with dual core. I can't go any futher.
Regards,
Kim