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

Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004
When i send 57 char to COM0 the system go to ABORT mode and loop at 0x00003050.

The keil IDE system give me the Abort Mode with:

Abort ->
R13(SP) = 0x400036ec
R14(LR) = 0x00001484
SPSR = 0x000000ff

Why the system go into Abort Mode ?

I'm using FreeRTOS 2.5.3 ARM7Keil Thumb Port.

:(

Luca B.

RE: Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004
I think is a stack problem...

I try to add more stack to User Mode...

from 200 to 500

but happen the same thing...

:(

RE: Error!: Abort Mode

Posted by Richard on December 23, 2004
The serial port ISR will operate using the IRQ stack rather than the user stack - but the number of characters sent will not make it use more stack.

Which function are use using to send the characters? vSerialPutString() or cSerialPutChar().

Try the demo application unmodified other than a line to send a long string to the COM port. Does the same thing happen?

RE: Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004
Why the system go into Abort Mode ?

I use the cSerialPutChar and cSerialGetchar...


mmm... the GCC port doesn't have this problem...


RE: Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004
The problem happens when I receive more string from PC...


RE: Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004

BUT...

if i send data to the ARM7 from PC and

the ARM7 put it into buffer....

and don't use it with the call cSerialGetChar...

What happens ???

I think that the system go into Abort Mode..

Luca B.

RE: Error!: Abort Mode

Posted by Richard on December 23, 2004
Can you explain more about what you are doing?

Are you using the standard demo?
What do you do to cause the error?

I am running the standard demo. I can send a text file to the Keil demo board that is severl KBytes long and the program carries on executing with no errors.

RE: Error!: Abort Mode

Posted by Nobody/Anonymous on December 23, 2004
My system send and receive large data no problem.

The demo board has reset and ISP on COM0 - make sure you dont use this by mistake.

Use a cable with just pin 2 pin 3 and pin 5 connected to make sure.


RE: Error!: Abort Mode

Posted by Richard on December 23, 2004
Here is what I have found / done.

I can send many MBytes of data to the ARM chip all in one go at 115200 with no source code optimisation. When I do this it is possible for the queue of characters to be Txed to fill up and stop. I think this is because TRHE interrupts are being missed (see fix below). However the kernel continues without error or abort.

If I stop the task from emptying the queue then the behaviour is exactly the same and there are no problems.


The serial ISR as downloaded contains a while loop. If you comment out the line:

// while( lDidSomething )

then the THRE missing problem goes away. With this line commented out I have sent 10 Megs of data at 115200 baud and experienced no problems at all.

All I can suggest is that you send me your entire project file for the Keil board. I will try it here and let you know what I find.

Let me know what you want to do.

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