[SOLVED] extend flash area

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

  • [SOLVED] extend flash area

    Hello,
    I need to flash a certificate(binary file) onto my MCU (MAX32651) to a one time programmable area in the flash.

    My Flash base address is 0x10000000 and its size is 3072 KB and my certificate should be written to offset 0x801000( which is much larger then 3072K). What do I need to do to be able to flash the certificate ?



    # I am able to accomplish all of this with gdb+openocd+olimex(debugger), but I am trying to move my setup to SEGGER products.


    Thanks!
  • A little bit more details -

    When I try to flash the certificate with JFlash with this command :

    Source Code

    1. JFlash.exe -min -jflashlog"C:\Users\david\workspace\firmware"/build/jflash.log -openprj"C:\Users\david\workspace\firmware"/tools/jlink/flash_crk.jflash -open"C:\Users\david\workspace\firmware"/maxim_test_crk.bin,0x10801000 -program -exit

    I get :

    Source Code

    1. Application log started
    2. - J-Flash V7.58b (J-Flash compiled Nov 16 2021 15:00:33)
    3. - JLinkARM.dll V7.58b (DLL compiled Nov 16 2021 15:00:10)
    4. Optional command line parameters found
    5. - [1]: -min
    6. - [2]: -jflashlogC:\Users\david\workspace\firmware/build/jflash.log
    7. - [3]: -openprjC:\Users\david\workspace\firmware/tools/jlink/flash_crk.jflash
    8. - [4]: -openC:\Users\david\workspace\firmware/maxim_test_crk.bin,0x10801000
    9. - [5]: -program
    10. - [6]: -exit
    11. Reading flash device list [C:\Program Files (x86)\SEGGER\JLink\ETC/JFlash/Flash.csv] ...
    12. - List of flash devices read successfully (451 Devices)
    13. Reading MCU device list ...
    14. - List of MCU devices read successfully (8829 Devices)
    15. Opening project file [C:\Users\david\workspace\firmware\tools\jlink\flash_crk.jflash] ...
    16. - Project opened successfully
    17. Opening data file [C:\Users\david\workspace\firmware\maxim_test_crk.bin] ...
    18. - Data file opened successfully (1384 bytes, 1 range, CRC of data = 0x16F4FCC4, CRC of file = 0x16F4FCC4)
    19. Programming target (1384 bytes, 1 range) ...
    20. - Connecting ...
    21. - Connected successfully
    22. - Checking if selected data fits into selected flash sectors.
    23. - ERROR: Programming cannot be done without relocation of selected data.
    24. - ERROR: Could not program target
    25. J-Flash V7.58b Error: Programming cannot be done without relocation of selected data.
    26. Could not program target
    27. Disconnecting ...
    28. - Disconnected
    29. Close project
    30. - Project closed
    Display All
    Attaching flash_crk.jflash.
    Files
  • Hi,

    Without checking the manual, not sure what this area is. What I can say is that it is currently not supported.
    While SEGGER may add support for it in a future version, there are no immediate plans yet.
    You can always add new flash banks on your own via open flash loader:
    wiki.segger.com/Open_Flashloader


    BR
    Alex
    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.