LAUNCHXL-CC3235SF: How to define __SF_DEBUG__ and add a linker build option (--retain ulDebugHeader)

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3235SF

Dear TIers,

According to the thread below, my code loaded from CCS to the internal flash can be kept across reset. All I need is to add a special header into the firmware that is downloaded via CCS.

https://e2e.ti.com/support/wireless-connectivity/wifi/f/wi-fi-forum/588229/cc3220sf-launchxl-network_terminal-project-debug-issue

Could you please provide me with more details how to define this __SF_DEBUG__ and in which file of my project. I also need to know how to add the linker build option (--retain ulDebugHeader).

My Launchxl doesn't have any external flash.

Best Regards,

Brahim

  • Hi Brahim,

    To do so, go to your CCS project properties, and in predefined symbols add "__SF_DEBUG__"

    Next, in the linker options, click on edit flags and add in the "--retain ulDebugHeader" flag.

    From there, you should have the internal flash debug functionality set.

    By the way, your CC3235SF does have an external serial flash chip, as it is a mandatory component of any system with the CC3235 much like how the 40MHz fast clock crystal is mandatory. It is marked as U9 on the PCB.

    Regards,

    Michael