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.
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,
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 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 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 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
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