Questions tagged [atmelstudio]

Atmel Studio is the integrated development platform (IDP) for developing and debugging Atmel ARM Cortex-M and Atmel AVR microcontroller (MCU) based applications.

Atmel Studio is the integrated development platform (IDP) for developing and debugging Atmel ARM® Cortex-M and Atmel AVR microcontroller (MCU) based applications. The Atmel Studio 6 IDP gives you a seamless and easy-to-use environment to write, build and debug your applications written in C/C++ or assembly code.

Atmel Studio 6 is free of charge and is integrated with the Atmel Software Framework (ASF)—a large library of free source code with 1,600 ARM and AVR project examples. ASF strengthens the IDP by providing, in the same environment, access to ready-to-use code that minimizes much of the low-level design required for projects. Use the IDP for our wide variety of AVR and ARM Cortex-M processor-based MCUs, including our broadened portfolio of Atmel SAM3 ARM Cortex-M3 and M4 Flash devices.

Atmel Studio 6.2 is now available, adding advanced debugging features such as Data and Interrupt Trace, improved RTOS integration, and better ability to debug code that has been optimized.

With the introduction of Atmel Gallery and Atmel Spaces, Atmel Studio 6 further simplifies embedded MCU designs to reduce development time and cost. Atmel Gallery is an online apps store for development tools and embedded software. Atmel Spaces is a cloud-based collaborative development workspace allowing you to host software and hardware projects targeting Atmel MCUs.

In summary, standard integrated development environments (IDEs) are suited for creating new software for an MCU project. By contrast, the Atmel Studio 6 IDP also:

  • Facilitates reuse of existing software and, by doing so, enables design differentiation.
  • Supports the product development process with easy access to integrated tools and software extensions through Atmel Gallery.
  • Reduces time to market by providing advanced features, an extensible software eco-system, and powerful debug integration.

http://www.atmel.com/microsite/atmel_studio6/

339 questions
1
vote
2 answers

Optimising C code for small size - sharing static variables?

I have two functions, both are similar to this: void Bit_Delay() { //this is a tuned tight loop for 8 MHz to generate timings for 9600 baud volatile char z = 12; while(z) { z++; z++; z++; z++; …
Wossname
  • 123
  • 5
1
vote
2 answers

AtmelStudio recipe for target *.elf failed

I have separated the code into files (*.c and *.h) and included them. I have guard headers and all the separated files were reported to being build: Finished building: .././test.c But my project build results in this error: recipe for target…
hypnoticum
  • 39
  • 1
  • 6
1
vote
0 answers

Flashing ATSAME51N19 using ATMEL-ICE

I'm trying to flash ATSAME51N19 chip using Atmel-ICE, as it was having old bootloader and firmware. But getting error Verifying Flash...Failed! address=0x0000 expected=0x80 actual=0xff And The fuses are AC_BIAS0 = 0x01 ADC0_BIASCOMP =…
1
vote
1 answer

How to create a dependency in Atmel Studio 7.0?

I need to #include a file called ClearCore.h but it refuses to show up as a dependency. https://i.stack.imgur.com/1kTvS.jpg https://i.stack.imgur.com/dn6XT.jpg As you can see, the file is in the library and most other files are listed as…
Luke Ryan
  • 11
  • 1
1
vote
0 answers

How to properly add ATMEL assembly files to a C project

I have an ATMEL C project (ATmega328) in ATMEL Studio 7 and need to mix in some assembly code. I don't want to use the C inline assembly asm() directive because I want to keep it separate as a pure assembly file. I want to include .asm to my…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
1
vote
1 answer

clock problems with 7-segment display in proteus

here is a simple 7-segment display with a pushbutton the problem is whenever I make the clock 1 MHZ the display doesn't run as expected but when I use 8 MHZ clock it works fine. here is the code: #define F_CPU 1000000L #include #include…
Ali El-Boghdady
  • 145
  • 1
  • 11
1
vote
1 answer

C code with a union member name the same as its type name

I am currently working on some microcontroller code in C, and one of the third-party libraries I am using has some structs and unions defined in the following manner: typedef struct { ...members of struct... } somename; typedef struct { …
David
  • 1,847
  • 4
  • 26
  • 35
1
vote
0 answers

gcc - Local variable overwritting a static variable in .data

In a arm-gcc program (precisely a Atmel Studio 7 Project on a ATSAMC20E18A), I have a weird behavior where a local variable in a function (uint8_t tmp_buffer[ROWS][COLUMNS]) is placed at the beginning of the RAM (0x20000000), overwritting static…
1
vote
0 answers

ATMEL assembler .DB complains about "misaligned"

I'm using an assebler project in ATMEL Studio 7 (ATtiny84A) and I ran into a strange problem. In a code segment, if a .DB has two bytes it's fine, but two .DB on separate lines gives a misalignment warning. .CSEG ; one row .DB 0x01, 0x02 ; same…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
1
vote
0 answers

how to read multiple lines from serial C, terminated by carriage return AND line feed?

I am working on a project where I need to communicate from an AVR microcontroller to an rs232 device via UART and a TTL level converter. I am using a serial callback to get the characters from the serial port, and checking for a carriage return/new…
1
vote
1 answer

C Function variable changes unexpected

I use the simulator(Atmega 2560) debugger in Atmel studio. When I run the debugger the value F = 30 at the start of the function MoveStraight and it becomes 0 after the first Math/Struct value assignment. #include #include…
1
vote
1 answer

How to prevent Atmel Studio gcc 6.3.1 from optimizing 4-byte memcmp() to a 4-byte direct comparison?

Running Atmel Studio with its provided gcc 6.3.1 to build firmware for an Atmel/Microchip SAMV70 (ARM Cortex-M7) chip. I have code that compares a 4-byte input array to a 4-byte local array using memcmp(). When compiled with -O0 to disable…
Andrew Cottrell
  • 3,312
  • 3
  • 26
  • 41
1
vote
0 answers

Atmel Studio 7 setting int = 0, returns 257

When ever i try to set my index int = 0, it becomes 257. I tried the following test code in visual studio, where it functions perfectly. int main() { int index = 0; int Data[24] = { 1, 0, 1, 1 }; //Await the first 4 start bits. do { while (0)…
Omarley
  • 11
  • 1
1
vote
1 answer

How to build an embedded Atmelstudio project on Debian through commandline

So, I am working on an embedded project for a cortex m7 microcontroller (ATSAME70Q21). The code is written in Atmel Studio 7, but I want to build it in a Debian environment through Docker (gcc docker image is Debian-buster based if I'm not mistaken)…
1
vote
0 answers

I am trying to communicate wit UART to display letter A but my code doesn't stop running?

Im trying to display A on TERA TERM simulator but when i run my code on ATMEL STUDIO 7 the code doesn't stop running. This is my code below i am running the program on the simulator tool available on atmel studio 7 and i believe i am configuring the…