Go Down

Topic: ATMEL Studio - Due Interrupts (Read 262 times) previous topic - next topic

LC-Kaden

I'm using an Arduino Due, and transitioning from using the Arduino IDE into using Atmel Studio. I'm following the tutorial at this link to get up and running: https://www.elecrom.com/program-arduino-due-atmel-studio/

I'm able to program the board with the example code provided at that link, but when the MCU tries to call an interrupt, it freezes the program instead of executing the interrupt handlers.

My best guess is that Atmel studio is putting my interrupt handlers at the wrong memory address, but I have no idea where/how to configure that.

Please help O.o

ard_newbie

I guess you want to switch from Arduino IDE to Atmel Studio to avoid the arduino functions (analogRead(), pinMode(), setup(), Loop(), etc...), right ?  In fact you can avoid all these arduino functions even in the arduino IDE, no need to switch to Atmel Studio.

Anyway, the first steps of this tutorial might help you getting started with Atmel studio for arduino DUE board (without any ASF function):

https://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=7828517

If your final goal is to program the DUE with ASF, it might not be a good idea ...

Search in the DUE sub forum for working ADC conversion sketches with or without a PDC DMA (your code example from elecrom.com uses a PDC DMA)


Go Up