Questions tagged [samd51]
7 questions
1
vote
2 answers
How does the memory layout of a struct of 2 floats differ from an array float[2][1]?
I can successfully cast a pointer to a struct of 2 floats to a void pointer (used to discard incompatible pointer types warning), and then cast that to a float array and use that normally, however it doesn't seem to work in reverse with…

TheRedstoneHive
- 11
- 5
1
vote
1 answer
Can't get gpio ouput working after pins were used for spi (SAMD51)
I am writing in c++ for SAMD51G19A.
I have a project that someone else wrote that I am wanting to make some changes to. In the interest of speed and not knocking down the figurative Jenga tower, I want to change as little of what is already there as…

Indi008
- 41
- 5
0
votes
0 answers
How to set Chip Erase Lock (CELCK) on SAMD51 microcontroller?
I am trying to execute the Chip Erase Lock command (CELCK) on Microchip/Atmel ATSAMD51J20A microcontroller.
I am using the following procedure:
Wait for NVMCTRL STATUS.READY bit to set.
Clear NVMCTRL INTFLAG.DONE bit and INTFLAG.PROGE bit if…

theihaq
- 1
- 1
0
votes
0 answers
Multiple definition error while attempting to edit bootloader of SAMD51
I am currently working on adding some new functionality to a SAMD51 bootloader. The original bootloader code I am basing this off of is the Adafruit UF2 bootloader for SAMD microcontrollers, found here: https://github.com/adafruit/uf2-samdx1
I am…

David
- 1,847
- 4
- 26
- 35
0
votes
1 answer
micropython uart.read() in SAMD51 is incomplete (only 2 bytes returned)
I have an ATSAMD51 microcontroller integrated in a project-specific board which has also a xbee3 RF module. This xbee3 module is configured for Transparent Mode and the device type is 'router'. I can check this on the XCTU software.
Now, my goal is…

Carlos Mão de Ferro
- 21
- 4
0
votes
0 answers
Issues with EEPROM functions not saving data for board type (Arduino)
I am trying to work on an Arduino project and for some reason, I cannot get it to store the data on the Adafruit Metro M4 controller or data logger shield (saving so that when reconnected, the data entered would still be there).
I have an SD card…
user15881691
0
votes
1 answer
Where is the default Arduino TwoWire constructor defined?
I'm a bit confused by something in the TwoWire Arduino library.
The Wire.h and Wire.cpp files define a single constructor which requires three arguments:
TwoWire::TwoWire(SERCOM * s, uint8_t pinSDA, uint8_t pinSCL).
Yet the Wire.h file instantiates…

David Patterson
- 1,780
- 3
- 17
- 40