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

Data_Abort when executing vListRemove

Posted by Nobody/Anonymous on March 7, 2007
I am trying the demo project(uIP Embedded WEB Server Demo)on STR912-SK board, when I download it to flash and start to run, it always occur data_abort exception.
I use debugger to step by step execute, I found when calling list.c, it will cause data_abort execption(calling vListRemove function and executing "pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;").

Anyone has the same problem ?

RE: Data_Abort when executing vListRemove

Posted by Richard on March 7, 2007
Have you made any changes to the source files or project settings - or are you using the demo exactly as downloaded?

Could it be that an interrupt is executing and attempting to call an API function prior to the scheduler having been started?

Does this occur even when the Ethernet cable is not plugged in?

Regards.

RE: Data_Abort when executing vListRemove

Posted by Nobody/Anonymous on March 8, 2007
Hi Richard ,

My ethernet cable is not plugged in. And I didn't make any changes to the source files.
When executing LCD_init() in the main function, it will occur Data_Abort exeception.
It shouldn't occur any interrupt here.


Best Regards.

RE: Data_Abort when executing vListRemove

Posted by Richard on March 8, 2007
This looks like a hiccup on my part - sorry.

The LCD_Init() function is called from prvSetupHardware(), which itself is called from main(). This means LCD_Init() is called before the scheduler is started. LCD_Init() can however attempt to call vTaskDelay() which will cause a crash if called prior to the scheduler being started. I think this must be your problem. Strange I have not seen it myself, must be just down to the interface timing in the initialisation function.

Try moving LCD_Init() out of prvSetupHardware(), and instead call from prvLCDMessageTask(), immediately prior to entering the infinite loop. It will then be called from a task - after the scheduler is started. Let me know if this fixes the problem and I will add a note to the known issues list.

Regards.

RE: Data_Abort when executing vListRemove

Posted by Richard on March 8, 2007
Please note I have added the following 'known issue' - although this is not causing a problem on my system it is an error that could be the cause of your problems:

"The STR9 demo calls LCD_Init() from prvSetupHardware(), which itself is called from main(). However, there is a possibility that LCD_Init() will attempt to call vTaskDelay() and must therefore not be called prior to the scheduler being started. It is recommended to move the call to LCD_Init() from prvSetupHardware() to the top of prvLCDTask()."

Note that prvLCDTask() is the correct task to call the init function from.

Regards.

RE: Data_Abort when executing vListRemove

Posted by Nobody/Anonymous on March 9, 2007
I remove the lcd_init() , and it works ! The web server can run successful.
I think the problem is the different hardware board. When I use STR910-EVAL board , the LCD works normal , but on STR912-SK board , lcd_init() can't execute normally . They use different LCD module .

Thank you.

RE: Data_Abort when executing vListRemove

Posted by Richard on March 9, 2007
Thats good. I have updated the files in the Subversion copy. The LCD module I have responds fast enough that the delay never gets called - hence I have not seen the problem before.

Regards.


[ 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