Questions tagged [avr32]

AVR32 family of proprietary microcontrollers. Not to confuse with the 8 bit AVR/ATmega families or the ARM-based products.

20 questions
6
votes
1 answer

Why getting wrong results when performing pointer arithmetic in C on dynamically linked symbols?

I encountered a weird situation where performing pointer arithmetic involving dynamically linked symbols leads to incorrect results. I'm unsure if there are simply missing some linker parameters or if it's a linker bug. Can someone explain what's…
4
votes
1 answer

Avr Atmel AR32UV3A0512 EEPROM emulation over SPI

How to set AVR to emulate EEPROM over SPI? I would like to boot my TI's Piccolo from Atmel AVR AR32UV3A0512 via SPI port. Piccolo has a feature that allows it to boot through SPI connected EEPROM. TI documentation specifies that if the SPI is…
VladP
  • 529
  • 3
  • 15
3
votes
1 answer

AVR32 exception: Bus Data Error

Recently, I am facing a - to me - strange behavior in my embedded software. What I got: Running a 32 bit AVR32 controller, starting the program from an external SDRAM, as the file size is too big to start it directly from the micro-controller flash.…
Pierre Begon
  • 166
  • 13
2
votes
1 answer

AVR32 UC3C USART interrupt based

I am trying to communicate using USART(rs232) over AVR32 UC3C. I have followed the sample given on link - http://simplemachines.it/martin/mizar32/1.6.0-AT32UC3/DRIVERS/INTC/EXAMPLE/interrupt_usart_example.c. /* This source file is part of the ATMEL…
Vishal
  • 21
  • 5
1
vote
1 answer

How to connect External Crystal to AVR32DA28

I am trying to find any document on connecting External Crystal in AVR32DA28 and the XTAL32K2 and XTAL32K1 pins only supports 32 khz external crystal and any other value of crystal can be connected on EXTCLK pin but i can not figure out the way to…
1
vote
1 answer

Reading incorrect temperature value from thermistor using EVK1100

I want to get the temperature from a thermistor, so I made a voltage divider (3.3V to 10k resistor and between ground a 10k thermistor) I read the ADC between the 10k resistor and the thermistor. The BCOEFFICIENT is 3977, the NOMINAL TEMPERATURE…
Cedric
  • 17
  • 8
1
vote
0 answers

dereferncing type-punned pointer will break strict aliasing rules

I am using AVR32 Studio studio to compile my code for AVRUC3 controller. When I switched to Optimization level -O2(optimization more) ,this pointer warnings " dereferncing type-punned pointer will break strict aliasing rules " started to appear. I…
1
vote
0 answers

AVR32 uc3b Tx empty interrupt not working

I am currently working on RS485 usart interrupts on AT32UCB1258 custom board and struggling with txempty interrupt. Basically, I want to disable tx after 5 bytes have been sent. My rx interrupt (receive command from master board) and tx ready…
Jin
  • 119
  • 7
1
vote
1 answer

AVR32/GCC Linker warning: input is not relaxable

I am trying to compile an AVR32 program with GCC 3.4.2 and getting the following linker warning: input is not relaxable Could someone explain what that warning means? Linker flags: -Wl,--start-group -Wl,--end-group -Wl,--gc-sections…
sergej
  • 17,147
  • 6
  • 52
  • 89
1
vote
5 answers

How to interpret avr32-size output?

I have C program running on a AVR32 microcontroller (UC3C0512C). Issuing the avr32-size -A PROGRAM.elf command generates the following output: PROGRAM.elf : section size addr .reset 8200 2147483648 .rela.got …
sergej
  • 17,147
  • 6
  • 52
  • 89
0
votes
0 answers

Dwin Hmi Interfacing with Avr32da28

while testing this code only with tx(RX pin is open) it is working fine at the other hand tested it with only rx(TX is open) everthing is working as i expected, but when it comes to combine both rx and tx at the same time my mcu gets stuck and it…
0
votes
0 answers

proteus error : Invalid opcode 0xFFFF at PC=0x068C

This is my code: START: LDI R18, 0XFF OUT DDRB, R18 //LET PORT B AS OUTPUT LDI R16, 0B01110101 OUT TCCR0A, R16 LDI R17, 0B01110101 OUT TCCR0B, R17 LDI R24, 0XFF OUT DDRD, R24 // LET PORT AS INPUT OUT OCR0A,…
acemal9
  • 1
  • 1
0
votes
2 answers

Weird UC3 Reset behavior after user page NVRAM usage

I recently need to use in build NVRAM/EEPROM of AT32UC3L0256 to store some configuration data. I finally managed to use the user page NVRAM of the MCU (after days of trial and error and cursing on GCC ignoring noinit directives and fixing and…
Spektre
  • 49,595
  • 11
  • 110
  • 380
0
votes
3 answers

is the Atmel AT32UC 3C supported in freeRTOS?

I have an Atmel AT32UC 3C which I want to use. I'm just getting started with freeRTOS. I'm using Eclipse IDE along with MingW gcc compiler, and I downloaded FreeRTOS v8.2.3, v9.0.0 and v10.2.1. The problem is I can't find a demo example for AT32UC…
0
votes
1 answer

Jump out of inline assembly goes to the wrong target on AVR32

We are developing an application for the Atmel AVR32 / UC3C0512C using AtmelStudio 7.0.1645. While doing some basic tests, I noticed something very weird. Please consider the following code (I know that it is bad style and uncommon, but that's not…
Binarus
  • 4,005
  • 3
  • 25
  • 41
1
2