How to use IAR source in a arm-elf-gcc project

Started by in AT91SAM ARM17 years ago 4 replies

Hi, I have a project in arm-elf-gcc (ported from avr-gcc), works well. I have an usb mass storage source in IAR, i want use this in my project...

Hi, I have a project in arm-elf-gcc (ported from avr-gcc), works well. I have an usb mass storage source in IAR, i want use this in my project with an SD card. How can I use this from arm-gcc, which is the simplest way? ( I have never used IAR EWBARM (only in z80 :), and all my projects are in gcc from embedded linux to the OS-less microcontroller systems ) Thanks Andras


please help in building a arm7/9 toolchain

Started by Rafael Dias Menezes in AT91SAM ARM13 years ago

Hi people, I'm trying to build a arm7/9 toolchain in my linux 2.6 (debian 5.0) machine.. The compilers version is gcc-4.3.2. I got the...

Hi people, I'm trying to build a arm7/9 toolchain in my linux 2.6 (debian 5.0) machine.. The compilers version is gcc-4.3.2. I got the gcc-4.4.0, binutils-2.20 and newlib-1.17. I'm using the tutorials http://elua.berlios.de/en_tc_arm.html to help-me. Basically, following the tutorial I stopped in the compilation of newlib. During the compilation I got this error: ?arm-elf-gcc -B/...


sprintf with gcc arm-elf

Started by eric_pasquier in AT91SAM ARM16 years ago 5 replies

I am porting an AVR ATMega32 application to AT91SAM7S256, using WinARM (but the problem is the same with YAGARTO). When I try to use the...

I am porting an AVR ATMega32 application to AT91SAM7S256, using WinARM (but the problem is the same with YAGARTO). When I try to use the sprintf function, I get lots of unresolved references (see below). In fact, this function is working well in WinAVR (gcc 3.4.6) and is using the following functions : C:/Avredit/WinAVR/bin/../lib/gcc/avr/3.4.6/../../../../avr/lib/avr5\libc.a: (spri...


AT91SAM7xek UC/OS-II port

Started by boerrick in AT91SAM ARM16 years ago 1 reply

I'm using the AT91SAM7x-ek evaluation board, and I like to run Uc/os- II. I work with GCC, now I am looking for uc/os port for the GCC.

I'm using the AT91SAM7x-ek evaluation board, and I like to run Uc/os- II. I work with GCC, now I am looking for uc/os port for the GCC.


AT91SAM7S64 Gcc project

Started by daufoo in AT91SAM ARM17 years ago 4 replies

Hi all, I have the atmel dev kit with j-link and I would like to shift the development platform from IAR to Gcc. I would like to know if...

Hi all, I have the atmel dev kit with j-link and I would like to shift the development platform from IAR to Gcc. I would like to know if where can I find more information. I have tried to build a sample project using WinARM, however what's the best way to load the binary file using the j-link? Any other resouces for doing that? (prefer not usi


AT91 USART Interrupt Source Code GCC

Started by jannethgil in AT91SAM ARM17 years ago 2 replies

Hi Does anybody has an simple example on using usart interrupts using the GCC compiler for an AT91 ARM7 microcontroller?. I just...

Hi Does anybody has an simple example on using usart interrupts using the GCC compiler for an AT91 ARM7 microcontroller?. I just need to get started. Any links, sugestions or source code will be appreciated Thanks :)


About the keyword "ramfunc"

Started by "sgimin.tw" in AT91SAM ARM16 years ago 2 replies

Dear sirs, I am the new user for the GCC. When I use the GCC to compile the code, there will show the error message because it can't parse...

Dear sirs, I am the new user for the GCC. When I use the GCC to compile the code, there will show the error message because it can't parse the keyword "__ramfunc". Could you tell me why the code use this keyword ? And if I remove all these keywords in codes, will any problem happen ? Or please tell me how to prevent this error message. Thanks for your help. ------------------------...


Struct alignment problem (GCC)

Started by "ICLI, Bekir (EXT)" in AT91SAM ARM14 years ago 38 replies

