Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [atmel-studio]

The tag has no usage guidance.

0
votes
0answers
37 views

ATTiny84 is not working and freezes [closed]

I have uploaded the program for several ATTiny84, some of them working perfectly and the rest are not sending any signals. I checked the Fuse sitting, it is right because I compared with the other ...
0
votes
0answers
47 views

SD card reader using SPI with Atmel SAM G55J

I have a custom board using an Atmel SAM G55J (ATSAMG55J19A-AU) and I'm trying to get the SD card reader to work - which is connected to SPI0. I'm using the SD/MMC ...
3
votes
1answer
53 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
0answers
44 views

I have tried serial communication code.İt is working in arduino ide but it doesn't working in atmel studio

I have found code of serial communication for attiny84.https://electronut.in/serial-communications-with-the-attiny84/ If I compile this code in Arduino Ide then this code is running.I see hello world ...
0
votes
1answer
71 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
3
votes
1answer
413 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
55 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
177 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
96 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
567 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
655 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
174 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
159 views

Strange behavior of data

I declare global variables to read the sensor MPU9250. ...
1
vote
1answer
133 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
293 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
67 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
368 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 ...
7
votes
5answers
4k 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
292 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
325 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
731 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 ...
0
votes
1answer
437 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
2k 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: ...
-1
votes
1answer
367 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
136 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
1k 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
2k 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
79 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 ...
3
votes
3answers
7k 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
1k 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
591 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
428 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 : ...
1
vote
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
565 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
212 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
288 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
154 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
3k 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 ...
1
vote
2answers
769 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
773 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 ...
1
vote
1answer
5k views

How can I fix Atmel Studio 7 install which is stuck on “initializing environment”? [closed]

Atmel Studio 7 Install Is Stuck I'm attempting to install Atmel Studio 7. I've tried both the online install and the download then install option and the installer becomes stuck (shown in the image)....
0
votes
1answer
265 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: <...
-4
votes
1answer
135 views

Atmel studio coding [duplicate]

I am new to atmel studio, and want to know the best way to code this example: What is the difference between using: DDRG |= (1<<DDRG3) vs ...
3
votes
2answers
446 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 ...
0
votes
1answer
389 views

Can't use util/delay.h on c++ in Avrstudio v6

I'm just new with microcontrollers and I'm hoping someone could help me understand this. I'm using an AVRStudio 6 and an AVRDragon. Watched some tutorials on basic programming. Here's the code: <...
0
votes
2answers
851 views

Detecting interrupt on Atmega8 from zero crossing detector circuit

I have a zero crossing detector circuit, whose output I am providing to my Atmega8 as an interrupt, but unfortunately its not working. If I use DC supply 5V (logic 1) as an interrupt, it works. Where ...
0
votes
1answer
583 views

Why does SAM3x8e work only with Atmel-Ice programmer connected?

I have DIY sam3x8e pcb board based on schematics of Arduino Due. I can program it with Atmel-Ice (jtag connector) in Atmel Studio with basic serial transfer example and it works fine when the Atmel-...
0
votes
1answer
48 views

Atmel UC3A0512 microcontroller documentation

I started using this microcontroller but I am dealing with the lack of documentation. First of all this is the datasheet. It describes registers and their usage but not a workflow. Which one to set ...