Compiling the HelloWorld application with CGT
Added by Prashant Dabholkar about 7 years ago
I was trying to compile the DSP HelloWorld Application available at the following location. http://support.criticallink.com/redmine/projects/arm9-platforms/wiki/DSP_Hello_World. I got both the ARM side and the DSP side files to compile after much effort. However when I load the binaries onto the target and launch the application, it does not work. I get the following message on my console.
Loading file HelloWorldDSP.out Msgq <debug> open: 0x00008000 PROC Load successful BUG: soft lockup - CPU#0 stuck for 61s! [HelloWorld:1199] Modules linked in: dsplinkk Pid: 1199, comm: HelloWorld CPU: 0 Not tainted (2.6.34-rc1-14815-g0e16b7d #6) PC is at SHMDRV_handshake+0x8c/0xb8 [dsplinkk] LR is at LDRV_DRV_handshake+0xd4/0x294 [dsplinkk] pc : [<bf00218c>] lr : [<bf001890>] psr: 60000013 sp : c5f8fe50 ip : 80008017 fp : beac1b0c r10: bf015510 r9 : c5f8e000 r8 : 00000002 r7 : 00000000 r6 : baba01ff r5 : c688e000 r4 : c69c0100 r3 : 00000000 r2 : 102ea4bc r1 : 00000000 r0 : 00008000 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 0005317f Table: c5078000 DAC: 00000015 BUG: soft lockup - CPU#0 stuck for 61s! [HelloWorld:1199] Modules linked in: dsplinkk Pid: 1199, comm: HelloWorld CPU: 0 Not tainted (2.6.34-rc1-14815-g0e16b7d #6) PC is at SHMDRV_handshake+0x8c/0xb8 [dsplinkk] LR is at LDRV_DRV_handshake . . .
the same message keeps repeating and the board does not respond
I am using the following versions of tools
CGT : TI_CGT_C6000_7.4.5 (downloaded from the TI website and installed)
DSP BIOS : bios_5_42_01_09 (downloaded from the TI website and installed separately)
MDK : MDK_2011-03-31 (downloaded from the files section of this website)
EDMA3 : edma3_lld_01_10_00_01 (downloaded from the TI website and installed on Windows. Then I copied the libraries folders to my Virtual box)
I am using a makefile to compile my code (both ARM and DSP side).
Now the interesting part is as follows.
If I use CCS5.5 to compile the DSP side code, as instructed on http://support.criticallink.com/redmine/projects/arm9-platforms/wiki/DSP_Hello_World , then the application runs successfully. I am at a loss to understand what tools/libraries am I using incorrectly.
Anybody out there who has faced this issue?
You should dump out the full build texts between the two operations and compare.
I suspect that the memory configuration templates (which define the shared regions for DSPLINK) are somehow not the same between the 2 builds.
RE: Compiling the HelloWorld application with CGT - Added by Prashant Dabholkar about 7 years ago
I will try that out. However for the time being, I am continuing with CCS on Windows.