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?
Discussion around product based on ARM Cortex M4 core.
2 posts • Page 1 of 1
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.
Who is online
Users browsing this forum: No registered users and 2 guests