Hello all,
I am trying to implement the Timeout counter from the LPUART module of an S32K344 microcontroller, but I have encountered some issues.
I want to use them to monitor idle bits elapsed from the last received message so, my first question is, do they have the ability of generating a hardware interrupt?
Looking at the table of LPUART registers as per the S32K3XX Reference Manual (section 77.6.1), the registers that I should modify to configure the timeout counters are TOCR, TOSR and TIMEOUTN.
Captura de pantalla 2025-03-05 181026.png
The first thing that I noticed is that these registers are not in the LPUART register layout typedef in the SDK (in the S32K344_LPUART.h)
Captura de pantalla 2025-03-05 180917.jpg
Therefore, I have tried to access these registers manually, taking the IP_LPUART_0_BASE address from the SDK and adding the corresponding offset (0x58 in this case). When trying to read/write this region, I get a Hard Fault. I have tried to read other LPUART registers from the ones in the image above with this method to ensure that the method itself is not the problem, and it worked just fine.
Right now I am supposing that this memory region is somehow protected, but I could not find many info on this in the Reference Manual, so my question is: Is this the case? Is this memory region protected? and, if so, is there any way that I can access it to configure the timeout counters?
Thank you in advance!