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.

How to bypass programming flash with RM48 dev. kit?

Greetings,

Apologize if this is a stupid beginner question. I'm new to TI microcontrollers. Using the CCS v4 included in the box.

Is it possible to transfer compiled program image directly to the RAM when using the RM48 developer kit?

Writing the flash is very time consuming, besides of wearing down the flash. I am learning and  move by very small steps. Thus, I need to modify and download the program maybe a hundred times in a day. Ability to skip the lengthy flash erase and program would be wonderful!

I know about possibility to make a custom downloader, but am not sure if this will let me to debug the code using the IDE. While learning, I need full debugger capabilities (source level debug, step by instructions, view variables etc).

(Note: I've tried to enable the option to erase only the used part of the flash and skip full erase - but this does not seem to work for me)

Can the new CCS v5 do this?

Looking forward to any helpful tips...

Saul

  • Saul,

    Your question has been forwarded to the TI engineer responsible for the RM48 developer kit. He will get back to you shortly.

    Thanks and regards,

    Zhaohong

  • Saul,

    CCS5 is available for download at the following link:

    http://processors.wiki.ti.com/index.php/Download_CCS

    I recommend using the latest version of our IDE as well as compiler.

  • Hi Saul,

    To erase the necessary sector for your program:

    • Launch your configuration
    • Open CCS Debug perspective (windows->Open Perspective->...)
    • Click the drop-down menu: Tools-> On Chip Flash
    • Check “Necessary Sectors only” on the “On-Chip Flash” panel (right side)
    • Click "Remember my setting" at the bottom
    2. To use RAM instead of Flash for debugging
    • Launch your configuration
    • Open CCS Debug perspective (windows->Open Perspective->...)
    • Click the drop-down menu: Scripts -> .. to remap the RAM to 0x00
    • Modify your CMD file to load your code to FLASH (all sections)
    • Recompile your project
    • Load your program under Run->Load, it will load your code to 0x00~0xxxx which is configured as RAM
    Regards,
    QJ

  • Hi QI Wang,

    I've tried this procedure, but unsure what I actually did.

    There are two items in Scripts menu: Memory Map settings -> CCS_MemMap_RAM_at_0x0 and  Memory Switch -> Target_RAM_to_0x0.

    I clicked on both items and received some obscure red messages in output pane saying something like target cannot be stopped.

    In the RM48L950FlashLink.cmd file in the sources directory, I've changed all entries in SECTIONS  that say "RAM" to "FLASH0|FLASH1".

    After some manipulations with the IDE, many more obscure error messares and  "reset CPU" & "Reset System" commands, it kind of seems to work.

    That is, there is no more flash erase & write dialog box when the progam is loaded.

    However, after the loading completes, the target starts running and gets stuck in the loop in the memory init routine.

    Then, have to click on CPU reset, only then the target arrives to _c_int_00 and becomes usable. Need to figure how to get around this annoyance.

    Thanks a lot,

    Saul

    /* It would be wonderful if there was some "quick start guide" on the DVD in the dev.kit box, so that new users won't have to collect the vital information bit by bit. I know, I wish too much. */