Hi all, I am generating my code with GNU-ARM.. I have searched and found that the solution to this struct mis-alignment problem...

Hi all, I am generating my code with GNU-ARM.. I have searched and found that the solution to this struct mis-alignment problem is: __attribute__((__packed__)) Is there any compiler option, that would do the same for all structs I define? Or do I have to write this attribute to all of them? I found in gcc.pdf -fpack-struct Pack all structure members together without holes. Warning...


GCC and AT91SAM7 USB CDC Core Example

Started by Ralph Hempel in AT91SAM ARM15 years ago 20 replies

All, I've hit a bit of a roadblock with the Atmel USB-CDC Core implementation using GCC 4.1.1 Specifically, everything else I've tested is...

All, I've hit a bit of a roadblock with the Atmel USB-CDC Core implementation using GCC 4.1.1 Specifically, everything else I've tested is working fine except the OUT Endpoint Interrupt Handler. No matter what I tweak, it loses packets, messes up the input buffers and generally causes me grief. I've improved things by going to a strict POLLED implementation for reading the OUT Endp...


Interrupt example that compiles with GNU tool chain for AT91SAM7S256 (on Olimex SAM7P256 board)

Started by "Jesper K. Pedersen" in AT91SAM ARM12 years ago 2 replies

I am very much interested in an example software showing the workings of even just a "simple" (massive understatement) interrupt. As I can...

