RH850 application code load from boot loader

Hi..

I am working Boot loader using RH850 R7F701008 device. I could successfully flash the application firmware into flash memory,

but i couldn't load the application after flashing, i am not able to load the vector address of application firmware.

if any one worked on such issue help me sort out the issue ,

Regards

Pradeep

  • Hello Pradeep,

    Are you trying to jump to the application code directly after flashing, or are you saying it won't run the application after a reset?

    Thanks,

    Scott

  • In reply to Scott Winder:

    Hi Scott

    Thanks for ur response,

    I am not able run the application after reset

    Regards

    Pradeep

  • In reply to Deepu:

    interrupt vector table, RH850, boot loader

  • Pradeep,

    Please use the R_FCL_CMD_SET_RESET_VECTOR command in the FCL to change the reset vector.

    Best regards,

    Scott

  • In reply to Scott Winder:

    Hi Scott,

    Thanks Scott,

    we are using our own boot loader implementation,

    i am not using renesas FCL library,  can u tell me which register i have to use reset Vector

    Regards

    Pradeep

  • In reply to Deepu:

    You're not using FCL for the flash write? Are you interfacing directly with the FACI? (In that case, the "Config Program" command can be used to change the reset vector.)

  • In reply to Scott Winder:

    Hi Scott,

    Thanks Scott,

    yes we are using  FACI, could let me know to how to modify "config program" Command i tried to figure it out.

  • In reply to Deepu:

    Section 6.3.17 in the flash manual describes the process of using the command. You need to load the variable reset vector address into the FSADDR register before you begin.

  • In reply to Scott Winder:

    hello,

    I want know how to use the  R_FCL_CMD_SET_RESET_VECTOR command in the FCL to change the reset vector.

    can you give me the example?thank you !

  • In reply to roger:

    You'll need the flash manual, which requires an NDA. Please contact the Renesas office for your region for details on obtaining the relevant documentation.

  • Hi Pradeep,

    I am using RH850F1L Controller and I am also developing Boot loader, Its interfacing directly with the FACI.

    But I unable to erase the code flash memory, When I am giving the erase command then it went to the SYSERR exception.

    Could you please help me to sort out this issue ,

    Best Regards
  • In reply to Ganesh:

    Hi Ganesh,

    While giving erase command via FACI interface, make sure your code should touch any part of code flash. May be because of interrupts. Disable them all & try to execute that erase command from RAM.

    Please refer section 6.3 Use FACI Command ( more specific 6.3.1 & 6.3.11 ) RH850/E2x-FCC1Flash Memory User manual.
  • In reply to Scott Winder:

    Hey scott,

    I have concern/doubt when we try to change rest vector location using FACI command.

    Let's say i have factory production on going where we flash boot loader only. ( any of the .elf/.s37/.hex format ) The boot loader reside in 0800 0000H to 0800 FFFFH Code flash (User boot area). Once we download the file, we do power cycle.

    Now by default reset vector is set to 0000 0000H. There is no executable code present. It will never jump to bootloader. So how to tackle this situation ? Where should we write a code to load the variable reset vector address  ? If we write in boot loader, it is not going execute though.

    Is the Option Byte Setting through external device is only option ?

    Regards,

    Shubham.

  • In reply to Shubham:

    make sure your code should NOT touch any part of code flash