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: cc3220sf- Flashing the code issue-power on reset

Part Number: CC3220SF
Other Parts Discussed in Thread: TIDC-01005, , CC3220S, UNIFLASH, ENERGIA

 Hello,

I am working on CC3220SF launchpad module.Working on wifi doorlock refer tidc-01005.which was designed for cc3220s but i have changed it to cc3220sf. which is working on SWD programming SOP setting is 001 on launchpad board.

1. I need to flash the code into cc3220sf  that is on power reset the code should boot from flash which is not happening now its running on SRAM .i need to debug every time when the power reset occurs code dosen't boot.

what is the way to flash it like for production mode.

2. Right now i'm debugging and dumping my code via Code composer studio and i'm not not able to dump the .bin file of my project via uniflash (version 5.1.0)

My bin file is showing as 496Mb ...i dont know why its that big? but i can debug using CCS 

i dont know the cause when i try to add the file in uniflash 

 the bin file(496Mb) using Uniflash as it is throwing the Error

Error:MCU Image file exceeds the maximum size for this device

i will attach the map file here 

3782.map.txt

3. i have also tried dumping the .bin file via uniflash session using CC3220SF_SWD.ccxml file. getting below error

[11/29/2019, 11:59:39 AM] [WARNING] Cortex_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
[11/29/2019, 11:59:39 AM] [ERROR] Cortex_M4_0: File Loader: Verification failed: Values at address 0x00000000 do not match Please verify target memory and memory map.
 
 
  • Hi,

    It is likely that you have mistake in linker file. I think you have "blank" hole inside you BIN file. Your BIN should have about 110kB.

    Jan

  • Hi Jan,

    I have changed my linker file from cc3220s to cc3220sf from the latest SDK which I'm using...

    I properties of my project device is set as cc3220sf_swd.

    And I'm browsing the linker file from SDK?

    Anything wrong in that?

    Regards

    Sanath Rai

  • Hi,

    Do you have changed *.cmd file from CC3220S*.cmd to CC3220SF*.cmd inside your project?

    Jan

  • Hi Jan,

    No i have not changed anywhere in the project.

    where do in need to change?

    sanath

  • Hi,

    Yes, you need change linker file definitely. Without proper linker file for CC3220SF it cannot work. You can replace *.CMD file inside your project to *.CMD from SF examples in SDK.

    Jan

  • Hi Jan

    I didn't get you.

    In my ccs  project properties i have changed the .cmd file from cc3220s to .cmd file of cc3220sf.

    Are you talking about the same thing?

  • I am debugging the code using CCS and my code is working fine .

    but i am unable to flash it using uniflash.

    sanath

  • Hi,

    CMD is a linker file. Do you have *.CMD file under your project directory? If there is not CMD file, you can copy one from SDK (e.g. \examples\rtos\CC3220SF_LAUNCHXL\demos\out_of_box\tirtos\ccs\CC3220SF_LAUNCHXL_TIRTOS.cmd ). Please make sure that this file is selected in project properties before build. Also do not forgot clean project before new build.

    Jan

  • Hi Jan,

    Yes i have done it exactly as you have explained and cleaned the project before build. 

    but still the bin file size is around 500Mb.cannot flash it

    Why can i only debug with code composer studio ? and cannot dump the code using uniflash?

    I am not able understand this.

    i will explain you the process i have done below.

    i have downloaded the wifi door lock project tidc-01005.

    i have imported to CCS and went to project directory and changed the device to cc3220sf_SWD from cc3220s and along with the .cmd file from SDK (\examples\rtos\CC3220SF_LAUNCHXL\demos\out_of_box\tirtos\ccs\CC3220SF_LAUNCHXL_TIRTOS.cmd) 

    It is compiled and i am able to debug it using CCS but the size is around 500mb.

    regards

    sanath

    Regards,

    Sanath

  • In Uniflash session the error is

    WARNING] Cortex_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
    [11/29/2019, 5:09:21 PM] [ERROR] Cortex_M4_0: File Loader: Verification failed: Values at address 0x00000000 do not match Please verify target memory and memory map.
     
    sanath
  • Hi Jan,

    its working now.thank you for the support. i cleaned the project and alo i changed the device name in

    /tirtos_builds_CC3220S_LAUNCHXL_release_ccs dependency project and rebuilt it.

    now its around 111kb and its flashed now on power on reset. 

    Regards,

    Sanath

  • Hi Sanath,

    Steps described by you looks OK. But there need to hidden something else. Unfortunately I am not able test this right now. But it sounds me like this issue with Energia which we discussed with Michael.

    Your binary is likely not properly linked and contains some big (500MB) blank bole before or beyond address of XIP flash (1MB after 0x01000000). If I should guess:

    • FLASH ends at 0x010FF800
    • RAM starts at 0x20000000

    0x20000000 - 0x010FF800 = ~495MB. From this reason I suppose that you have linked inside BIN this space. I think CCS knows that this space should not be written by JTAG/SWD and from this reason does not write there and you are able debug your code.

    I have no experience with this particular issue. Unfortunately I am not able to deeper look on this issue. You should wait for answer from other users.

    UPDATE: Great! Good to hear that you was able to resolve issue. Please mark this thread as resolved.

    Jan