Questions tagged [atsam3x]
20 questions
9
votes
1 answer
Atmel Studio Dummy_Handler
Occasionally I will get an unexpected interrupt, and my code will hang inside Dummy_Handler() in exceptions.c of the Atmel Studio Framework (ASF). I am using the ATSAM3X8E microcontroller of the Arduino Due.
void Dummy_Handler(void)
{
while(1)…

Bob Stein
- 16,271
- 10
- 88
- 101
4
votes
1 answer
Atmel SAM3X dual bank switching not working
I'm currently working with an Atmel SAM3X8 ARM microcontroller that features a dual banked 2 x 256KB flash memory. I'm trying to implement a firmware update feature, that puts the new firmware into the currently unused flash bank, and when done…

PsyPhy
- 43
- 4
2
votes
3 answers
Timers in Arduino Due
I am new to arduino (as a matter of fact to programming). I am thinking to use arduino due for my academic projects. While going through it's datasheet(SAM3X8E datasheet from Atmel) I came across timers, and it is said that all are 32bit counters.…

Janakiram
- 119
- 2
- 6
1
vote
1 answer
Variables randomly changing, extremely odd behavior
I am experiencing extremely bizarre behavior where variables are randomly changing.
I have distilled it to the simplest example, encoder_1_position and encoder_2_position get updated with randomly values inside the NVIC_SetPriority(UART_IRQn,2);…

FourierFlux
- 439
- 5
- 13
1
vote
0 answers
Flashing ATSAME51N19 using ATMEL-ICE
I'm trying to flash ATSAME51N19 chip using Atmel-ICE, as it was having old bootloader and firmware. But getting error Verifying Flash...Failed! address=0x0000 expected=0x80 actual=0xff
And The fuses are
AC_BIAS0 = 0x01
ADC0_BIASCOMP =…

Saurabh Sakhare
- 11
- 5
1
vote
0 answers
Can PWM Trigger DMAC Memory Reads on Atmel SAM3X?
While I'm not new to embedded programming, I'm new to the Atmel SAM3X microcontroller. I'm trying to figure out if it's possible to use DMA to read a value from a memory-mapped register (a GPIO port, in this case) into a buffer periodically at say…

Justin Olbrantz
- 647
- 3
- 11
1
vote
0 answers
Atmel SAM3X8E dual bank switching for booting different behaviour
I’m currently working with an Arduino Due board which has an Atmel SAM3X8E processor embedded. I’m programming it using the Atmel Studio (version 7.0.1645) and the provided Atmel Software Framework (version 3.28.1).
The purpose of the program…

Lukas Brückner
- 66
- 5
1
vote
3 answers
Why doesn't this function properly toggle an LED on and off?
I am using the Atmel SAM3x8E micro-controller and trying to do a simple LED toggle when I press a button. I am using pull-up configuration button to trigger an interrupt routine.
This is the initialization for the interrupt:
// Set button pins as…

Hooplator15
- 1,540
- 7
- 31
- 58
0
votes
1 answer
USB stack confusion/serial emulator
I am looking at implementing USB communication on a MCU which has a USB engine built into it. Basically you have access to the pipes/endpoints.
I am a little bit confused on the USB stack now. It appears that drivers operate on another level above…

FourierFlux
- 439
- 5
- 13
0
votes
1 answer
Configuring ATSAM3x8e port to output
I am having an issue configuring my SAM3x8e port to output, when I check the pin with a multimeter I get 1.5V so the pin 0 of Port A just isn't turning on. I believe I configured the port pins to correctly out as outputs but I do not know, I don't…

FourierFlux
- 439
- 5
- 13
0
votes
1 answer
Nothing provides error - adding new Yocto layer and new machine
I had a question about adding a new machine in Yocto.
I am trying to add both a new layer in Yocto, and a new machine. The machine is based on Atmels SAMA5D27-SOM1-EK-SD evaluation board. I want to enable another UART for this board.
I cloned the…

Samyukta Ramnath
- 371
- 4
- 18
0
votes
0 answers
Atmel SAM3X / SAM3A, handle interrupts from Parallel Input/Output Controller (PIO)
I want to enable the PA8 pin in a processor (Atmel SAM3X / SAM3A). I have set PIOA_MDERp[7]=0 and PIOA_MDDR[7]=0 and PIO_OER[7]=0 and PIO_ODR[7]=1, so that the tri-state buffer will no longer send data out of the pin, and the pin is enabled to…

m0ss
- 334
- 2
- 4
- 17
0
votes
0 answers
How can I debug CAN bus in SAM4e controller?
I've just started programming SAM4e microcontroller for CAN but facing a problem. I've implemented USB_serial comm to debug the CAN process but not helping much. The CAN configuration is working fine. It also showing data is being transmitted but on…

Saurabh Sakhare
- 11
- 3
0
votes
1 answer
Atmel SAM3X8E Loses VTOR After Hard Reset
I seem to be reiterating this question from here and here. When I reboot my system after flashing firmware onto an opposing flash bank, the VTOR is 0 (meaning it does not boot from flash) and I cannot run the new firmware.
I use the EFC controller…

Andrew
- 43
- 5
0
votes
1 answer
Comparing an usart received uint8_t* data with a constant string
I'm working on an Arduino Due, trying to use DMA functions as I'm working on a project where speed is critical. I found the following function to receive through serial:
uint8_t DmaSerial::get(uint8_t* bytes, uint8_t length) {
// Disable receive…

Dan Berezin
- 35
- 7