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.

CC3220SF-LAUNCHXL: Out of box (OOB) application issues mcuReboot stopping AP role

Part Number: CC3220SF-LAUNCHXL

Hi,

I am using CCS to make some changes to the OOB application to modify some of the code in the AP role.  From the manual, entering the AP role requires SW2 be pressed on the launchpad.  When I make the mods for the change that I want to see (a simple UART PRINT to the terminal) , launch the debugger and load the code to the launchpad, the board initializes properly (station role).  When I press the SW2 for AP role, my change does not take effect.  Looking at the code I see that there is an mcuReboot (command) issued when SW2 is pressed.  

The command seems to ignore my changes and run the image OOB code.

BTW, the changes that I make BEFORE I press SW2 (also simple UART PRINT instruction, do take effect and I can see them on the terminal output 

It's after the button press that things go sideways.  Below is a screen shot from CCS showing the location of mcuReboot in the file "out_of_box.c"

Any ideas?

Thanks,

John

  • Hi,

    mcuReboot() reset the entire platform and is mainly used during OTA update of the MCU image so it can actually take effect and it is also used here to move to AP role. When this is done, you loose your debug session since obviously the platform got reset. This explains the fact that the original image is loaded.

    If you want to make some changes to the AP configuration, you need to do these before the reboot but in any case you will not be able to debug step by step after the platform gets reset.

    Regards,

    Shlomi

  • Hi Shlomi,

    Thank you for your reply.  I will further study the code (using your input) to see how I can move forward.  Is the mcuReboot() absolutely necessary to switch to AP role or can I use a combination of sl_Stop() and sl_Start() to do it? 

    I am basically trying to learn the communication (web app to hardware) mechanism of the RED LED toggle on/off via the web demo.  

    Thanks again for your help.

    John

  • Hi,

    sl_Stop() and sl_Start() should be enough for the AP configuration.

    mcuReboot() is necessary for OTA of the MCU code only.

    Not sure why it was used here.

    Regards,

    Shlomi