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.

CCS/LAUNCHCC3220MODASF: Merge multiple demo codes together

Part Number: LAUNCHCC3220MODASF
Other Parts Discussed in Thread: CC3220S, CC3220SF

Tool/software: Code Composer Studio

Hi,

My application requires provisioning, MQTT_client, and local_OTA functionality. Is there any I can use the demos in the SDK and stitch them together to make it one application?

Or Do I have to implement all of them in a single code?

Regards

  • Hi,

    There is no way to simple way to directly combine the demos with the functionality that you want . You will need to copy each bit of functionality that you want from its demo project into one unified code project.
    In terms of your precise requirements, there isn't an example that features provisioning, mqtt client, as well as local ota functionality.
    There is however the CC3220 Elock TI Design:
    www.ti.com/.../tidc-01005
    That TI design has provisioning, mqtt client, as well as cloud ota functionality, in addition to elock-specific code. You can compare the local_ota example with the cloud_ota example for an idea of what to replace in the elock project to get local ota functionality instead. I suggest you take that elock code example as the base of your project and work from there

    Let me know if you need more guidance, or if you have further questions.

    Regards,
    Michael
  • Hey,

    Thanks for the reply.

    I tried to move the code from CC3220S to CC3220SF, also removed the BLE dependencies, but when I'm trying to run it, it goes in the Hwi_excHandle while loop. I'm unable to find why this is happening. This is happening when the main thread is trying to exit(pthread_exit(0)).
    Kindly help!
  • Hi,

    How did you move the code from CC3220S to CC3220SF? Also, how did you remove the BLE dependencies? I suggest you use the ROV tool to check your task stacks, and also check to see what exactly is causing the hard fault. See my instructions in this post:
    e2e.ti.com/.../2707429

    Regards,
    Michael
  • I moved the main files except for Bluetooth files to a new project and checked what the linker of the original code required, as per that modified the linker of the newly created project. After the project compiled successfully, I removed the motor functionalities and modified the BMI_support script and changed it for my own I2C sensor.

    It tried the ROV way you told about. Above is the screenshot for the same.

  • Hi,

    Could you please check the Hwi -> Exception tab as well as the Task -> Detailed tabs. The Hwi tab should tell you why you are getting your exception. The Task tab will tell you if you are blowing a stack somewhere. Please check those and show me what you get in the ROV viewer.

    Thanks,
    Michael