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.

gcc/Linux stuck in sl_Start/SlNonOsSemGet

Other Parts Discussed in Thread: CC3200

Built with

cd example/udp_socket/gcc

make

(in a second shell)

openocd -f cc3200.cfg

(back to first)

arm-eabi-gdb exe/udp_socket.axf

Trying the udp_socket demo, but all of them show the same behaviour. 

Looking further I can see that the code is waiting for something from the NWP, but the irq is not going off.  More inspection shows that the irq bit shows pending, but has not executed the isr code (break point not hit).

(gdb) load
Loading section .text, size 0xd480 lma 0x20004000
Loading section .data, size 0x8d0 lma 0x20011480
Start address 0x20005854, load size 56656
Transfer rate: 67 KB/sec, 11331 bytes/write.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x200086dc in _SlNonOsMainLoopTask () at ../source/nonos.c:149
149        for (i=0 ; i<NONOS_MAX_SPAWN_ENTRIES ; i++)
(gdb) bt
#0  0x200086dc in _SlNonOsMainLoopTask () at ../source/nonos.c:149
#1  0x200085fa in _SlNonOsSemGet (pSyncObj=0x20014018 <g_StatMem+20> "\021", WaitValue=34 '"', SetValue=17 '\021', Timeout=255 '\377')
    at ../source/nonos.c:93
#2  0x20007e24 in _SlDrvSyncObjWaitForever (pSyncObj=0x20014018 <g_StatMem+20> "\021") at ../source/driver.c:1799
#3  0x20005a36 in sl_Start (pIfHdl=0x0, pDevName=0x0, pInitCallBack=0x0) at ../source/device.c:132
#4  0x20004834 in ConfigureSimpleLinkToDefaultState () at ../main.c:413
#5  0x20005464 in main () at ../main.c:1088
(gdb) x/8x 0xe000e100
0xe000e100:    0x00000000    0x0000c000    0x00000000    0x00000000
0xe000e110:    0x00000000    0x00020800    0x00000000    0x00000000
(gdb) x/8x 0xe000e200
0xe000e200:    0x00000000    0x00000000    0x00000000    0x00000000
0xe000e210:    0x00000000    0x00000800    0x00000000    0x00000000
(gdb) p/x $xPSR
$3 = 0x10000bb
(gdb) p $basepri
$4 = 0

Any ideas?

  • Hi Shelby,


    Please provide following input for further debuging:
    1. SDK and Service Pack Version
    2. Hardware and Chip version.
    3. Is it wlan_station pre-built binary in gcc is working ? Also after compilation


    Regards,
    Aashish
  • 1) SDK 1.1.0    servicePack ? None of the examples get as far as printing it and I do not know how to extract it from the image.  I have downloaded 1.0.0.10.0 but without windows do not know how to install it.


    2) cc3200 launchxla  r4,1 chip is 3200r1m2 (other letters:  483    ZDYH   G3)

    3) I have no method to flash the bin files, but I did transform one into an elf (and set what should be the start address) and I got the same result.  I saw a example banner, then spinning in wait for semaphore with interrupt pending.

    Shelby

  • Hi Shelby,


    Seems you are trying SDK1.1.0 with some older service pack. Please flash SP1.0.0.10.0. Currently there is no option available for flashing using Linux. You need to have access to Windows machine.


    Regards,
    Aashish
  • Hi Shelby,


    Is this issue resolved ? If yes please close this thread.


    Regards,
    Aashish
  • Updated image, still not working.

    I no longer am trying this path as I could not make progress.