Questions tagged [atmel-studio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Access Microcontroller from Atmel Studio (SAM V71 Xplained Ultra)

I've used Visual Studio before when working with C++ but am completely new to microcontrollers and Atmel Studio (using version 7.0 on Windows 10). In my first attempt to learn more about ...
0
votes
2answers
20 views

ATSAM / ASF4 - how to use HRI driver

While trying to change the analog reference voltage in ATMEL Studio for ATSAMC21 I found no way to configure this in ATMEL start and in the higher level drivers. So I searched around the ASF a bit ...
0
votes
0answers
18 views

ATSAMC21 - Change ADC reference voltage

I'm trying to change the ADC reference voltage on an ATSAMC21. However whatever i tried so far it is not working. I am using ATMEL Start to created the clock configuration and ADC configuration. I am ...
2
votes
0answers
201 views

Error 4109 No device detected in Atmel Studio

I'm working on a project involving an ATSAMC21. I soldered it onto the board and tested all pins to ensure that; a) they weren't shorted to the adjacent pins, b) they were connected to the nodes that ...
0
votes
1answer
35 views

Porting from iccavr project to Atmel studio problems with Atmega2561 8 bit MCU

I'm currently in the process of having to port a large project from ICCAVR known as the imagecraft IDE to Atmel Studio 7.0 and have had great difficulty trying to get the Atmel build of the project ...
1
vote
2answers
240 views

ATSAMC21 - CAN configuration - Nominal bit timing vs. data bit timing & time quanta calculation

I'm trying to configure the CAN bit rate of an ATSAMC21 to 125ksps in a CAN2.0B configuration. However, after reading through the datasheet, the ASF documentation and the ATMEL start help I'm confused....
0
votes
0answers
65 views

Pin TX0 -> 1 and RX0 <- 0 on ATMega2560 for USB serial communication

I am currently working on a project where I have to make my pc communicate with my ATMega2560 through the USB serial port. The ATMega2560 is the receiver. I have been told that the pins ...
0
votes
1answer
102 views

ATMEL STUDIO: avrdude.exe: ser_open(): can't open device

I just followed all the instructions to set up Atmel Studio on a new computer for the ATmega2560. Bare in mind that I have already had Atmel Studio installed on another computer where it worked fine, ...
0
votes
1answer
59 views

Atmel Studio Does not fire accurate timer interrupt

i have atxmega256A3u with external 16Mhz crystal, i set the system clock to use that oscillator source as ...
0
votes
0answers
25 views

Atmel Studio 7 Error: GDB Launch Failed: GDB executable might be invalid one

I installed Atmel Studio 7, and connected SAMD21 Xplained Pro board. I created an asf project for this board, and tried to run it. I get the following error: I can't find anything remotely relevant ...
0
votes
1answer
103 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 ...
3
votes
1answer
113 views

Atmega168 USART RX Interrupt does not trigger

I have been trying to get the USART RX interrupt trigger working on my ATmega168A using the tutorial here (updating my registers as per the datasheet): Tutorials I have setup the system to use a ...
0
votes
1answer
334 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
3
votes
1answer
932 views

Using Atmel Studio 7 to program Arduino Uno

I will like to use AS7 IDE to program the Arduino board, for start Im using Arduino UNO with ATMEGA328P-PU chip. Im using Windows 10 professional First I used the Arduino IDE in order to run/...
0
votes
1answer
116 views

ATmega stopped working after changing CKDIV8 fuse

I have ATmega32U4. I connected it via SPI programmer and in Atmel Studio I have read their signature properly. It was working. Then I cleared and programmed CKDIV8 fuse. Clock was set to internal RC. ...
0
votes
0answers
380 views

ATMega168 UART weird characters

I'm learning AVR programming using this book I was able to run and get output using the code provided along with the book. I use Proteus to simulate the output, since I don't have controller in hand. ...
0
votes
2answers
178 views

Atmega 8 on Arduino Uno

For a uni project I am tasked with programming embedded C onto an ATMEGA 8 uC, and there aren't enough development boards for everyone to use at uni, so I have an ingenious solution. I have several ...
2
votes
1answer
1k views

Data memory usage reported by AtmelStudio for ATtiny85

I am using AtmelStudio to program an ATtiny85, which has 512 bytes of SRAM data memory. My code includes a large lookup-table (array) which is 512 bytes: ...
0
votes
0answers
790 views

Visual Studio Code for ARM

I use Atmel ARM chips and I'm used to use Atmel Studio 7 for developing. I want to try a more elegant editor for developing and I like the Visual Studio Code (VSCode). It's very nice editor. But I don'...
2
votes
1answer
304 views

“light_ws2812” library 10x slower than required (AVR C, ATMega328p int. 8Mhz)

So I'm trying to run some SK6812 (WS2812 clones) on a standalone ATMega328p. The output signal is too slow! I define F_CPU as 8000000 (8Mhz), both in the code and in the Atmel Studio Symbols, but my ...
0
votes
2answers
169 views

Strange behavior of data

I declare global variables to read the sensor MPU9250. ...
1
vote
1answer
217 views

How to enable abbreviated port names in Atmel Studio?

Good day! I have been working with Atmel Studio lately and am a bit confused about notation. Thus far, when I reference a pin, I usually just use the PORTxn notation (example: PORD0). However, I ...
1
vote
0answers
497 views

Attiny fuses, lock bits for ELF file

