[SOLVED] J-Flash crashes when using flash loader that has too many sectors?

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

  • [SOLVED] J-Flash crashes when using flash loader that has too many sectors?

    J-Flash V7.80d crashes when using a custom flash loader for 64MB (or higher) chips that use 4KB sectors. It does not crash when using a custom flash loader for 32MB (or lower) chips that use 4KB sectors.

    J-Flash V7.68c does not crash.

    C Source Code

    1. const struct FlashDevice FlashDevice =
    2. {
    3. // AlgoVer
    4. 0x0101,
    5. // Name
    6. "TEST",
    7. // Type
    8. 1,
    9. // BaseAddr
    10. 0x90000000,
    11. // TotalSize
    12. 64 * 1024 * 1024,
    13. // PageSize
    14. 256,
    15. // Reserved
    16. 0,
    17. // ErasedVal
    18. 0xFF,
    19. // TimeoutProg
    20. 1000,
    21. // TimeoutErase
    22. 5000,
    23. // SectorInfo
    24. 4 * 1024, 0x00000000,
    25. 0xFFFFFFFF, 0xFFFFFFFF
    26. };
    Display All
  • Hello,

    we are not aware of such an issue with V7.80d.

    Is it possible for you to provide a simple reproducer setup (XML, ELF and custom flashloader project)?

    Best regards,
    Matthias
    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.
  • You can reproduce the crash by modifying "OpenFlashloader_CortexM_Template_EmbeddedStudio" as follows:
    Flash size: 64MB
    Sector size: 4KB

    - Put the contents of the attached zip file in C:\Users\xxx\AppData\Roaming\SEGGER\JLinkDevices
    - Start J-Link 7.80d
    - Select TEST/TEST loader
    - Click OK
    - Application crashes (silently)
    Files
    • JLinkDevices.zip

      (11.41 kB, downloaded 187 times, last: )