Sure, Gowtham! Here's a clear and technical version of your question that you can post in a community group (like NXP forums, Stack Overflow, or embedded systems groups):
Hi everyone,
I'm working on S32K144 and currently developing custom MCAL drivers. I'm using the SEGGER J-Link debugger along with S32 Design Studio (S32DS) for development.
While trying to debug my code, I’m encountering a continuous stream of errors and warnings related to register and memory access. Below are the key error messages:
ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
ERROR: Cannot read register 27 (CONTROL) while CPU is running
...
ERROR: Cannot read register 64 (FPS31) while CPU is running
WARNING: Failed to read memory @ address 0xDEADBEEE
Observations:
These errors appear as soon as the target starts running.
It seems like the debugger is unable to access system or floating-point registers while the CPU is in execution mode.
The memory warning is pointing to an invalid address: 0xDEADBEEE.
Current Setup:
MCU: NXP S32K144 (ARM Cortex-M4F)
IDE: S32 Design Studio
Debugger: SEGGER J-Link (SWD mode, 1 MHz)
Application: Bare-metal, developing and testing custom MCAL drivers
Debug Mode: Connected via GDB server and flashing/debugging through S32DS
Questions:
Why am I getting these register access errors while the CPU is running?
What could be the root cause for memory access at 0xDEADBEEE?
Any recommended way to handle these debugger limitations when developing low-level MCAL drivers?
I'd really appreciate help from anyone who has worked with S32K1xx MCUs, MCAL development, or SEGGER J-Link tools. Let me know if you need more logs or setup details.
Thank you