This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Trouble Reading Memory Block at

Today when I started up my board I noticed that the PWM wasn't working any more. When launched the debugger and  tried to read some of the registers I get the error:

CORTEX_M4_0: Trouble Reading Memory Block at 0x40011030 on Page 0 of Length 0x4

Some memory regions are possible to read, others just give me that error. What could be causing this?

  • You realize that likely issue causes are two:

    a) some internal MCU difficulty

    b) program additions, changes, saves most recently made

    What were those recent changes?  Do any effect PWM and/or that memory region?  If you had a program burned in flash - does it perform minus the PWM?

    Detail what "PWM wasn't working" really means.   Do outputs just sit - low or high - are all pwm channels so effected?

    How certain are you that issue is "just" PWM and memory block?  Have you checked all other areas of your program's operation?  Are they still functional?

    Today during start-up - or yesterday - did you experience any program crash?  Perhaps a review of all key registers - looking for unexplained changes is in order.  (assuming that you can still access this register data)

    We assume you still "talk" to your M4F eval board via JTAG - does this perform normally?   Should this be lost - check for changes to PC0-PC3 and "iirc" 2 NMI pins on this MCU.

  • Sorry for taking so long to respond to this. I think I know now what the problem was: trying to read registers of disabled peripherals. Whenever trying to read the registers from a peripheral which is disabled I get those errors. I haven't seen this problem any more so I'll just mark it as solved.