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.

TIWI-SL CC3000 Wifi module GPIO problem with c5515 usb stick

Other Parts Discussed in Thread: TPS65023, TPS62260

I am trying to run LSR TIWI-SLCC3000 wifi module with c5515 usb stick. To start wifi module, PWR_EN bit of cc3000 is required to set to '1'. PWR_EN pin of wifi module is connected to GPIO 4 pin of C5515. I am using CSL GPIO functions to set PWR_EN bit and it works on C5515 EVM board(e.g Successfully, PWR_EN bit is set to 1 by setting GPIO4.).

However, the write operation to GPIO4 pin fails on usb stick. CCSv5 gives an error inside of GPIO_write() function, at the line of

"CSL_FINSR (hGpio->baseAddr->IOOUTDATA1,pin,pin,buffer)";. 

The error is "C55xx: Can't Single Step Target Program: (Error -1143 @ 0x400) Device core was hung. The debugger has forced the device to a ready state and recovered debug control, but your application's state is now corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 5.0.857.0) ". Then CCS exits from the debug.

I have also tested gpio4-5 pins by CSL_GPIO_InputPinExample and the test was successful for usb stick.

What is the problem on usb stick? I want to remind that there was not problem in EVM board.

Best regards.

Yusuf Sekman

  • Hi Yusuf,

    I cannot explain that error message...

    The only difference for GPIO4 between C5515 EVM and C5515 eZdsp is that there is a 10k pull-up on the EVM (for the MMC/SD card slot).

    I assume you are connecting through the P1-P2 RF header... Both EVM and eZdsp have identical pinouts for the P1/P2 headers.

    Can you halt the program right before it tries to set GPIO4 and manually set GPIO4 using the register view in CCS?

    Or step through the CSL code to see where it throws this CCS error above.

    The USB stick and EVM have different emulators, but CCS should handle both emulators without issue...

    Hope this helps,
    Mark

  • Mark,

    Thank you for your response. Yes, wifi is connected through P1-P2 headers. I have controlled that GPIO pins are connected to proper pins of wifi module. I tried to set gpio 4 manually, but the state of pin does not change by using register view. It has no effect to the state of the pin.  

    I step through the code, the error comes up when it tries to set IODATAOUT1 register to 1. CCSv5 gives an error inside of GPIO_write() function, at the line of

    "CSL_FINSR (hGpio->baseAddr->IOOUTDATA1,pin,pin,buffer)";. This command is not executed, debug session is terminated.

    Yusuf

  • Hi Mark,

    I solved the problem which was about power supplied to Wifi module. Since usb stick is powered by USB connection, when the wifi module is supplied by the same Vcc line, the power then starts being not enough. Hence, I connected an extra Vcc supply to wifi module, then I was able to control GPIO4 and GPIO13 while the wifi module is connected.

    Thanks for the support.:) Best regards...

    Yusuf

  • Hi Yusuf,

    Thanks for sharing your solution...

    On  the C5515 eZdsp, VCC_3V3 of P2 (to wifi module) = TPS76601 3.3V 250-mA output (shared with DSP, CODEC, NOR flash, LEDs).

    It is probably a reasonable guess that you are going over the 250mA limit. What is the power consumption of the wifi module?

    Perhaps you could replace the TPS part with another one that supports a higher current rating... I'm checking drop-in-compatibility of TPS76601 TPS77601(500mA) and TPS76701 (1A).

    This problem is avoided with the C5515 EVM and C5535 eZdsp:

    On C5515 EVM, V3.3 of P2 to wifi module = TPS65023_VCC_3V3 = VDCDC3 of TPS65023... VDCDC3 of TPS65023 which has a 1A limit...

    On the C5535 eZdsp, the 3.3V supply (TPS62260 switching converter) supports upto 600mA, which should be plenty.

    Regards,
    Mark

    [EDIT - fixed TPS77601 - 500mA LDO]

  • Mark Mckeown said:
    Perhaps you could replace the TPS part with another one that supports a higher current rating... I'm checking drop-in-compatibility of TPS77601 (500mA) and TPS76701 (1A).

    TPS77601 (500mA) and TPS76701 (1A) are pin-pin compatible with TPS76601 (250mA), but...

    The references are slightly different so you would have different feedback resistor values - see datasheets.

    The minimum output capacitor capacitance and ESR requirements are different for the TPS77601 and TPS76701 (10uF) compared to the TPS76601 (4.7uF) - see datasheets.

    Hope this helps,
    Mark