Questions tagged [atmel]

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful. Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components.

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful.

Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components. Atmel was acquired by Microchip Technology Inc. (Nasdaq: MCHP) in 2016.

621 questions
1
vote
0 answers

Purpose of startup time variables in PMC interface for Atmel Cortex M4 SAM4S Processor

I am setting up system clocks for an Atmel Cortex M4 SAM4S Processor. For both the Main Oscillator Register (CKGR_MOR) and the PLL Registers(CKGR_PLLxR), there are variables (MOSCXTST and PLLxCOUNT, respectively) which allow to specify a longer…
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 =…
1
vote
1 answer

Debugging Arduino Due in Visual Studio Code using Atmel-Ice

I'm trying to figure out which external hardware debuggers are compatible with Visual Studio Code and JTAG. I was looking at the Atmel-Ice but it's not clear if this can integrate with Visual Studio Code. Any tips to get me started? Thanks -John
JohnKoz
  • 908
  • 11
  • 21
1
vote
1 answer

How to write a Cout<< Like print function for 16x2 LCD?

Development Environment Controller: Atmega8 Language: C++ (-std=gnu++14 flag added ) IDE: atmel studio 7 Note: Most of the std:: libraries like ostream ,string ,cout, are not available with this minimal c++ support. almost similar functionality…
Jestin
  • 33
  • 4
1
vote
5 answers

Why no effect of calling functions with void keyword?

I need to write quite simple program which makes LED diode flashes using processor ARM AT91SAM9263. I need to run this code using QEMU emulator, which is installed on my Ubuntu machine. I am trying to write a program with 4 functions, which are…
wiki11ful
  • 29
  • 1
  • 8
1
vote
0 answers

How can I get filename of current file for CMake

I am writing a CMake file to generate Makefiles for an Atmel Project. The problem I have is that when building in Atmel studio, the options -MF and -MT"" are used. For atmel, these filenames are dependent on the input file, so…
Johan
  • 1,633
  • 15
  • 22
1
vote
1 answer

C code with a union member name the same as its type name

I am currently working on some microcontroller code in C, and one of the third-party libraries I am using has some structs and unions defined in the following manner: typedef struct { ...members of struct... } somename; typedef struct { …
David
  • 1,847
  • 4
  • 26
  • 35
1
vote
1 answer

AVR and FATFS Multiple block read

I am using atmega1284p and I need to read data from sd card and send audio decoder chip I can do it for low bitrates,higher bitrates MCU struggle to send data on time. Respect to my research to achieve the high bitrates, files can be read muliple…
msalah11
  • 11
  • 1
1
vote
0 answers

Flashed bootloader successfully but device doesn't show up in device manager

I've successfully compiled and flashed the arduino samd bootloader onto a custom atsamd21 board. I am using an external crystal oscillator (32khz) so I am not using the -DCRYSTALLESS option. Now that I plug it in I don't hear or see anything pop up.…
user395980
  • 356
  • 1
  • 8
1
vote
2 answers

How to define memory pointers when programming AVR chips?

Preamble: after working a couple of years as application developer, the world of the software engineering became more obscure than it was before. The reason is that the real stuff is hidden under zillions layers of abstractions: OS, frameworks, etc.…
tenghiz
  • 239
  • 1
  • 10
1
vote
1 answer

Why samd21 is reading modbus own response as a master request?

I'm adding slave MODBUS RTU communication over RS-485 (by chip ADM2587EBRWZ) into a SAMD21 existing program. Only Read holding register and Write single register commands implemented as I don't need more. To test it I use a PLC by Microcom as…
NKE-Mick
  • 11
  • 5
1
vote
1 answer

Printf for float in c

I'm actually trying to print a float in c using atmel std and instead of printing the value , it gives me just "f". Anyone knows why it's like this? code : float dist = 2.0*3.14*0.25*count; printf("counter : %d\n",count); printf("dist :…
gnites
  • 13
  • 5
1
vote
0 answers

Yocto project : How can I connect my Embedded SAMA5D27 microchip board to WIFI network?

I am using SAMA5D27-SOM1-EK1 embedded board. I build for it Linux distribution using Yocto project following the steps described here : Yocto_Linux_Kernel I can connect my board with the Ethernet port and it's working. But I want to connect to…
gaston
  • 51
  • 14
1
vote
2 answers

Sensorless BLDC motor control BEMF section

I am trying to make a sensorless bldc motor control driver. I found an Arduino code and I want to convert it ARM Stm32. But I don't understand totally what happens in ISR interrupt part. Can anyone explain me shortly? Why used bldc_step&1 and when…
1
vote
0 answers

ATXmega phantom breakpoint while debugging

I have an ATXmega that I am writing code for. I have IAR embedded workbench and an AVR ONE! that connects to the circuit board with a PDI. When debugging, I am able to get the chip to halt. That is, the system clock will halt, as though it has hit a…
Smyther
  • 113
  • 3