[SOLVED] Jlink Read Memory issue with VS Code

  • Hi
    Using Jlink probe with Visual Studio results in having inconsistent memory information during debug.
    The jlink driver is always returning data from the cache on a read memory command. Not the real memory content from the device.

    So it is impossible to use the jlink to debug issue related to flash memory content.

    A read memory command should always access the real memory content and not use the driver cache whatever the memory type is.

    Jlink driver version 8.10c.

    Regards

  • Hello,

    You can configure the J-Link DLL to avoid reading specific areas from the cache using the ExcludeFlashCacheRange exec command.
    For more information, please refer to:
    https://kb.segger.com/J-Link_Command…FlashCacheRange

    EDIT: Additional options that helped in fjouen's case was setting SetEnableMemCache=0 and SetAllowFlashCache=0.

    Best regards,
    Simon

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

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