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.

RTOS: CC3200

Other Parts Discussed in Thread: UNIFLASH, CC3200, CC3100, CC3200SDK

Tool/software: TI-RTOS

Hii,

 

I am running the ssl example on the cc3200 simple link evaluation board. I have downloaded the Equifax Secure CA certificate as described in the manual. I have then stored the certificate on flash using the CCS uniflash also as described in the documentation.

When running the example code, I got an error message -92 when running the SetSocOption for SO_SECURE_DOMAIN_NAME_VERIFICATION.

main thing is program was working fine till yesterday, today I format the flash using uniflash and again stored the certificate into flash, after that, I am getting the -92 error continuously. 

please help me to resolve the issue. 

  • Hi Nilesh,

    This seems to indicate that one of the parameters to the call to set this option is incorrect. Please post the line where you make this call.
    One of the key parameters to check is the socket ID that you are sending - make sure this is actually for a TCP socket or else setting the option will return this error.

    Best Regards,
    Ben M
  • hiii Ben,

    The actual problem is while setting the domain verification socket option the function is like below

    lRetVal = sl_SetSockOpt(iSockID, SL_SOL_SOCKET, \
    SO_SECURE_DOMAIN_NAME_VERIFICATION, \
    g_Host, strlen((const char *)g_Host));


    if( lRetVal < 0 )
    {
    UART_PRINT("Device couldn't set socket options \n\r");
    GPIO_IF_LedOn(MCU_RED_LED_GPIO);
    return lRetVal;
    }

    it returns the -92 error.

    I  disabled the function, now the program is working fine.

     

  • Hi ben,

    I am facing issue in program the device in the release mode
    I have followed the below steps

    1.Run Uniflash.
    2.Choose new target configuration.
    3.Choose connection as last CCxx interface option, Simplelink CC3200 shows off, select it, press ok.
    4.On the simplelink, put jumper on J15 (in SOP section as option 2) to Flash.
    5.In uniflash, set mcuimg.bin as your desired bin file (for example blinky.bin), check erase, update, verify.
    6.Format device with 1MB (optional).
    7.Program the device.
    8.Remove J15 jumper from board.
    9.Press SW1 button.

    but, program is not working in release mode. please suggest me the possible solution of that.

    Thanks and Regards
    Nilesh
  • Hi,

    You haven't updated service pack inside your device. Please do it. Without proper service pack you will not be able use this feature (option SO_SECURE_DOMAIN_NAME_VERIFICATION).

    Jan

  • hello jan,

    I have updated the service pack too. still it is not working.
    will you share the details steps.

    Thanks
    Nilesh
  • Hi Nilesh,

    What Service Pack and SDK do you use? I suppose that you have CC3200 launchpad version 4.1, right? Because your issue with return code -92 is exact same at this - e2e.ti.com/.../2052760 (it is not important that thread is for CC3100).

    Jan
  • SDK I am using is CC3200SDK_1.3.0
    and service pack CC3100_CC3200_ServicePack_1.0.1.11-2.9.0.0
  • Hi Nilesh,

    Are you saying that programming a known good image (like blinky.bin) does not work? After you format, then program the servicepack, then program the application image, what does the List File System command output show?

    Thanks,
    Ben M
  • Hi Ben,

    The blinky.bin project is working fine now after flashing to module. but, I am still facing issue in flashing the ssl.bin file.

    the steps I followed

    1. format the flash

    2. Burn the service pack

    3. added new file (ssl certificate)

    4. point the URL of /sys/mcuiming.bin to my ssl.bin 

    5. and then program 

    please help me to resolve the issue. 

     is it possible for you to take control of my computer, to resolve the issue. if yes then just tell me the time when you will be available.

    The program is working fine in the debug mode.

    Thanks 

    Nilesh

  • Hi Nilesh,

    When running the ssl.bin example standalone as you have described, where does your application get stuck? Is it only that the SetSockOpt() command returns the error when running from flash vs. running from the debugger? This does not make sense.

    Where did you add the ssl certificate in UniFlash?

    I am not able to take control of your computer to help resolve the issue.

    Best Regards,
    Ben M
  • Hi ben,

    Program is not responding at all after flashing the the ssl.bin, not even blinking the startup LED and not providing UART messages.

    Steps I followed to flash the certificate
    1. clicked on the addfile option
    2. named the file "/cert/testcacert.der"
    3. point the url to certificate locaton
    4. checked the erace, Update, Verify,Roll back
    5. program the device

    can you test the binary at your end, I can send you the binary of my project.
    please reply as early as poosible.

    Thanks and Regards
    Nilesh P.
  • Nilesh,

    I just double checked this. The default SSL example will build and can be loaded onto the device, then run in standalone mode after removing SOP2 and resetting the board.

    To make sure the application is using the UART prints, you have to make sure that the NOTERM symbol is removed from the Compiler -> Advanced Options -> Predefined Symbols and that the pins/clocks are correctly configured in the pinmux.c file. You also need to add the uart_if.c file to the project to make sure the definitions for InitTerm() and Report() exist.

    For the blinking, make sure you did not change the pinmux.c file such that the GPIO used to blink the LED is no longer configured.

    Best Regards,
    Ben M