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


Cold start not working on LPC2368

Posted by Ken Mosher on July 28, 2009
This one is kind of weird ... we have a FreeRTOS project that runs find on an LPC2388 board, but when we ported it to an LPC2368 (by changing the memory allocation from 64K to 32K) it runs normally ONLY when you hit the RESET button.

With the 2388, you flash the board (we're using an MCB2300 Keil Eval board for both), the flash finishes and then app comes up running (and everything works fine ... LEDs, CAN, etc.). We do the same thing with the 2368 ... flash the board but it just looks like it "stops" ... push the RESET button and everything comes up and runs just fine.

I've combed thru the FreeRTOSConfig.h file and it is the same for both (and looks reasonable).

The lpc2368.ld file has only one small difference for the Memory:
flash: ORIGIN = 0x00000000, LENGTH = 500K
ram: ORIGIN = 0x40000000, LENGTH = 32K
usbram : ORIGIN = 0x7FD00000, LENGTH = 8K
ethram : ORIGIN = 0x7FE00000, LENGTH = 16K

__stack_end__ = 0x40000000 + 32K - 4;

**** Note 32K is for the 2368 ... we use 64K for the 2388 ****

... and the boot.s file is the same for both 2368/88 and we have pretty small little stacks defined:

/* Stack Sizes */
.set UND_STACK_SIZE, 0x00000004
.set ABT_STACK_SIZE, 0x00000004
.set FIQ_STACK_SIZE, 0x00000004
.set IRQ_STACK_SIZE, 0X00000100
.set SVC_STACK_SIZE, 0x00000100

Any clues out there? THANKS!

RE: Cold start not working on LPC2368

Posted by Ken Mosher on July 28, 2009
Couldn't find a way to edit, so I need to correct something above (the board isn't right here with me, so I was going by what I remembered ...).

I'm told that the 2368 actually does the following:
1. Flashes and starts running just fine (disregard above)
2. On unplugging/restoring power it comes up basically ready to receive a new Flash image (like holding the RESET and INTO buttons on the eval board normally does).
3. If you hit the RESET button, it comes up and goes on it's merry way ...

Sorry 'bout the confusion!

RE: Cold start not working on LPC2368

Posted by Richard on July 29, 2009
Are you using Rowley Crossworks? If so then you need to defined STARTUP_FROM_RESET for your release builds.


RE: Cold start not working on LPC2368

Posted by Ken Mosher on July 29, 2009
No, we're just using the GCC toolchain.

[ 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