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.

CC3235SF: CC3235SF - Custom Board

Part Number: CC3235SF
Other Parts Discussed in Thread: CC3200, UNIFLASH, SYSCONFIG,

Hello Team,

I'm using a Custom CC3235SF board and wanted to develop an application that captures the Image and sends it to HTML page.

Now the question is, I have tried this application using CC3200, where HTML files can be added in the Uniflash and this file is successfully triggered using an IP address. But I see there is no such kind of thing for CC3235SF.

I have my HTML file (below attached) and I wanted to use this application to view an Image that is captured from the board.

I have looked up on the net and couldn't really understood or found a way to do it. Any Idea on how to do this would be much appreciated.

Thanks in advance.

  • Hi Vignesh,

    Are you asking about the internal HTTP server built into the network processor? This feature is similar on CC3235.

    Please see this SimpleLink Academy lab for an introduction to the internal HTTP server. You can also check out the ImageCreator Basics lab to learn how to flash user files to the CC3235.

    Best regards,

    Sarah

  • Hi Sarah,

    Thank you for your response.

    Yes, I'm trying to use internal HTTP server of the processor. 

    In CC3200 I flashed .ucf file which had my HTML application (picture above) but it isn't the same in the case of CC3235SF.

    I've tried the portable Wi-Fi example and was successful. Could you let me know how can I put my HTML file in that example? or atleast how could I approach.

    Thanks.

    BR,

    Vignesh

  • Hi Vignesh,

    In the SimpleLink Academy example, you flashed that portable.html page using UniFlash ImageCreator. For your application, you can replace it with your own HTML page and customize the HTTP callbacks in the application source.

    The ImageCreator Basics lab shows you how to add a new user file (which is your HTML page) to the ImageCreator project.

    Best regards,

    Sarah

  • Hi Sarah,

    Thanks for your Inputs.

    I have a problem and a question.

    Problem: When I flash the portable example I'm able to see the Simplelink WiFi in the WLAN connections of my PC. But if I flash my code then I'm not able to see it.

    Is it an issue with the .bin file created by the project or something else?

    Question: Below attached is a screenshot of Uniflash once the portable WiFi module has been imported.

    .js files that are added automatically will it differ for each project, if so how can I get those files?

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    What is your application designed to do? Are you starting the NWP and connecting to an AP?

    The js and css files are not automatically added. They are only part of that ImageCreator project, and they support portable.html. If you do not use those scripts in your HTML, you do not need them. You can save a local copy of these files outside the ImageCreator project by hovering over the file name, and selecting the download icon.

    Best regards,

    Sarah

  • Hi Sarah,

    My application is designed to capture the Image created from FPGA which is embedded on CC3235SF custom board and sends it to HTTP server where the HTML file is triggered with an IP address.

    This was successfully acheived using CC3200 custom board and trying to create the same on CC3235SF as we can set it to 5GhZ.

    Yes I have initialized the device to NWP and connecting to AP using sl_Start and sl_WlanSetMode.

    Still I can't see the wifi connection.

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    sl_WlanSetMode sets the device in AP/station mode, but are you starting provisioning or calling sl_WlanConnect?

    Best regards,

    Sarah

  • Hi Sarah,

    In my application, I have turned on NWP to initialize the device then sets NWP role as AP and for the changes to take affect I initialized restart NWP function.

    Will it be possible to take a look at my code if you don't mind? That would be easier to solve the issue I suppose.

    Possibly could send it over an Email if you can provide yours.

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    Okay, so the CC3235 is in AP mode. Are you reading return values from sl_Start and sl_WlanSetMode? Do you see the default AP SSID name? It would be "mysimplelink-xxxxxx".

    I suggest testing the network_terminal SDK example using the wlan_ap_start command to make sure that you can see the device's AP with your setup.

    Do you have the latest servicepack added to the ImageCreator project and flashed to the LaunchPad?

    Best regards,

    Sarah

  • Hi Sarah,

    No, not able to read return values and couldn't see default SSID.

    As suggested, I have tested Network terminal sdk example using wlan_ap_start command 

    wlan_ap_start -s "mySimpleLink-xxxxxx" -t OPEN -l 1 -c 11 -txp 0 - This command has provided me to start simplelink as AP and could see SSID name.

    I have flashed with the latest servicepack added to the project with .bin file as well. This is all working fine with SDK examples, however when I flash the .bin file generated by the project and reset the device after flashing the SSID from the WiFi connection list is gone.

    I suppose, sl_start and sl_WlanSetMode functions in the project aren't working and i'm not able to figure out what is the issue.

    Moreover, I have placed breakpoint where Wlan module being called (main thread) to see is it really going inside the function and when I start debug session the code isn't being stopped at the point. 

    Thanks and regards,

    Vignesh

  • Hi Vignesh,

    Please try reading the return values for sl_Start and sl_WlanSetMode. You can print them to a terminal via UART or start a debug session in CCS and step through the application.

    Best regards,

    Sarah

  • Hi Sarah,

    I have problems getting the return values from sl_Start and sl_WlanSetMode as it's not going inside the function.

    I have set break points near the start and setmode, unfortunately when I start the debug session and resume, code isn't stopping at the point.

    And when I try to pause, the code halts at faultISR(void) where it's entering an Infinite loop. - I have tried to increse the heap size as well but no improvement.

    Also, I have referred Stellaris Technical documentation to look out for NVIC_FAULT_ADDR (0xE000EDF8 - the value I see in CCS from debug session) and this thing corresponds to Configurable Fault Status Register table in documentation and I'm stuck here on how to change required fields. 

    From the documentation point of view, I was trying to follow the steps needed to analyze Hard status fault and ended up with ?????? target cannot read the memory address (pic below)

    Should I possibly make changes in GEL file? - Just a question not sure though, if not please do suggest some inputs

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    I suggest starting at the beginning of main and stepping through the application to find out when the fault occurs.

    How did you migrate your example code? The CC3235SF has a different memory map than CC3200.

    Best regards,

    Sarah

  • Hi Sarah,

    I have done Step into from the beginning of main function and went all the way till the last successfully.

    Does it mean that I haven't seen the fault or there is no fault. (How will I know where is the fault whilst stepping in throughout the program?)

    Firstly used Sysconfig to get all the peripherals which I'm supposed to use for the project and from portable and terminal examples got server regarding files.

    Finally few project specified files been migrated from CC3200.

    Sorry for too many questions, as I'm quite new with ARM processors and its development methods.

    Thanks and Regards,

    Vignesh 

  • Hi Sarah,

    I have found where the fault has occured. Please look into below attached pics.

    1. This is the point (tasks.c) where I resume the debug and it halts in FaultISR (void).

    2. This is its respective function. As seen above, it says timer tick setting up is Hardware specific I could use pin_map.h and sysctl.h in CC3200 to enable missing PRCMPeripheralClk. But I assume this is not supported in CC3235SF

    3. Exactly at vPortStartFirstTask function (from port.c) the code is going in an infinite loop

    How can I approach or what step could I take to resolve this issue?

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    xPortStartScheduler is part of FreeRTOS. For the CC3235, FreeRTOS must be installed separately and linked from your CCS workspace (instructions are in the Quick Start Guide in the SDK documentation). What version are you using?

    Best regards,

    Sarah

  • Hi Sarah,

    Yes, FreeRTOS has already been installed and is set its variable path in CCS directory. (Without FreeRTOS directory, program won't build especially when using RTOS in the project)

    FreeRTOS Version: 10.4.1

    CCS Version: 10.1.1

    Debug Probe: XDS110

    I have reinstalled CCS and FreeRTOS to see whether this problem persists and seems like it's still hanging in there.

    Could you help me out by trying my project code at your side and let me know if you can figure out and will be useful for me? (Only if you have enough time though)

    And the other thing, during flashing as I'm not using Launchpad should I choose device as LAUNCHXL-CC3235SF (Launchpad) or just cc31xx/cc32xx. I have tried using both and seems no difference.

    How can I reach you through EMail?, as I wouldn't like to attach my project folder in the Forum. or else (embedded@kiehn-es.de) do ping me and I'll send the files.

    Thanks and Regards,

    Vignesh

  • Hi Vignesh,

    You were able to get the portable example working, so try starting from the FreeRTOS configuration of that project and paste in your application source.

    Best regards,

    Sarah

  • Hi Sarah,

    I'm trying to modify callback functions in Portable example according to the project needs.

    From Uniflash perspective, Portable_WiFi_CC3235SF zip file has .bin, .json and a userfile but there's no Portable.html file.

    But, after debugging and typing in the URL (mysimplelink.net/portable.html) the file appears on the server. Could you let me know how this works?

    Also, which function from the source code helping to display the HTML file on server?

    Thanks and Regards,

    Vignesh 

  • Hi Vignesh,

    The UniFlash ImageCreator project is not a typical zip file, it is a database file. To see an individual user file (portable.html), you need to open the project in UniFlash, go to the User Files menu, hover over the file name, and extract and save it separately.

    The HTTP server is built into the network processor, same as the CC3200. The server functionality is handled by the network processor, and the application interacts using the designated handlers. This is described in the HTTP server chapter of the Programmer's Guide.

    Best regards,

    Sarah

  • Hi Sarah,

    Thank you for your time and Valuable inputs.

    After quite a struggle finally I acheived to display my own HTML file.

    A bit of work needed to be done with modifying callback functions. Anyways that shouldn't be a bother.

    I'm chosing 'this resolved my issue' option and you could close the thread.

    Thanks and Regards,

    Vignesh