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


Keil and FreeRtos problem...

Posted by pav on November 21, 2010
Hi all,
I have tried to create project for LPC1768 with Keil uVision4 and now I have some problems with it.
All seems to be ok(build is ok) but when I try to start the software it is stuck in startup code:
Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT __main
LDR R0, =__main
BX R0 // It stuck here...

I have import next functions:

IMPORT xPortSysTickHandler
and added those in __Vectors table.
But what I have forgotten? What else should I do?
Please, tell me...


RE: Keil and FreeRtos problem...

Posted by MEdwards on November 23, 2010
I think __main is where the Keil libraries initialize the C run time system, copy variable initialization values from flash to ram, zero out variables, etc. This is probably not a FreeRTOS problem but a linker script problem. When you created the project did you specify LPC1768 in the target options? If you did then it should have given you the correct start up .s file which you can then edit as you mention, and the correct linker parameters.

RE: Keil and FreeRtos problem...

Posted by pav on November 24, 2010
Hi edwards3 and thanks.
I have tested this first by creating an empty projetc with startup and main functions and all is ok. Then I added the Led blinking function and all is ok.
After that I added a FreeRTOS porting in project and now it doesn't work.
But I solved this problem by creating the second project and it is works. I dont know why because I haven't found differences between these two projects.
But second projects seems to work very well.

[ 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