[SOLVED] STM32L011x4 with wrong Flash-Ram sizes in J-Flash V6.10?

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

  • [SOLVED] STM32L011x4 with wrong Flash-Ram sizes in J-Flash V6.10?

    Hello,

    my real Chip is a STM32L011F4, but it isn´t in the list.
    So i select a STM32L011E4, should be the same memory map, only in an other package, with more pins.

    In the "Select device" dialog it is said:
    Flash Size: 16KB + 2KB + 32Bytes
    RAM: 8KB

    On the flash tab the sectors a described:
    131 Sectors, 3 Ranges:
    0x08000000 - 0x08003FFF (16KB of flash)
    0x08080000 - 0x080807FF (2KB of EEPROM)
    0x1FF80000 - 0x1FF8001F (32B of option bytes)

    According to ST the chip should have:
    Flash Size: 16KB (Flash) + 512Bytes (EEPROM) + 32Bytes (option bytes)
    RAM: 2KB

    out of the ST data sheet, i get this information:
    0x08000000 - 0x08003FFF (16KB of flash)
    0x08080000 - 0x080801FF (512B of Data EEPROM)
    0x1FF80000 - 0x1FF8001F (32B of option bytes, but only 20 of them are really usefull)


    And whe i try to do a chip erase, i get an error when trying to erase the 2KB of EEPROM, probably baceause there are only 512 bytes in the chip.

    Erasing chip ...
    - 131 sectors, 3 ranges, 0x8000000 - 0x8003FFF, 0x8080000 - 0x80807FF, 0x1FF80000 - 0x1FF8001F
    - Start of preparing flash programming
    - ERROR: Failed to prepare for programming.
    Failed to execute RAMCode for RAM check!
    - End of preparing flash programming
    - ERROR: Failed to erase chip

    I can change the RAM to 2KB on the MCU Tab, then the RAM error is gone, but still noch chip erase is possible.

    Erasing chip ...
    - 131 sectors, 3 ranges, 0x8000000 - 0x8003FFF, 0x8080000 - 0x80807FF, 0x1FF80000 - 0x1FF8001F
    - Start of preparing flash programming
    - End of preparing flash programming
    - Start of determining dirty areas in flash cache
    - End of determining dirty areas
    - CPU is running at 4189 kHz.
    - Chip erase not supported for flash bank @ 0x08000000. Switched to sector erase
    - Start of erasing sectors
    - Erasing range 0x08000000 - 0x08001FFF (064 Sectors, 8 KB)
    - Erasing range 0x08002000 - 0x08003FFF (064 Sectors, 8 KB)
    - Erasing range 0x08080000 - 0x080807FF (001 Sector, 2 KB)
    - ERROR: PC of target system has unexpected value after erasing sector. (PC = 0xFFFFFFFE)!
    ---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
    PC = FFFFFFFE
    Current: R0 = 080801FC, R1 = 00000214, R2 = 00000000, R3 = 00000000
    R4 = 08080000, R5 = 08080200, R6 = 000001C0, R7 = 40022004
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    - End of erasing sectors
    - ERROR: Erase failed
    - ERROR: Failed to erase chip


    When i deselect the sector 128 (0x08080000-0x080807FF) and do a "erase sectors", it works.

    So can you please have a look into this, and add correct support for the STM32L011F4.
    Thanks.


    Regards
    Raimund
  • Hi Raimund,


    thanks for your inquiry.
    I plan to check this later today / tomorrow morning.

    Best regards,
    Niklas
    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 Raimund,

    please find below a link to a preliminary version which should fix this issue:
    EDIT: Link to preliminary version removed, please refer to the official build of the J-Link software & documentation pack.


    Could you please give it a try and provide feedback if it works for you?

    Best regards,
    Niklas
    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.