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.

LAUNCHXL-CC3235SF: LAUNCHXL-CC3235SF program problem

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

Good morning.

I'm using LAUNCHXL-CC3235SF with Code Composer Studio V10.1.0.

I can debug my application using on board XDS110, but after reset CC3235 start with a default application which is not mine.

SOP pins are 010.

Can anyone help me?

Thanks.

Tom

  • Hi Tom,

    You need to upload application into SPI flash, see:

    Jan

  • Hi Jan.

    Using CCS, can I only debug?

    So, using CCS don't I program on chip 1 MB flash???

    Thanks.

    Tom

  • Hi Tom,

    The issue here is that on a reboot the microcontroller checks the contents of the internal flash with the external flash. If the two differ, the microcontroller pulls the application from external flash. Like Jan mentioned before, you need to make sure you load the application into SPI flash.

    You can use the resources Jan provided, but CCS also has a built-in Sysconfig feature where you can flash the device. See this screenshot for reference:

    It's a bit blurry, but the highlighted icon allows you to flash the device in CCS.

    Best regards,
    Jacob

  • Hi Jacob.

    At this point I have a question: what is the on chip flash memory for ?

    Best regards,

    Tom

  • Hi Tom,

    1MB XIP memory is used for execution of code. You can upload code into XIP flash by debugger from CCS for development purpose. But if you want to execution code which survive device reset, you need to upload code into sFlash (4MB SPI flash). There are some exceptions, but this is not important at this case.

    Jan

  • Hi Jacob.

    I followed procedure descripted in Jan's link using SysConfig, but after reset CC3235SF start with the default application.

    I attached a screenshot of CCS workspace.

    What should I check?

    Thanks.

    Tom

  • Hi Tom,

    Did you use the "Flash" button from the CCS menu? Programming an image with the "Flash" button should be persistent across reboots. I will check this on my end, but you can also use the Uniflash tool.

    Thanks,
    Jacob

  • Hi Jacob.

    Yes. I used "Flash" button. I've used Uniflash tool also, but I can't find .bin file in my project. In the project directory there isn't a .bin file.

    How can I generate it?

    Thanks.

    Tom

  • Hi Tom,

    You can find the .bin in CCS after building the project in the MCU+Image/ directory. It will be the name of your CCS project with ".bin" added to the end. Then, you can create a new project in Uniflash, configure the project, and add this binary to create and program the image.

    Alternatively, you can configure image.syscfg and your_project_name.syscfg in your project. Next, by flashing the image with the "Flash" button in CCS, you should be able to program the device with your image through reboots.

    Thanks,
    Jacob

  • Hi Jacob.

    No file .bin is in my project. So, I can't use Uniflash.

    Using "Flash" button, console message is the following:

    Cortex_M4_0: JTAG Communication Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 9.4.0.00129)
    Cortex_M4_0: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

    Tom

  • Hi Tom,

    I think the issue is that your project may be missing a post-build step to create a binary. The post-build step can be found by going to the project properties and viewing the "Steps" tab in "Build." I recommend you reference an example from our SDK. 

    Best regards,
    Jacob

  • I started form an example.

    After your post, I opened another example (mqtt_client) project and post-build step is empty.

  • Hi Tom,

    Can you try adding the post build steps from another project? For example, you can refer to the SPI driver examples from the SDK. They should include post-build steps.

    Thanks,
    Jacob

  • Hi Jacob.

    I opened spi examples and post-build steps are empty.

    I found a guide to generate .bin in ccs and now it has been generated.

    I'm using uniflash to flash device.

    Thanks.

    Tom

  • Hi Jacob.

    All solved using Uniflash!!!

    Thanks a lot for the support.

    Tom