[SOLVED] erasing and loadbin

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

  • [SOLVED] erasing and loadbin

    Hello
    I have observed from log files that when I execute from script file the loadbin command, Jlink also does a checkup if the binfile is already in MCU flash memory; then it is erasing it, andthen it programs the bin file; after that it checks again if the bin file is in the MCU memory.

    Right now I am erasing the chip and then use the loadbin command.

    It is safe to skip the erase step?
    Is the erasing embbeded into loadbin command equivalent to erase command ?
  • Erase, without any further parameters, will erase all flalsh banks known to J-Link for the selected MCU.
    This means, for a MCU with 2 MB flash, it will erase 2 MB.

    Loadbin erases the affected ranges. Meaning if your bin file is 512 KB in size, only 512 KB (rounded up to complete sectors) will be erased + programmed.

    So if you do not care about the other ranges, you may skip the extra erase step.
    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.