Unexpected interrupt from WDT in SAM4L

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

tankist
Posts: 29
Joined: Fri Jun 07, 2013 10:28 am

Unexpected interrupt from WDT in SAM4L

Tue Oct 14, 2014 9:56 am

I made a project in IAR for SAM4L chip. I use an UART port for a communication. It's looks well until I send any char by UART into my SAM4L chip. After that I get the WDT interrupt handler instead of the UART handler. This behaviour looks strange because as I see in registers WDT is off (WDT_CTRL->EN = 0) and its interrupt is masked (WDT_IMR = 0).

Has anybody any ideas about that?
tankist
Posts: 29
Joined: Fri Jun 07, 2013 10:28 am

[SOLVED]: Unexpected interrupt from WDT in SAM4L

Tue Oct 14, 2014 3:11 pm

It was absolutely stupid problem((. Problem was not in WDT just in interrupt vectors table. I looked at .map file and guessed that vector table mapped into incorrect memory region (it was expected in 0x00000000). Next I check sources to guess how did it get there. And I found a problem! In the startup_sam4l.c file the IVT sections called ".vectors" and the compiler put it into any free place, but it's expected the ".intvec" name! So problem is in the incorrect source system configuration file startup_sam4l.c.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 0 guests