Questions tagged [atmel-studio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
62 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
44 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
50 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
45 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
19 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
60 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 ...
0
votes
0answers
97 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
84 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
218 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
3
votes
1answer
752 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
79 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
278 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
140 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
739 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
271 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
167 views

Strange behavior of data

I declare global variables to read the sensor MPU9250. ...
1
vote
1answer
194 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
432 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
93 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
543 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 ...
10
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
379 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
420 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
512 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: ...
-2
votes
1answer
437 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
170 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
134 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
10k 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
907 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
558 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
711 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
236 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
342 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
207 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
4k 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
190 views
1
vote
2answers
971 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
850 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
6k 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
302 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
137 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 ...