[SOLVED] when JFLASH program hex file to the STM32L151ve, THE Address segment without data write 0x00

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

  • [SOLVED] when JFLASH program hex file to the STM32L151ve, THE Address segment without data write 0x00

    HI

    I use the JFLASH tool program the hex to the MCU flash, the JFLASH version is 6.42a, THE Address segment without data in the hex file will be write 0x00 in the flash, but I find it is 0xff for the 4.42a version , I want to write to be 0XFF on the 6.42a version ,whether to have some way to do this? thanks

  • Hello,

    Thank you for your inquiry.
    You can edit hex files in J-Flash how you like, so simply fill that empty area with 0xFF and save the hex file again. If you Flash that file now you should have the value 0xFF in memory at that location.

    We noticed that the J-Link you are registered with is out of support and maintenance for more than 10 years now.
    To get the latest features and speed benefits from J-Link we recommend upgrading to a current J-Link version. For this we offer our trade in program:
    segger.com/purchase/trade-in-program/

    Best regards,
    Nino
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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 contact us per e-mail.
    Alternatively our support system can be used as well: segger.com/ticket/
  • Hello,

    This is no bug. The erase value for the STM32L151 series is 0x00 (see ST Flash manual). This is why the gap is filled with 0x00 after erase.
    If you want some other data there make sure your hex file contains that data.

    Best regards,
    Nino
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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 contact us per e-mail.
    Alternatively our support system can be used as well: segger.com/ticket/
  • Hello,

    The behaviour in the V4.42 was incorrect and has been fixed since. 0x00 is the correct erase value as required by ST.

    Best regards,
    Nino
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    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 contact us per e-mail.
    Alternatively our support system can be used as well: segger.com/ticket/