Quality RTOS & Embedded Software

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


LPC2368 demo execution problem

Posted by Martin on April 18, 2007
Hi all,

I have tried the LPC2368 demo for the MCB2300 board, but it doesn't seem to run.

my board is MCB2300 ver. 3.0.
And i am using the Rowley crossworks 1.6 IDE

I have compiled the demo from within rowley crossworks, but unfortunately i dont have a debugger available to me right now. I program the board using the Flash magic programming tool.

I did although notice that ARM/Thumb settings for each file in the project wasn't set, so i did that myself before i compiled the project. So normal c files are compiled in thumb mode and isr's are compiled in arm mode. Other than that, the options seems to be correct.

I have tried though to debug through the Eclipse, i have the arm-usb-ocd debugger from Olimex, using openocd as GDB server. But i never reach the main function. Instead i end up her:

0x000002ec <reset_wait>: b 0x2ec <reset_wait>

does anyone have an idea, as to what might be wrong ?


RE: LPC2368 demo execution problem

Posted by Nobody/Anonymous on April 18, 2007
The ARM/THUMB settings are set as far as I can see. The project settings are configured for COMMON, ARM, THUMB, etc. individually. If you look in the right place you get the setting. This is a Crossworks feature that is really nice once you get the hang of it but not otherwise obvious.

RE: LPC2368 demo execution problem

Posted by Martin on April 19, 2007
Ok i found the problem.

In the startup code Philips_lpc230x_startup.s, STARTUP_FROM_RESET wasn't defined.
So i just added #define STARTUP_FROM_RESET 1. And now it is running.

But shouldn't this be defined elsewhere ?


RE: LPC2368 demo execution problem

Posted by Martin on April 19, 2007
Encountered another problem with the demo :)

When I open a http connection to the device, the device stops responding.
Some of the page is shown. Has this demo been tested before release ?

The demo files are unmodified, just compiled with crossworks IDE 1.6.

RE: LPC2368 demo execution problem

Posted by Nobody/Anonymous on April 19, 2007
Ok that makes perfect sense. Start up from reset is defined in the project as a preprocessor constant. The "debug" builds don't have startup from reset defined. The Release builds do. Therefore when you are not starting the code through the debugger you need to be using a release build or make the definition yourself.

RE: LPC2368 demo execution problem

Posted by embeddedc on April 19, 2007
Works ok for me (I just replied to your other post too but it seemed to have lost my login cookie). I only changed the IP address, nothing else.

Does the rest of the demo work for you after the network stops responding? Do the LED's still flash?

RE: LPC2368 demo execution problem

Posted by Martin on April 19, 2007
Hi embeddedc,

everything stops. It seems that the application crashes and raises an abort interrupt.
Unfortunately it isn't too happy about me debugging the application, through eclipse using the olimex arm.usb-ocd, either. So i will wait till i
get the cross connect debugger back, before i continue :)

I have previously been working with a sam7x and crossworks, where the boot from flash bit was set. So i wasn't aware of the fact that there is that difference between debug and release mode.

Thank you all for your replies.


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

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

Latest News

Version 10.1.0 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.


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


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