atmel

Atmel SAM3X8E dual bank switching for booting different behaviour

烂漫一生 提交于 2019-12-01 13:11:06
I’m currently working with an Arduino Due board which has an Atmel SAM3X8E processor embedded. I’m programming it using the Atmel Studio (version 7.0.1645) and the provided Atmel Software Framework (version 3.28.1). The purpose of the program running on the SAM is to gain reprogramming functionality. Therefore the program gets the image from a host PC, flashes it block by block in the unused flash bank and verifies the image. All that is working fine, but I’m running into the same issue as this post ( Atmel SAM3X dual bank switching not working ). The Atmel SAM3X8E has two 256-kByte flash

What does ((Port *)0x41004400UL) mean here?

寵の児 提交于 2019-12-01 12:12:44
问题 I'm working on a developing board that has a 32-bit ARM based microntroller on it (namely the board is Atmel SAM D21J18A). I'm still at the learning phase and I have a lot to go, but I'm really into embedded systems. I have some background in C. However, it's obviously not enough. I was looking at the codes of an example project by Atmel, and I didn't really get some parts of it. Here is one of them: #define PORT ((Port *)0x41004400UL) /**< \brief (PORT) APB Base Address */ Port is defined as

Atmel SAM3X8E dual bank switching for booting different behaviour

陌路散爱 提交于 2019-12-01 11:26:15
问题 I’m currently working with an Arduino Due board which has an Atmel SAM3X8E processor embedded. I’m programming it using the Atmel Studio (version 7.0.1645) and the provided Atmel Software Framework (version 3.28.1). The purpose of the program running on the SAM is to gain reprogramming functionality. Therefore the program gets the image from a host PC, flashes it block by block in the unused flash bank and verifies the image. All that is working fine, but I’m running into the same issue as

placing static library answer in the beginning of flash section

余生长醉 提交于 2019-12-01 08:36:02
I'm using atmelstudio to compile a firmware image and want to place the functions from static libraries (including the gnu's libc.a & libgcc.a) in the beginning of the .text section followed .text belong to my project source code. Right now what happen is the other way around. This is my linker script . = ALIGN(4); _sfixed = .; KEEP(*(.vectors .vectors.*)) *(.text .text.* .gnu.linkonce.t.*) <-- my functions and functions from static libraries are within this rule *(.glue_7t) *(.glue_7) *(.rodata .rodata* .gnu.linkonce.r.*) *(.ARM.extab* .gnu.linkonce.armextab.*) The star in *(.text) , means to

placing static library answer in the beginning of flash section

独自空忆成欢 提交于 2019-12-01 06:34:25
问题 I'm using atmelstudio to compile a firmware image and want to place the functions from static libraries (including the gnu's libc.a & libgcc.a) in the beginning of the .text section followed .text belong to my project source code. Right now what happen is the other way around. This is my linker script . = ALIGN(4); _sfixed = .; KEEP(*(.vectors .vectors.*)) *(.text .text.* .gnu.linkonce.t.*) <-- my functions and functions from static libraries are within this rule *(.glue_7t) *(.glue_7) *(

How to add .c and .h files to Atmel Studio 6?

佐手、 提交于 2019-11-30 22:58:48
I know there are a lot of questions on this topic, and I've looked through a fair number of them. However I am still having problems. I started writing a test program for a prototype PCB, and now that it's grown to nearly 1000 lines I'm trying to break it up into libraries that I can use for particular functions. I thought this would be very simple. Make .c and .h files for each library that I need. I.e. I would have OLED.h and OLED.c for functions that control an OLED display. Copy the appropriate functions/definitions into each file. Then copy these files into the solution in Atmel Studio. I

How to make a delay in assembly for avr microcontrollers?

◇◆丶佛笑我妖孽 提交于 2019-11-29 14:51:13
I am having a problem in calculating delays. I want to make a delay for 1 sec when I am using 1MHz clock speed for my atmega128 microcontroller. I use proteus for simulation and avr studio for coding in assembly for atmel microcontroller. For example this code is for 8MHz clock microcontroller Delay_15mS: ; For CLK(CPU) = 8 MHz LDI dly1, 120 ; One clock cycle; Delay1: LDI dly2, 250 ; One clock cycle Delay2: DEC dly2 ; One clock cycle NOP ; One clock cycle BRNE Delay2 ; Two clock cycles for true 1 clock for false DEC dly1 ; One clock Cycle BRNE Delay1 ; Two clock cycles for true 1 clock for

GUI-Library for microcontroller [closed]

跟風遠走 提交于 2019-11-28 16:43:32
I want to create a GUI driven application for a micro-controller ( Atmel XMEGA ) that is connected to a 128x64 dots graphics LCD ( EA DOGL128-6 ) and 4 buttons for navigation. Controlling the display itself (e.g. drawing pixels and characters) is no problem but in order to prevent me from reinventing the wheel I was googling for a GUI-Library/-Toolkit that is written in c, includes its source code, will run on a 32 MHz 8-bit micro-controller and provides at least the following controls: panel (to group elements) menu (scrollable) icon label button line-graph (optional) But I didn't find any