Running RTEMS on a LEON2 from ROM

Mike Looijmans mike.looijmans at topic.nl
Wed Jul 26 14:17:55 UTC 2017


On 26-07-17 15:25, Sebastian Huber wrote:
> On 26/07/17 15:24, Mike Looijmans wrote:
> 
>> "_Heap_Initialize" is called twice. Once from 
>> _Workspace_Handler_initialization with sensible values, and the second time 
>> it's called from RTEMS_Malloc_Initialize, with the heap_end set to 
>> 0x91CFE0FF which isn't valid and causes the crash. 
> 
> Is the BSS cleared correctly? Is the initialized data section correctly set up?
> 

To the best of my knowledge, yes. The BSS section is zero-filled. The data 
section was copied to RAM. Verified that with "mem" in both simulator and 
actual target.

Anything else that RTEMS expects to be done in start.S?

I tried uncommenting "BSP_GET_WORK_AREA_DEBUG" in bspgetworkarea.c to maybe 
get some output.

After fixing the pointer-reference bugs in the code, this causes invalid 
memory access in the printk routine now, in "console_outbyte_polled". So that 
wasn't much help either.


Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail






More information about the users mailing list