I get this error: Failed to execute MI command: -data-disassemble -s 4009754328 -e 4009754488 -- 3 Error message from debugger back end: Cannot access memory at address 0xeefffed8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I get this error: Failed to execute MI command: -data-disassemble -s 4009754328 -e 4009754488 -- 3 Error message from debugger back end: Cannot access memory at address 0xeefffed8

11,404 Views
stapels
Contributor I

I just received at 5410 development board om13077.  I have followed all the instructions to get the blinky demo to work.  As specified in instructions, I set software breakpoints and start the debugger and I occasionally get to choose the linker, and once it allowed me to choose the swd, but almost never to i see that menu.  Then nothing happens.  The code window shows a memory address and a button for "view disassembly..." .  When I click it, the disassembly shows the error shown in the title of this question "Failed to execute MI command:  -data-disassemble -s 4009754328 -e 4009754488 -- 3           Error message from debugger back end:  Cannot access memory at address 0xeefffed8..with different addresses specified."

0 Kudos
14 Replies

5,857 Views
lpcxpresso_supp
NXP Employee
NXP Employee

If the hello world example works, it shows there is nothing fundamentally wrong with your hardware setup.

So just import the board and chip libraries plus the periph_blinky example into the same workspace from the LPCOpen ZIP file in the Examples subdirectory of your LPCXpresso installation., Then build the periph_blinky project and then debug.

Regards,

LPCXpresso Support

0 Kudos

5,857 Views
stapels
Contributor I

I had tried importing the periph_blinky file into the "working"  semihosted hello world  project from the LPC open examples right after the hello world and it did not work.  I get a similar error to before.  I just repeated it and the Debug log below.

  

