[SOLVED] Flasher Pro & Universal Flash Loader Config. & ChipErase

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Flasher Pro & Universal Flash Loader Config. & ChipErase

    Hi,
    we encountered an issue with Flasher Pro on Renesas RL78: it seems that the option ChipErase in univ. flash loader configurator (v2.42) does actually not erase the whole chip, it rather erases the flash pages which will be written by the loaded hex file, untouched flash pages remain as they are.
    Is it meant to behave like that - it's confusing as the checkbox in the project settings says ChipErase?
    Is there an option to actually erase the whole chip - can this be fixed when using flash loader configurator?

    For now we implemented a work around and (more or less manually) fill the empty addresses in the hex file with FFh - this seems to force the Flasher to erase also the other flash pages.
    I already checked the Flasher user manual, using #ERASE command before executing #AUTO might work, still need to try this out.

    Any help would be appreciated,
    BR, Mario
  • Hi Mario,

    pages with undefined data are not touched (erase/program or verify) for performance reasons.
    The RL78 chips do not support a ChipErase command, so the normal erase will always be used as a fallback.

    Your approach to fill up the empty addresses is correct.
    In general the #ERASE command behaves identically to the ERASE step during the #AUTO command.

    Best regards
    Arne
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi Mario,

    we will put such an option on our to-do list.

    Maybe you can use for example this utility to fill your hex file:
    avrfreaks.net/comment/390215#comment-390215

    Best regards
    Arne
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.