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.

AM5726: Run TI RTOS on secondary ARM cores on AM5726

Part Number: AM5726
Other Parts Discussed in Thread: SYSBIOS

Hi experts,

I want to run "rtos_template_app_am572x_a15" project on secondary ARM cores on AM5726.

I added "core.id" by referring to the link below.

http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/FAQ.html#ti-rtos

var Core = xdc.useModule('ti.sysbios.family.arm.ducati.Core');
Core.id = 1;

When I build the project in this state, the following error is output.

8484.error.txt
**** Build of configuration Debug for project rtos_template_app_am572x_a15 ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
 
Building file: "../main.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_76_03_01/packages;C:/ti/pdk_am57xx_1_0_17/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r release -c "C:/ti/ccs930/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32" "../main.cfg"
configuring main.xa15fg from package/cfg/main_pa15fg.cfg ...
	 SoC Type is am572x
	 SoC Type is am572x
generating custom ti.sysbios library makefile ... 
	Linking with library ti.drv.spi:./lib/am572x/a15/release/ti.drv.spi.aa15fg
	Linking with library ti.drv.gpio:./lib/am572x/a15/release/ti.drv.gpio.aa15fg
	Linking with library ti.drv.uart:./lib/am572x/a15/release/ti.drv.uart.aa15fg
	Linking with library ti.drv.i2c:./lib/am572x/a15/release/ti.drv.i2c.aa15fg
	Linking with library ti.osal:./lib/tirtos/a15/release/ti.osal.aa15fg
	Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg
Starting build of library sources ...
making C:/Users/12416/Desktop/CCSv9_3_workspace/AM572x/rtos_template_app_am572x_a15/src/sysbios/sysbios.aa15fg ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/gic/Hwi_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/Cache_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/Mmu_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/TimestampProvider_asm_gnu.asm ...
asma15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/systimer/Timer_asm_gnu.asm ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/BIOS.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/TaskSupport.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Clock.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Idle.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Intrinsics.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Queue.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Semaphore.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Swi.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/knl/Task.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/hal/Cache.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/hal/Core.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi_stack.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/hal/Hwi_startup.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/rts/gnu/SemiHostSupport.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/gic/Hwi.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/exc/Exception.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/shared/vayu/IntXbar.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/Core.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/Cache.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/Mmu.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/a15/TimestampProvider.c ...
cla15fg C:/ti/bios_6_76_03_01/packages/ti/sysbios/family/arm/ducati/Core.c ...
Build of libraries failed.
subdir_rules.mk:19: recipe for target 'build-1399971135-inproc' failed
C:\Users\12416\AppData\Local\Temp\cceR9r1F.s: Assembler messages:
C:\Users\12416\AppData\Local\Temp\cceR9r1F.s:222: Error: selected processor does not support requested special purpose register -- `mrs r0,basepri'
C:\Users\12416\AppData\Local\Temp\cceR9r1F.s:223: Error: selected processor does not support requested special purpose register -- `msr basepri,r3'
gmake[1]: *** [makefile:153: ducati_Core.o] Error 1
gmake: *** [C:/Users/12416/Desktop/CCSv9_3_workspace/AM572x/rtos_template_app_am572x_a15/src/makefile.libs:57: C:/Users/12416/Desktop/CCSv9_3_workspace/AM572x/rtos_template_app_am572x_a15/src/sysbios/sysbios.aa15fg] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_55_02_22_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/ti/xdctools_3_55_02_22_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_55_02_22_core\gmake.exe: *** [package.mak:218: package/cfg/main_pa15fg.xdl] Error 1
xdctools_3_55_02_22_core\gmake.exe: *** Deleting file 'package/cfg/main_pa15fg.xdl'
xdctools_3_55_02_22_core\gmake.exe: *** [package/cfg/main_pa15fg.xdl] Deleting file 'package/cfg/main_pa15fg.h'
xdctools_3_55_02_22_core\gmake.exe: *** [package/cfg/main_pa15fg.xdl] Deleting file 'package/cfg/main_pa15fg.c'
js: "C:/ti/xdctools_3_55_02_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1399971135-inproc] Error 1
gmake: *** [build-1399971135] Error 2
subdir_rules.mk:16: recipe for target 'build-1399971135' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Why is this error printed?
I would like to know if there are any additional settings required to run the program on the secondary core.

Best regards,
Sasaki

  • Hi,

    I want to run "rtos_template_app_am572x_a15" project on secondary ARM cores on AM5726.

    No need to modify anything in the rtos template app, just connect a15_1 instead of a15_0 and load the binary.

    See the attach for the execution.

    I ran the rtos app on my side it is not executing on A15_1. It is hanging in the uart. We have seen similar issue on DSP2, which is resolved in this release. I will file the bug for this and get it resolved in future releases. Meanwhile you can have the look at DSP2 resolution and try to implement same on A15 side.

  • Hi AKASH-san,

    Thank you for your reply.

    No need to modify anything in the rtos template app, just connect a15_1 instead of a15_0 and load the binary.

    I understand it.

    By the way, the link below states that AM572x needs to set "core.id" to run TI-RTOS on the secondary ARM core. Do I have to set this?

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/FAQ.html#ti-rtos

    Best regards,
    Sasaki

  • Hi,

    By the way, the link below states that AM572x needs to set "core.id" to run TI-RTOS on the secondary ARM core. Do I have to set this?

    I am not sure about it, but i tried GPIO_LedBlink_idkAM572x_armTestProject on my setup following the way i suggested above. After commenting all UART prints,  LED blinked.