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.

CC3200MOD: sl_start Failure

Part Number: CC3200MOD

Hello,

I'm finding an error when calling sl_start upon application init.  I find it is returning value "-2004", and I cannot find any documentation on this return value.  What does a return value of -2004 from sl_start mean and how do you suggest debugging this issue?

-Jon

  • Hi Jon,

    How looks your sl_Start() call? Return code -2004 is a SL_BAD_INTERFACE. Please see sl_Start() in cc3200-sdk\simplelink\source\device.c

    Jan
  • Thank you for the quick response Jan!

    My call to sl_start is the same as idle_profile example: mode = sl_Start(0, 0, 0);
    I can share my application if you'd like to review it further; please tell me how to upload.

    Note that when I use simplelink.a from OS build my code has no issues. It is only when I link simplelink.a from PM_Framework that this issue occurs.

    Also, it's worth noting I have found this issue on two separate computers.
    The first computer is Windows 7, setup with SDK 1.2.0, compiler TI v15.12.1.LTS, and service pack 1.0.1.6-2.7.0.0 installed on device.
    The second computer is Windows 10, setup with SDK 1.3.0, compiler TI v16.9.3.LTS, and service pack 1.0.1.11-2.9.0.0 installed on device.
  • Hi Jon,

    Hmm... your second post in this thread is interesting. I'm not familiar with such type of issue with power management framework. Please wait for answer from TI support engineer.

    Good start point can be sharing of minimalistic code with issue. Minimalistic code you can insert here by rich editor and code syntax highlighter.

    Jan
  • Hi Jon,

    The error refers to an SPI issue (i'm not sure how it relates to the PM frameweork).
    Are you able to work (at least pass the sl_Start call) with the original idle_profile example?

    br,
    Kobi
  • Thank you for clarifying this issue Kobi. I do not see the same issue in idle_profile example. My code leading up to sl_Start is very similar to idle_profile example, and my includes/linkers are also similar as well.

    Do you have any advice on if this issue might be in the includes, linkers, or actual code? I've been trying to debug this for weeks and have not been able to get anywhere as I'm not sure where the issue lies.
  • I don't know.
    I suggest that you add your changes on top of the working idle_connect one-by-one and see which one breaks it.

    br,
    Kobi
  • Thanks for the input Kobi. I overwrote my main.c file with main.c from idle_profile, fixed errors, and slowly started adding back my application. I found the issue was due to where I called platform_init(). Moving this function call further towards the beginning of my startup routine seems to have fixed the issue!

    Thank you,
    -Jon