[SOLVED] J-link "cannot access memory" but able to flash program

  • [SOLVED] J-link "cannot access memory" but able to flash program

    Hello all,


    I am using J-link seeger for debugging LPC43xx series using JTAG. I have just started programming Cortex M4 with blinky example. The program has been flashed and the LED blinks but when I try to debug it says that the J-link cannot access memory and it enters the debug session. Before I could read anything it exists. But the flashing of the program , deleting the programs are possible. The settings in KEIL ,it points to the memory at InFlash.


    Thanks in advance
    Images
    • Screenshot.jpg

      61.07 kB, 625×505, viewed 2,583 times
    • Screenshot001.jpg

      77.5 kB, 618×464, viewed 1,880 times

    The post was edited 1 time, last by stk ().

  • Hello Stark,

    Thank you for your inquiry.

    Is the blinky application setting any read protection on the memory you are trying to read out?
    Does debugging work with Ozone?
    Could you attach the J-Link log when downloading your application with Keil?
    A how to is described here.

    Best regards,
    Nino
    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.
  • Hello Nino,

    I am new to Keil and j*link. I hope I have attached the proper log file that you have mentioned.

    I have not tried with Ozone.

    Sometimes I get this type of error too. I have attached the image of the error.

    Thanks
    Images
    • error.jpg

      132.25 kB, 1,231×620, viewed 1,870 times
    Files
    • JLinkLog.txt

      (6.49 kB, downloaded 569 times, last: )

    The post was edited 1 time, last by stk ().

  • Hello Stark,

    Thank you for providing the log file.

    I just retested the setup with Keil uVision v5.24, Blinky example project from Keil on a MCB4300 eval board for the M4 and M0 core and the latest J-Link Software version 6.20.
    Everything was working fine.
    From the log and pictures you provided i noticed two things.
    According to the log you did not select JTAG but SWD as the debug interface. Make sure to set that up to JTAG.
    Looking at the last attached picture of your project seems to be set up to run on the M0 core. Make sure it is compatible to the M4 core.

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