All Questions
Tagged with atmel-studio microcontroller
20 questions
-1
votes
1
answer
52
views
Need help for the definition of timer function
I've found below code that belongs to the timer declaration function but the definition is hidden by the author.
Can anyone help me to provide a definition for the same?
I want this to be utilized in ...
0
votes
1
answer
494
views
ATSAMD21 doesn't seem to start, device not found/detected
I just finished assembling my PCB with an ATSAMD21G18A and was super thrilled to flash it with my program. Sadly Atmel Studio tells me that it can't find the device.
I tried to debug the whole thing, ...
0
votes
0
answers
166
views
Program for LED blink
I am newbie in programming the microcontroller. I would like to test the micro by blinking the LED in a pin. The micro is SAMR35J18B and I am using ATMEL ICE programmer and ATMEL studio software for ...
4
votes
3
answers
2k
views
Convert the type of calculation result in if() to uint8_t
I am writing in C using the Atmel Studio (AVR-C.)
I have an if statement:
if( (rxProcessing < (rxWritePos-1) ) )
Where ...
0
votes
2
answers
310
views
Confirmation on how to check microcontroller memory capacity with Atmel Studio
When compiling code in Atmel Studio, I get the following output showing the percentage of usage for the program and data memory:
Does this output represent the total data usage in the microcontroller?...
0
votes
1
answer
431
views
ASF SAMD21G18 2x timers usage
im trying to use ASF to schedule repeated tasks.
using TC4 and TC5:
in atmel start both using generic clock generator 0 (48MHz).
both are HAL:DRIVER:Timer
driver init.c is generated automatically ...
13
votes
5
answers
8k
views
PIC32 vs dsPIC vs ARM vs AVR, does the architecture matter when we are programming in C-language anyways? [closed]
We are currently using 32-bit PIC32 Microcontroller. It is working fine for our needs, but we are also exploring other microcontollers that can suite us better + we have other projects for which we ...
7
votes
3
answers
19k
views
Finding the source of a Hard Fault using extended HardFault_Handler
I have been hitting some hard-faults on the firmware I have created with FreeRTOS on a SAMD21 (ARM Cortex-M0) MCU.
So I took a further action to find out the cause and eventually bumped into this ...
0
votes
2
answers
1k
views
Runs with debugger but not standalone, using ATSAMD10D13 and Atmel ICE
I made a custom board with 2 ATSAMD10D13AM parts. The are 8k flash/4k sram Cortex-M0 24QFN parts. When I power the board the IC's start but then freeze (I have LED's blinking that go solid). When I ...
1
vote
0
answers
390
views
Cannot use particular pins in SAMD21 as Digital Output
I have moved to Atmel from a run I had with MSP430 series and a tad bit confused at the moment as the pin setup seems quite different.
While handling an SPI device I needed a general IO pin to ...
0
votes
1
answer
597
views
Is AT91 devices in atmel studio?
I want to make a new project with AT91SAM9260 in Atmel Studio 7 but it doesn't support the device.
My question is:
Did Atmel make a C library with this device to Atmel Studio 7? If no, what version ...
1
vote
2
answers
2k
views
AVRISP mkII can't connect with target when using an AVR on a breadboard
I'm having a problem with my AVRISP mkII. I'm trying to program a ATMEGA328P on a breadboard using AtmelStudio 7. The problem is I can not make AVRISP detect the target. Whenever I try to program the ...
0
votes
1
answer
421
views
FIFO ASF drivers and USART avr problem sending and recieve data via rs232 connection
I'm working to send frame of 8 bytes to Micro-controller Xmega128a1 (via RS485). The frame looks like this:
{header1,header2,CMD,D1,D2,D3,D4,CRC}
For example:
<...
3
votes
2
answers
480
views
Differences in using c user-defined functions on PC and on ARM
I am new to programming in c and to ARM also, so forgive me silly question. I would like to find answer on the net rather than to bother you, but there is not many materials in the web.
I am using ...
1
vote
1
answer
134
views
Atmel Studio 7.0 update loop
Atmel Studio started asking me this morning to repair itself:
After 15 minutes, the repair is done:
Running the application, it shows again the first image:
I've done this loop three times, so far. ...
1
vote
1
answer
665
views
Memory Leak in queue linked list, avr c
I am building a small command interpreter to be run on a microcontroller. To queue each command and its accompanying arguments, I am using a queue implemented as a singly linked list. All of the queue ...
0
votes
1
answer
369
views
Atmega32 LCD program not working
i have recently been into atmega world after i heard it is much better than pic and it is my second tutorial about writing to LCD i wrote this program in atmel studio but it doesnt work i double ...
0
votes
1
answer
780
views
Atmega328p Circuit Blinking Circuit
So I am trying to build a standalone circuit using the Atmega 328p. After uploading the code using Atmel Studio and AVRDude I get no response from the circuit; however, when I take the Atmega and put ...
3
votes
1
answer
543
views
Different JTAG debug options for ATmega1281
Background:
I've inherited my first ATMEL project. It's using an ATmega128A, coded in AVR Studio 4, with the Olimex AVR-JTAG-USB debugger. I've learned how to use these tools, although I'm still ...
0
votes
2
answers
2k
views
ATtiny85 simulation in AtmelStudio 6.1 (build 2730, SP2)
I have written a piece of code which manipulates the DDR for port B:
...