Jaime Rodriguez

M52235EVB ColdFire Lite with Web Server RTOS

Discussion created by Jaime Rodriguez on Mar 7, 2009
Latest reply on Mar 10, 2009 by Bryan Kattwinkel

Hi to everygone.

 

  I am using Coldfire lite with web server code that comes with the evaluation board for M52235EVB.

  I am using the operating system to work with ethernet. Server works fine until I add a few more   tasks. I add simple tasks that blink the leds and this is the message that appears into hyperterminal:

 

Copyright 1997-2006 by InterNiche Technologies. All rights reserved.
calloc1 failed: size: 225, failures: 1
Access Error -- PC = 0x0000B1F6
Attempted write to write-protected space
Access Error -- PC = 0x0000B1F6
Attempted write to write-protected space
Access Error -- PC = 0x0000B1F6
Attempted write to write-protected space
Access Error -- PC = 0x0000B1F6
Attempted write to write-protecte

 

 The problem appears as soon as I add 1600 (4 Tasks with 400 stack size each). 

I would like to know:

1.- Why is this message appearing?

2.- How to get the stack size for an specific task?

3.- If the application is crashing with this simple tasks, will it be enought memory when I add more complex tasks(USB, CAN, Main application)?

4.-What would be the maximum stack size that I can use for an specific task?

5.-Is there a restriction for the stack size that I can use for ALL the tasks?

 

Thank you in advanced for any help since I am new to the RTOS and the coldfire architecture.

 

Jaime

Outcomes