I am very much interested in an example software showing the workings of even just a "simple" (massive understatement) interrupt. As I can only access my board via the Samba it must be either running from ram or able to be programmed in flash via Samba (I do not have any jtag connection available). My system consist of : Developement server running : Debian 5.0 arm-elf-gcc (GCC...


Re: Struct alignment problem (GCC)

Started by 42Bastian in AT91SAM ARM14 years ago 1 reply

Hi > I am generating my code with GNU-ARM.. > I have searched and found that the solution to this struct mis-alignment problem is: > ...

Hi > I am generating my code with GNU-ARM.. > I have searched and found that the solution to this struct mis-alignment problem is: > __attribute__((__packed__)) > > Is there any compiler option, that would do the same for all structs I define? > Or do I have to write this attribute to all of them? > I found in gcc.pdf > > -fpack-struct I strongly advise not to use a general option.


How do I get gcc to not treat warnings as errors ??

Started by jpepe333 in AT91SAM ARM15 years ago 1 reply

Hello, I'm using the Eclipse / Yagarto / gcc toolchain (as distributed by Atmel with their Evaluation Kit) to build a target, and generate...

Hello, I'm using the Eclipse / Yagarto / gcc toolchain (as distributed by Atmel with their Evaluation Kit) to build a target, and generate a .bin file for a AT91SAM7X256-EK (evaluation board). The following is the console output dialogue: make -C nutapp/httpd USE_UROM=yes USE_MMC=yes all make: Entering directory `/cygdrive/c/SAM Studio 0.2/workspace/NutOS/nutapp/httpd' make...


console is not working on touch screen

Started by rohith S in AT91SAM ARM14 years ago 8 replies

hi i have done the porting kernel?successfully to at91sam9261ek but the the console is not?displaying ?on the touch screen it is only coming on...

hi i have done the porting kernel?successfully to at91sam9261ek but the the console is not?displaying ?on the touch screen it is only coming on hyper terminal please reply me wt might be the error is there any driver we need to include when we are configuring linux kernel through menuconfig ?if so which driver we need to include please reply ? kernel :linux2.6.20 uboot-1.5 gcc arm-linux-gcc-3...


AT91SAM7X256 internal flash read write with Rowley's CrossStudio

Started by ckchan_4 in AT91SAM ARM14 years ago 12 replies

Hi guys, Anybody have done the internal flash read & write from CrossStudio project ? I've downloaded Atmel's internal flash project, but...

Hi guys, Anybody have done the internal flash read & write from CrossStudio project ? I've downloaded Atmel's internal flash project, but those are for gcc and IAR compiler.. i tried to port over to CrossStudio, but i'm stuck at setting the function to run in RAM for IAR, it's __ramfunc for gcc, it's __attribute__ ((section (".ramfunc"))) what is for CrossStudio ? Thanks fo...


Re: Arm Linking Problem

Started by "ICLI, Bekir (EXT)" in AT91SAM ARM15 years ago 4 replies

Hi, I have somehow managed the FP problem, but now it is much worse, there are hundreds of: ..\lib_usb\boot.lib:(.data+0x4): multiple...

Hi, I have somehow managed the FP problem, but now it is much worse, there are hundreds of: ..\lib_usb\boot.lib:(.data+0x4): multiple definition of `__dso_handle' d:/a/t/gnu/arm/bin/../lib/gcc/arm-elf/4.2.2/crtbegin.o:(.data+0x4): first defined here ..\lib_usb\boot.lib: In function `start': reent.c:(.text+0xe0): multiple definition of `_mainCRTStartup' d:/a/t/gnu/arm/bin/../lib/gcc/ar...


Re: ARM7/ARM9 cores with MMU? ARM Processor with MMU and USB host fn?

Started by Caglar Akyuz in AT91SAM ARM14 years ago

Paulo Ricardo [Delfos] wrote: > Try EP9307 (ARM920T, 200MHz, MAC, 3 USB hosts, LCD I/F) from Cirrus Logic > ...

Paulo Ricardo [Delfos] wrote: > Try EP9307 (ARM920T, 200MHz, MAC, 3 USB hosts, LCD I/F) from Cirrus Logic > (http://www.cirrus.com/en/products/pro/detail/P1061.html > ) > Cirrus is out of arm business as of today according to [1] which makes 9307 a more or less obsolete product. [1] http://gcc.gnu.org/ml/gcc/2008-03/msg01068.html


Re: Arm Linking Problem

Started by 42Bastian in AT91SAM ARM15 years ago 1 reply

> I am trying to get my code compiled and linked, but there seems to > be a problem saying " undefined reference to `__udivsi3' " Seems...

> I am trying to get my code compiled and linked, but there seems to > be a problem saying " undefined reference to `__udivsi3' " Seems you try to link with ld. Try gcc(or g++ if you use C++) and supply linker specific options with -Wl. -- 42Bastian


Re: Cooperative FreeRTOS on SAM7-ex256 - Interrupts

Started by "FreeRTOS.org Info" in AT91SAM ARM15 years ago 1 reply

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage...

> I'm using the WinARM GCC. I have never used WinARM, but assume it to be the same as GNUARM and YAGART= O as far as functionality and usage goes... Take a look in port.c, at the function prvSetupTimerInterrupt(). This installs a different handler depending on the pre-emption setting. The tic= k ISR is set to either vNonPreemptiveTick() or vPreemptiveTick(). None of th= e interrupt


9XE-EK: Using SRAM and SDRAM?

Started by Dan Lyke in AT91SAM ARM13 years ago 4 replies

I could spend half the day digging through documentation, but if someone could quickly point me in the right direction, I've got a couple of...

I could spend half the day digging through documentation, but if someone could quickly point me in the right direction, I've got a couple of questions: 1. Does someone have a quick reference to the memory map I can expect on the 9XE-EK? I've been using SDRAM as a cast of AT91C_SDRAM, , but I need to be a little smarter about how I use it and knowing when I'm going to stomp on GCC using it....


AT91SAM7S64 GCC samples

Started by Anonymous in AT91SAM ARM17 years ago 3 replies

Hi all, I'm working on setting up a development environment using Kdevelop and FreeRTOS for the SAM7S64. It's taken a bit of work...

Hi all, I'm working on setting up a development environment using Kdevelop and FreeRTOS for the SAM7S64. It's taken a bit of work because the FreeRTOS port and demo app weren't finished and all of the ISRs had to be rewritten, among other things. I've also got it working (to some extent at least) with a remote J-Link JTAG pod. For troubleshoot