I also tried to import the files one at a time into the hello world directly but that was very difficult to track down all the variables and functions one by one and also did not work in the end.

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.134 (NXP Semiconductors)
Serial Number: A000000002
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&3a15eb26&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 11548 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 11548 bytes in 261msec
Flash Write Done
Flash Program Summary: 11548 bytes in 0.26 seconds (43.21 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: VectorCatch:HardF (PC was 0x00001C51) (VectorCatch)
read 5FAD3782[4] (2*2) failed - Em(12). System rejected access at location 0x5FAD3782 - verify population of memory and peripherals
read 56AD3782[4] (2*2) failed - Em(12). System rejected access at location 0x56AD3782 - verify population of memory and peripherals
read 56AD3782[4] (2*2) failed - Em(12). System rejected access at location 0x56AD3782 - verify population of memory and peripherals

0 Kudos

5,857 Views
lpcxpresso_supp
NXP Employee
NXP Employee

So your Device Manager screen shot shows very clearly that there is a VCOM port from your LPC-Link2. So I am not sure why you think there isn't.

But lets take a step back.

First of all, ensure that you do not have a USB cable connected to your board and if you have any form of shield board fitted on top, remove it, so that you only have the LPCXpresso board itself.

Now confirm the "name text" printed on the front of your board. From what you have said it should be "LPCXpresso54102", but it would be good to confirm this.

Please also confirm the text printed on the MCU chip on the board. The first few lines should be something like:


NXP
LPC54102J512
BD64

Now fit a jumper to header JP5, labelled "DFULink" - which can be found between the two USB connectors.

Now connect a USB cable from your PC to the "lower" USB connector (the one between JP5 and the Reset button in the bottom left hand corner of the board).

Confirm in Control Panel / Devices and Printers that you can see an "LPC" device.

Now softload the latest debug probe firmware into the built-in LPC-Link2 of your board manually, as described in:

and confirm that your LPC-Link2 now appears in "Devices and Printers" (with version 5.173)

Note : Windows may at this point want to install drivers. This should happen automatically, but you may need to wait a minute or so for it to complete.

Please also check that there are no LPCXpresso debug related processes running on your PC (as described at the bottom of the above FAQ).

Now start up LPCXpresso IDE in a completely fresh workspace.

Now create a new project for the Cortex-M4 using:

Quickstart Panel
- New Project
  - LPC54100
    - LPC5410x (M4)
      - C Project (Semihosted)

Enter a project name, then LPC54102J512 for the target MCU, then just use the "Next" button to skip through the following pages of the wizard leaving the settings at their default until your reach the end and click Finish.

Now build your new project from the Quickstart Panel, and launch a debug session using the Quickstart Panel's "Debug " button.

You should then be able to select the LPC-Link2 you previously soft-loaded the latest debug probe firmware into.

The debug connection should then start at you should end up at main. If you then click on Resume, you should see "Hello World" displayed in the IDE's console view.

If you do not see this, then please can you provide the following consoles:

  1. Debug log
  2. RedlinkServer
  3. gdb traces

as described in :

For reference, here is the Debug log that I get here:

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)
Serial Number: LSA0CQGQ
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&3b77a7a4&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpressoPro Full License - Unlimited
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 11096 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 11096 bytes in 289msec
Flash Write Done
Flash Program Summary: 11096 bytes in 0.29 seconds (37.49 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: Breakpoint #1

Regards,

LPCXpresso Support

0 Kudos

5,857 Views
stapels
Contributor I

The hello world application did in fact work.  Hello world appeared on the console.

But  what I really need is a way to use some hardware though. (GPIO, clocks, counters etc)  The LPC open seemed like a good way to do this but the semihosted version that you had me use doesn't seem to be compatible with lpc open.  I am trying to add one header at a time right now to get all references taken care of so that I can run the blinky program.  Each header or source I add manually creates a list of new functions I am missing.  I could post more detail on why this method fails for me, but I would rather be able to use all the work that you already did for me.      Can you help me flash an LED?

0 Kudos

5,857 Views
avt
Contributor III

I can't help thinking that you are trying to connect to the Cortex-M0 ('slave') instead of the Cortex-M4 ('master') on this chip. Can you make sure that:

1. the project you are creating/debugging is for the master (Cortex-M4) chip

2. when you select the target when initially creating the debug configuration, make sure you select the M4 and not the M0.

If none of that works, export the project you are trying to debug and attach it to this post

0 Kudos

5,857 Views
stapels
Contributor I

I tried all four of the available choices for a new project.  M4,M0+, M4 master, and M0+ slave.  I attached a shot of all teh selections.  The last two you have to do together according to the instructions on the link you gave above for multicore debugging.  This is the project that I attached.

Every time I run the debugger, there are no SWD devices available to select.

 I realize I know nothing, but it really seems like a driver problem to me still since "VCOM" does not appear in the device manager even though the instructions say it should.  I also attached a shot of the device manager.

Thank you.

0 Kudos

5,857 Views
lpcxpresso_supp
NXP Employee
NXP Employee

The debug log reports an access fault at a non-existent memory address, but no indication why the access may have occurred in the first place. We really need to know more about your project. Did you create it yourself, or download the prebuilt LPCOpen projects at this link LPCOpen Software Development Platform LPC5410X ?

Thanks and regards,

LPCXpresso Support

0 Kudos

5,857 Views
stapels
Contributor I

I have also recently double checked and repeated the driver installation. 

Following document UM10855, step 3 of section 3. "Getting started" there should be four devices connected (CMSIS-DAP, LPC-LinkII, LPC-SIO Port, and VCOM.)  I notice that when the device is plugged in, my device manager sees all of these except I can find nothing matching VCOM.  Is this part of the problem?  I now consistently find no SWD devices available when I run the debugger in xpresso.  Can you please help me?

0 Kudos

5,857 Views
lpcxpresso_supp
NXP Employee
NXP Employee

See : https://community.nxp.com/message/630660 

Regards,

LPCXpresso Support

0 Kudos

5,855 Views
stapels
Contributor I

and there is still no VCOM in the device manager.

0 Kudos

5,855 Views
stapels
Contributor I

Unfortunately this in not the problem.  I checked the driver and it is not the obsolete driver.  I have version 2.0.0.0.

I tried the trick with the command prompt at the end of the page you suggested, and then reinstalled the drivers.  

I get the same error when I try to debuug in xpresso:

This the debug log is while trying the "periph_blinky" project:

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.134 (NXP Semiconductors)
Serial Number: A000000002
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&3a15eb26&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 11548 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 11548 bytes in 279msec
Flash Write Done
Flash Program Summary: 11548 bytes in 0.28 seconds (40.42 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: VectorCatch:HardF (PC was 0x00001C51) (VectorCatch)
read FFFFFF00[4] (1*4) failed - Em(12). System rejected access at location 0xFFFFFF04 - verify population of memory and peripherals

 

 I'd really like to be able to use the development kit and xpresso.  I have followed the directions explicitly as far as I can tell.

0 Kudos

5,856 Views
stapels
Contributor I

Initially, I used the blinky project, obtained by importing from lpc5410x_lpcxpresso_54102_lpcxpresso_3.01a.zip, which is available at the site you mentioned.  

After you suggested the LPC541xx Cortex-M4 / M0+ Multicore Applications , I followed the directions there to get basically the same result.  To answer your question about project creation specifically, I think I am creating my own project (the instructions say "create slave project") but it seems to be from a predefined project provided by nxp.  I have repeated the directions exactly again to be sure I wasn't making a mistake with respect to the instructions at the site you provided.  Again, I choose the linker but no SWD menu appears.  

This time I have j5 populated on the board in case that makes a difference.  I have tried it both with and without j5 and get teh same error.  Here is the latest debug log, looks similar to me:

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.173 (NXP Semiconductors)
Serial Number: DRAZAQDQ
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&401d7e2&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 12136 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 12136 bytes in 258msec
Flash Write Done
Flash Program Summary: 12136 bytes in 0.26 seconds (45.94 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: VectorCatch:HardF (PC was 0x00001BC5) (VectorCatch)
read FFFFFFBE[4] (2*2) failed - Em(12). System rejected access at location 0xFFFFFFBE - verify population of memory and peripherals

0 Kudos

5,856 Views
lpcxpresso_supp
NXP Employee
NXP Employee

First of all, I would suggest that you take the time to read the LPCXpresso IDE User Guide, and perhaps watch one of the videos available from http://www.nxp.com/lpcxpresso - this should give you a basic grounding on the way LPCXpresso IDE works. This will probably explain some of the behaviour it sounds like you might be seeing when you start debug sessions.

Now one thing that I think you might have done for one or more projects is select the wrong cpu to debug (the Cortex-M0+ rather than Cortex-M4) for one or more projects. (normally the M0+ is only used for multicore projects - as described in LPC541xx Cortex-M4 / M0+ Multicore Applications )

If you manually delete any files with a .launch, .swd or .jtag file extension within your project in the Project Explorer view, that should force the IDE to allow you to select the appropriate settings again the next time you start a debug session for that project.

The other thing I would recommend is disconnecting your board from your PC and putting a jumper on the header marked DFULink (next to the debug USB port). This will allow the IDE to softload the latest debug probe firmware the next time you start a debug session, which may help with some of your issues.

If you are still having problems, then please provide a more detailed description of exactly what steps you are carrying out, and with what projects, plus what you see on the screen at each step. Please also supply your debug log :  The Debug Log

Regards,

LPCXpresso Support

0 Kudos

5,856 Views
stapels
Contributor I

Thank you for getting back to me even though I have such a vague problem.  I went to your link for training videos, and I found a power point presentation about training that I was forbidden to see even with my nxp login.  Otherwise all I saw were specific videos about certain peripherals that were not relevant.  

I went though the step by step instructions  you suggested at LPC541xx Cortex-M4 / M0+ Multicore Applications

I created both the m4 and m0 projects, but when I run the debugger on the m4 master project  I still almost never get a chance to select the SWD interface.  The first time I ran it there was a window to select SWD, but no options were available so I hit cancel.  

As you suggested, I erase the .launch files and I get to select the link-2 emulator but then I get the debug log below. I no longer get the swd select even after resetting the board and usb etc. I have provided two debug logs because the messages are sometimes slightly different.  

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.134 (NXP Semiconductors)
Serial Number: A000000002
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&3a15eb26&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 12136 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 12136 bytes in 263msec
Flash Write Done
Flash Program Summary: 12136 bytes in 0.26 seconds (45.06 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: VectorCatch:HardF (PC was 0x00001BC5) (VectorCatch)
read FFFFFFBE[4] (2*2) failed - Em(12). System rejected access at location 0xFFFFFFBE - verify population of memory and peripherals

LPCXpresso RedlinkMulti Driver v8.2 (Jun 30 2016 17:49:07 - crt_emu_cm_redlink build 723)
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.134 (NXP Semiconductors)
Serial Number: A000000002
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&3a15eb26&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Emu(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
inspected v.2 On-chip Flash Memory C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
image 'LPC5410x (512K Flash) Jun 21 2016 11:53:08'
NXP: LPC54102J512 Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
LPCXpresso Free License - Download limit is 256K
Opening flash driver C:\nxp\LPCXpresso_8.2.0_647\lpcxpresso\bin\Flash\LPC5410x_512K.cfx
Writing 12136 bytes to address 0x00000000 in Flash
Erased/Wrote page 0-0 with 12136 bytes in 262msec
Flash Write Done
Flash Program Summary: 12136 bytes in 0.26 seconds (45.23 KB/sec)
Stopped (Was Reset) [Reset from Unknown]
Stopped: VectorCatch:HardF (PC was 0x00001BC5) (VectorCatch)
read FFFFFFBE[4] (2*2) failed - Em(12). System rejected access at location 0xFFFFFFBE - verify population of memory and peripherals
(crt_emu_cm_redlink) terminating due to request from GDB

0 Kudos