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

LPC2368 uIP Rowleey demo crash

Posted by slawc on November 2, 2008
Hi.

I used this LPC2368 uIP Rowley demo for the LPC2478 part. I changed project setup and init to match new mcu. At first, everything seems to work just fine but while running for some time system just crashed. I opened RTOS statistic page in web browser which is refreshed every 2 seconds. Crash happens in few minutes but it's not deterministic. I found out that I got undefined instruction exception. If I make jump to the instruction after the one that caused exception with mov pc, lr I always end in emac.c part. I run in Thumb flash debug mode. I noticed that cpsr shows that micro is not in Thumb mode as it should be.

If I change emac.c to be compiled in ARM mode everything works fine without crashing for hours until I stopped the test manualy.

So... can someone confirm that LPC2368 uIP Rowley demo will work seamlessly in Thumb debug mode for more than few minutes (let's say two horus with five web browsers opened and ping -t option)??? I don't have LPC2368 Keil board to test it for myself.

Any ideas what is causing undef exception? Maybe someone will ask me the right question and I'll find out that I missed something. :)


RE: LPC2368 uIP Rowleey demo crash

Posted by MEdwards on November 2, 2008
before anybody else gets a chance to ask, did you check your stacks are not overflowing? If it runs in ARM mode then it would seem the code logic is ok. A corrupt value on the stack could cause an unexpected switch of mode.

RE: LPC2368 uIP Rowleey demo crash

Posted by slawc on November 2, 2008
I increased minimal stack size from 120 to 256 and no changes. I observed memory and all tasks had plenty of free stack space (stack space was filled with 0xAA), water mark in task statistic web page were also high enough.


RE: LPC2368 uIP Rowleey demo crash

Posted by slawc on November 8, 2008
I changed omit frame pointer to yes (aka -fomit-frame-pointer) and I everything works fine even with Thumb Flash Debug setting. I stoped the test after one hour (six web browsers trying to open web page and ping with -t option).

Interesting thing is, that LPC2368 demo for Rowley doesn't have -fomit-frame-pointer but Eclipse does.

(gcc version 4.1.1)


[ 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