I am trying to embed code in my Attiny4 project that will set fuses and lock bits(In AtmelStudio 7). I copy/pasted the code that Atmel suggests here: ...
1
vote
1answer
99 views

Barebone ATSAMD11D14 not responding

I wire up this schematic on my breadboard. I've verified that the 3V3 LDO is working. Atmel Studio on my Windows machine can see the Atmel ICE. The simple blink compiles fine too. However, I cannot ...
0
votes
1answer
663 views

What is Positive and Negative Mux input in ADC

I am trying to understand the use of Positive and Negative Mux input in ADC, I have recenlty bought Atsamd21-Xplained board from Atmel and trying to get multiple pins ADC using ASF4 and with Atmel ...
11
votes
5answers
5k 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 ...
0
votes
1answer
428 views

Problems with LCD when using it with ATmega328P

I'm trying to use a 16x2 LCD screen to be programmed by the ATmega328P microcontroller using Atmel Studio v7. I am using a library for this purpose that I found on the internet. I wrote this program ...
0
votes
1answer
490 views

Can not flash atmega328p with usbasp

My usbasp was working fine.I could burn programme to atmega328p.But last night i wanted to cahnge the clockspeed by clock_prescale_set ( clock_div_t x ). after that it burned successfully and ...
1
vote
1answer
1k views

Atmel Studio 7 Custom Build Tool Output

I've recently switched over to Atmel Studio 7 (AS7) for one of my AVR projects and after a bit of fiddling around have worked out how to get the "Custom Programming Tool" to correctly upload compiled ...
1
vote
1answer
535 views

Does the Sparkfun SAMD21 Mini/Dev Breakout work with the ATMEL Studio

I'm new to the SAM product line from ATMEL. I purchased the original ATMEL Xplained board, which works nicely with the ATMEL studio for programming & debugging. I know that the Xplained board ...
0
votes
1answer
3k views

How to correct Warning : array subscript has type 'char' [-Wchar-subscripts] [closed]

Hi I write a function to reset a Character Array in Atmel studio as below: ...
-2
votes
1answer
458 views

Which crystal do i choose in atmel studio?

I'm trying to use this 16mhz crystal with an atmega328 chip and I need to set the fuses for it in atmel studio. But I have no idea which option is the correct choice. None of them say 16mhz. I've has ...
0
votes
1answer
188 views

How to reduce code size in flash of atmega8? [closed]

I write code for Atmega8 in Atmel studio and the size of code is overflow the flash size of microcontroller. Could anyone help ...
1
vote
2answers
2k views

How to know the size of my code in Atmel Studio

I'm new with Atmel Studio and I'm playing with ATtiny13. This mcu has 1K Bytes of Flash, 64 Bytes of EEPROM and 64 Bytes of SRAM. I would like to know how much memory (flash, eeprom and sram) my code ...
0
votes
2answers
3k views

Find Atmel Studio 6 installer?

I know nothing about Atmel Studio other than roughly what it is, and have never used it. One of the production techs just came to me saying that a shortcut he's clicked for years to program a Atmel ...
0
votes
0answers
151 views

How to read the ATMEL unique ID? [duplicate]

Hi anybody know how to get ATMEL unique ID from Atmega microcontroller? I read this question but the code in answer not work in Atmel Stadio. Edit: Because we produce about 1000 board per week I ...
5
votes
3answers
12k 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
3answers
2k views

Write program for Atmega microcontroller with C# [closed]

Anybody know that is there exist a way to write program for Atmega microcontroller With C# language? Or there is exist a plug in for Atmel Studio that add support C# in that IDE?
2
votes
3answers
1k views

Unable to program ATSAML21 PCB via SWD - Problem with connection?

Well, I'm officially stumped (and so are several other engineers)... I have a custom PCB running an Atmel ATSAML21E18B microcontroller, which I'm trying to program through an Atmel ICE debugger / ...
0
votes
1answer
2k views

PCB target voltage reading too low on Atmel ICE Programmer

I've just had my first batch of PCB prototypes delivered from the manufacturer, and when I went to program them, the target voltage is reading too low. The device is based around an Atmel SAM L21 MCU, ...
0
votes
1answer
625 views

Can't enter Programming Mode Atmel Studio

I have a custom board based on the ATmega328. I want to program it usign Atmel ICE Basic ISP interface, to make sure that I'm connected to the target I've tried to read it ID, I get the following : ...
2
votes
1answer
2k views

Unable to enter in Programming mode (AT_Studio)

I've a board with the SAML21E17B uC, when I want to connect/ program it using JLink(edu) and Atmel Studio I get and error message, that the IDE is unable to enter the programming mode any idea what'...
0
votes
2answers
771 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
0answers
247 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
1answer
366 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 ...
0
votes
1answer
231 views

How am I able to automate AVR ISP programming?

I have this AVR programmer, which I set up as STK500 in Atmel Studio. All this works fine until I need to do mass programming with different EEPROM contents. So if I do no changes to the toolchain ...
2
votes
1answer
5k views

Is it possible to redirect print streams to debugger in Atmel system?

Is it possible to configure stderr and/or stdout to make it such that when a printf() is ...
0
votes
1answer
196 views
1
vote
2answers
1k 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 ...
8
votes
2answers
882 views

Is it really necessary to manually clear the XMEGA timer overflow interrupt flag?

As some of you may know, Atmel provides a software framework (mainly as part of Atmel Studio) that provides drivers and examples and is updated on a more or less regular basis. In a recent update ...