Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Port for SAM3U under Keil µVision

Posted by FG on April 16, 2010
Hi,

I try to port FreeRTOS on a SAM3U-EK board with Keil toolchain.
I use an existing working project and I have included FreeRTOS sources.
Unfortunately, portASM.s file i use (from CORTEX_AT91SAM3U256_IAR\Source\portable\RVDS\ARM7_LPC21xx\) seem d'ont compile with SAM3U. I have the following error:
"portASM.s(69): error: A1630E: Specified processor or architecture does not support ARM instructions"

Have there an working port of portASM.s for SAM3U?

Best regards

RE: Port for SAM3U under Keil µVision

Posted by Dave on April 16, 2010
That is because you are trying to use an ARM7 file (which does support ARM code) with a cortex M3 (which does not support ARM code).

You want to use the files from the RVDS\ARM_CM3 directory.

RE: Port for SAM3U under Keil µVision

Posted by FG on April 16, 2010
Ok, but there are not this file inside the RVDS\ARM_CM3 directory.

RE: Port for SAM3U under Keil µVision

Posted by FG on April 19, 2010
Hi,
If I want to port the SAM3U project for to Keil toolchain, I have to rewrite the portasm.s from IAR project with asm code for RVDS/Keil compiler?

Thanks

RE: Port for SAM3U under Keil µVision

Posted by Dave on April 19, 2010
No. All the files you need are in the Source\portable\RVDS\ARM_CM3 directory. Open another Keil CM3 project to use as a reference.

RE: Port for SAM3U under Keil µVision

Posted by FG on April 20, 2010
I understand now.
In Keil, asm code and C code are in the same file port.c .
In IAR project, the two different codes are in two different files.

RE: Port for SAM3U under Keil µVision

Posted by FG on April 20, 2010
Hi,

I still have a problem with my project.

I have modified the demo program. Only two tasks are running: vStartLEDFlashTasks and the task for LCD (just for show a single text line).
When the program runs on the SAM3U-EK board, it's very slow (!).After a while, the program resets. I have the same problem under simulation, the program resets and I have not found why.

Any suggestions?

Thanks

RE: Port for SAM3U under Keil µVision

Posted by Dave on April 20, 2010
Just a stab in the dark, but do you have an interrupt that is continuously firing because its not being cleared correctly?

How are you simulating the application?

RE: Port for SAM3U under Keil µVision

Posted by FG on April 20, 2010
I simulate with simulator of Keil.

I have just see that I fall in HardFault_Handler.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists