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.

Programming RM57

Other Parts Discussed in Thread: RM57L843

I'm using RM57l843in my project. I want to programming my processor by using Uart connection and not using JTAG. Is it possible in the RM57l843.

Is ISP mode available in that processor??.  

  • Hi Anil,
    What you need is to create a bootloader. This is a small program that will first need to be programmed into the flash using the JTAG interface. Once this bootloader program is running, it can use any available communication interface on the RM57 device to download your application firmware. For example, the bootloader can make use of the UART interface to download your application to the flash.

    There are multiple application notes available to show how to create a bootloader for many of the Hercules devices. However, there is no specific bootloader application note for RM57 at this moment. You can use these other devices as a good starting point. Below is one application note on bootloader using UART interface for the RM48x device. It also includes the example project.

    www.ti.com/.../spna190.pdf
  • Hi charles,

     But I want to enable ECC for entire flash. I have to calculate ECC for two different code. OK.

    But how will I merge both ECC files to form one ECC file?? 

    Regards

    Anil

  • Hi Anil,

    When you first program the bootloader into the flash using the CCS, the ECC will be automatically calculated. If you have played with RM57 you will realize that the ECC is programmed along with your program image. Otherwise, the CPU will immediately fail due to an un-correctable ECC error. In CCS, if you go to Tools->On Chip Flash you will need to click the Auto ECC generation checkbox.

    Once your bootloader is programmed into the flash the next step is to program your application firmware into the flash via the UART interface. To do that, the booloader will execute the flash API ccode to be run from the RAM. The programming API will have the capability to also automatically generate the ECC for you. So this is taken care of for you. Check the SPNU501G flash API userguide for the Fapi_issueProgrammingCommand() where you will specify programming mode to generate the ECC along with the data.
  • Hi charles,

      I have IAR development tool. Whatever you told is it possible in that??

    Regards

    Anil

  • Hi Anil,

      I I'm not sure about IAR? I think this will be a question you can ask on IAR's support site. The key question is how they generate ECC for RM57 device.

      Once the bootloader is programmed into the device the second part about downloading the application firmware via the UART is independent of of the too, whether CCS or IAR. The flash API will take care of generating ECC while you program the application image to the flash. 

  • Thanks charles,

    Can you explain how to enable "Auto ECC generation " in CCS??
    Can you share some example code??

    Regards
    Anil
  • Hi Anil,

    Please see below. On the lower right side of the screen you see the On-Chip Flash tab. You will find the 3rd checkbox which says 'Auto ECC Generation'. Check this checkbox then the CCS will automatically generate the ECC while you download your program image. To open the 'On-Chip Flash' view, you go to the Tools->On Chip Flash.

  • Thanks Charles.

    When will be boot-loader for R57 releasing??

    Regards
    Anil
  • HI Anil,
    At the moment, I'm not aware a boot loader example for RM57 is being developed. If there is an urgency by popular demand then this is something we can start looking into. As I said, there are many boot loader examples for other Hercules devices. I hope they are good starting point for you.