Failed to read memory @ address 0xFFFFFFFE STM32L476RG

194 views
Skip to first unread message

DisruptiveNL

unread,
Aug 4, 2019, 8:52:19 AM8/4/19
to NuttX
I get a warning when building Nuttx in Eclipse. (picture taken)

Failed to read memory @ address 0xFFFFFFFE

CRC Register?

What could this mean?

Thanks in advance.
Ben
error_failed_to_read_memory.jpg

Dave Marples

unread,
Aug 4, 2019, 10:20:31 AM8/4/19
to nuttx
It's just trying to read a location that doesn't really exist. Add 'set inaccessible by default off' (from memory...exact syntax may need attention) to your gdb startup options and it should go away...but it will still be reading junk cos there's nothing there. 

That address is in something that gdb is trying to read the contents of (pointer to a memory location, LR, PC etc) which can happen on boot or anytime you break regular flow through a swi, interrupt, exception etc.  If I remember correctly the whole set of 0xFFFFFFFx addresses have special meaning in LR, that I cannot remember the detail of, about how you can to be at this address (power on reset, exception etc etc) which allows the CPU to do things like switch stack and go from protected to user mode. A plough through https://developer.arm.com/docs/ddi0403/e/armv7-m-architecture-reference-manual will allow you to become a proper cortex bore at parties....

Regards

Dave 

--
You received this message because you are subscribed to the Google Groups "NuttX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nuttx/0365fc3c-738b-4c3b-b78a-17752b3fdaae%40googlegroups.com.

DisruptiveNL

unread,
Aug 4, 2019, 1:18:57 PM8/4/19
to NuttX
Thanks, Dave! That's clear!

Op zondag 4 augustus 2019 16:20:31 UTC+2 schreef Dave Marples:
To unsubscribe from this group and stop receiving emails from it, send an email to nu...@googlegroups.com.

David Sidrane

unread,
Aug 5, 2019, 8:06:47 AM8/5/19
to nu...@googlegroups.com

Hi Ben,

 

Did you get the device in setting under C/C++ Build?

 

You can also try and delete all watches, and break points within eclipse?

 

David

--

You received this message because you are subscribed to the Google Groups "NuttX" group.

To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+un...@googlegroups.com.

Message has been deleted

DisruptiveNL

unread,
Aug 6, 2019, 6:12:41 PM8/6/19
to NuttX
I did David thank you for pointing this out!

Now using nuttx.hex and not nuttx (or nuttx.elf) then I am not getting the WARNING: Failed to read memory @ address 0xFFFFFFFE. (I mean in the Debug Configurations->
Main->C/C++ Application field.) So I say fixed ;-) Thanks!

Op maandag 5 augustus 2019 14:06:47 UTC+2 schreef David Sidrane:

Hi Ben,

 

Did you get the device in setting under C/C++ Build?

 

You can also try and delete all watches, and break points within eclipse?

 

David

 

From: nu...@googlegroups.com [mailto:nu...@googlegroups.com] On Behalf Of DisruptiveNL
Sent: Sunday, August 04, 2019 5:52 AM
To: NuttX
Subject: [nuttx] Failed to read memory @ address 0xFFFFFFFE STM32L476RG

 

I get a warning when building Nuttx in Eclipse. (picture taken)

 

Failed to read memory @ address 0xFFFFFFFE

 

CRC Register?

 

What could this mean?

 

Thanks in advance.

Ben

--
You received this message because you are subscribed to the Google Groups "NuttX" group.

To unsubscribe from this group and stop receiving emails from it, send an email to nu...@googlegroups.com.

DisruptiveNL

unread,
Aug 6, 2019, 6:46:34 PM8/6/19
to NuttX
The hex file cannot be debugged, but it pointed out the problem for me.

My setting screenshots for the settings in Eclipse, which give a working solution without warnings are attached.


Op woensdag 7 augustus 2019 00:12:41 UTC+2 schreef DisruptiveNL:
VirtualBox_NuttxDev_07_08_2019_00_37_15_I.png
VirtualBox_NuttxDev_07_08_2019_00_38_11_III.png
VirtualBox_NuttxDev_07_08_2019_00_38_53_IV.png
VirtualBox_NuttxDev_07_08_2019_00_39_24_II.png

David Sidrane

unread,
Aug 6, 2019, 7:06:20 PM8/6/19
to nu...@googlegroups.com

Hi Ben,

 

You should use the nuttx file that is an elf.

To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nuttx/9425badb-23fa-457d-89e5-ddcd1cf61980%40googlegroups.com.

Disruptive Solutions

unread,
Aug 6, 2019, 7:07:12 PM8/6/19
to nu...@googlegroups.com
Yes. Its in the screenshots.

Verstuurd vanaf mijn iPhone

DisruptiveNL

unread,
Aug 6, 2019, 7:10:21 PM8/6/19
to NuttX
I made a video series how to setup a toolchain in VirtualBox with Ubuntu and Eclipse and J-Link (SEGGER) for Nuttx. Maybe it can also benifit others?

https://www.youtube.com/channel/UCKsSePEEUaRAmv2-S2x0C7w

Ben

Gregory Nutt

unread,
Aug 6, 2019, 7:13:25 PM8/6/19
to nu...@googlegroups.com

> I made a video series how to setup a toolchain in VirtualBox with Ubuntu and Eclipse and J-Link (SEGGER) for Nuttx. Maybe it can also benifit others?
>
> https://www.youtube.com/channel/UCKsSePEEUaRAmv2-S2x0C7w

I recently added your YouTube channel to the Wiki tutorials section:
http://www.nuttx.org/doku.php?id=wiki:getting-started:external-tutorials


Reply all
Reply to author
Forward
0 new messages