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

FreeRTOS and Secondary Bootloader Fail

Posted by Boris Estudiez on February 8, 2010
Hi,

I cannot get a FreeRTOS system to work from starting
address 0x8000 with a secondary bootloader.
I'm using a NXP LPC2148 microcontroller.

My application program crash when vTaskStartScheduler()
is called.

If application program is located on flash address 0x0000,
FreeRTOS works.

Anyone did something like this ?.

NOTES:

1) vTaskStartScheduler() is called in supervisor mode.
Interrupt disabled.

2) Interrupt vector table is remaped to RAM with MEMMAP=2.
First 64 bytes, from address 0x8000 are copied to RAM
address 0x40000000.

3) Linker script memory areas:
MEMORY
{
flash (rx): ORIGIN = 0x00008000, LENGTH = 468K
ram_ivt(rwx): ORIGIN = 0x40000000, LENGTH = 64
ram (rwx): ORIGIN = 0x40000040, LENGTH = 32K-64
}

4) Secondary bootloader, jumps to user program (0x8000)
in supervisor mode also.

5) FreeRTOS version: 6.0.2

6) Toolchain: GCC 4.1.1

7) MCU: LPC2148.

Thanks in advance.

Regards,
Boris Estudiez.-

---
Slicetex Electronics
www.slicetex.com.ar

RE: FreeRTOS and Secondary Bootloader Fail

Posted by Preet Kang on March 9, 2010
I am using LPC2148 with Secondary bootloader from SJvalley.com and it works perfectly. Secondary bootloader is of 4k in size and FreeRTOS works great. I think you might not be allocating correct supervisor stack or not entering supervisor mode before calling vTaskStartScheduler()

RE: FreeRTOS and Secondary Bootloader Fail

Posted by Boris Estudiez on March 12, 2010
Hi preetpal,

Are you using GCC ?.

Could you share your linker script and c-runtime assembler files, please ?.

Thanks in advance.

Regards,
Boris Estudiez.-

---
Slicetex Electronics
www.slicetex.com.ar

Thanks a lot

RE: FreeRTOS and Secondary Bootloader Fail

Posted by Preet Kang on March 12, 2010
I'm using GNUARM 4.3.2. Since I have WINARM installed, it grabs the cygwin sh/make.exe etc. from there.

Preet


[ 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