It is currently 26 May 2018 03:32

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 16 May 2018 05:13 
Offline

Joined: 07 Jul 2012 16:17
Posts: 48
Hi all,
I have a problem with DMA3 interrupt. I have used DMA0 for ADC1, DMA1 and DMA2 for SPI (receiving and transmitting, respectively) and DMA3 for ADC2. The other interrupts are timers 1, 2, 3, 5, 7; SPI4, SPI4 error, two external interrupts INT0 and INT1. the problem is that all thing works properly when I run it in debugging mode, but in release mode, the MCU is stuck. When I delete interrupt routine of DMA3 which is just a single line (flag clearing), it works properly. When I comment DMA and its interrupt initialization and keep interrupt routine, MCU stuck while rationally the program counter should not jump to this interrupt. The only way that the MCU works in release mode is that I delete both DMA3 initializations and its interrupt routine. I was wondering what is the problem? if there is a problem with programming why it works when I run it in debugging mode?

Thank you for your helps


Top
 Profile  
 
PostPosted: 18 May 2018 15:35 
Offline
mikroElektronika team
User avatar

Joined: 25 Jan 2008 09:56
Posts: 9785
Hi,

Can you please attach the minimal project that demonstrates this issue ?

Regards,
Filip.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: