[ABANDONED] Issue happened when JLink load axf file to MCU

  • Hello!
    MCU supplier provide flash driver under KEIL MDK. I am developing open flash driver of it. Code of open flash driver completed. During testing, I found one strange thing when JLink load axf file.
    1. I load file under KEIL MDK, using Download button(F8) function.
    2. I load axf which generated under KEIL MDK using my open flash driver. JLink will verify code inside MCU's flash first. My open flash driver verify most part successfully. But in the end, driver reported some data not match.
    3. I checked address . Address start from 0x1009464, JLink sent 0xFF for verification, data of MCU's flash is loaded using KEIL MDK.

    4. Map of axf file, address start from 0x1009464 is:


    Mean 0x01009464 is initialized data need load to RAM during system startup.
    5. I attached axf file, please rename YC3121_Keil.elf to YC3121_Keil.axf.
    6. Update:
    I load hex file which generated by KEIL MDK, verification of my open flash driver passed!
    So problem is JLink not load data of Load region??


    My question is:
    JLink not send correct data of axf or not process Load region of axf?
    Another question is:
    This MCU's flash not support sector erase, chip erase only. How to let JLink send erase chip command when end of sector verify failed?
    Thanks all!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!