Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner