Questions tagged [atmel-studio]

The tag has no usage guidance.

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

Change simulator fuses in Atmel Studio

I have been test the example. AVR1316: Using the XMEGA Self-programming driver on ATxmega128D4 device through the Atmel Studio simulator. The program executed fine but does not modify the content of ...
0
votes
0answers
27 views

I2C communication with MCP4728 and ATSAMD20J18 using HAL libraries

I'm trying to communicate MCP4728 with ATSAMD20J18 controller using HAL libraries. But the commands are returning NACK. Below are the commands. ...
0
votes
2answers
44 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
0answers
48 views

Using Data Visualizer with Atmle-ice with SPI Physical interface

I am trying to output some debug strings from an AtMega328P to a terminal window on AtmelStudio using the DGI. I would like to use the 6-pin 100-mil connector of my Atmel-ICE Basic Kit, which I ...
1
vote
1answer
53 views

ATSAME70Q21 at 1.8V — cannot program flash memory

A recent revision of a board based on the ATSAME70Q21 (a Cortex-M7) is exhibiting problems. The previous revision of the board had been working for quite a while. [EDIT] The exact part number as it ...
0
votes
0answers
21 views

Problem writing in flash of ATSAMD21G18

I tried to connect via Atmel studio 7 to a ATSAMD21G18 to change the NVM user row (need to change BOD). I thought I could do it without having to write code. I connected via J-link fine but when I ...
0
votes
1answer
146 views

How to share a variable between ISR and main-code?

I'm working on some embedded software and I ran into a problem and I cannot figure out why this block isn't working. I set up interrupts to for several buttons, including a mechanical encoder. I used ...
0
votes
0answers
48 views

Bit banging synchronous serial protocol on SAME70

I am trying to implement synchronous Serial protocol with SAME70 using board SAME70-XPLD. For that I need to generate clock of 2MHz. For that I am using TC module running at MCK/8 = 18.75MHz (MCK set ...
0
votes
0answers
56 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
59 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 ...
2
votes
0answers
694 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
65 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 ...
2
votes
2answers
619 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
109 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
210 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
85 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
1answer
170 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 ...
4
votes
1answer
258 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
507 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
3
votes
2answers
1k 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
167 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
548 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
237 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
2k 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
798 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
376 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
256 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
562 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
118 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
799 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
6k 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
602 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
613 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
2k 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
557 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
4k 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
479 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
210 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
3k 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
173 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 ...
6
votes
3answers
14k 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 / ...
1
vote
1answer
3k 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
740 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
3k 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
839 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
263 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 ...