This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
psim - assertion failed / unmaped address
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] psim - assertion failed / unmaped address
- From: "Per Oestergaard" <per at k64 dot dk>
- Date: Thu, 22 Jun 2000 23:10:37 +0200
Hi,
I have tried making some example programs on the PowerPC simulator.
They didn't work!
I therfore tried running the example programs hello.c and twothreads.c which worked great as long as I didn't change or added anything.
If I change stacksize away from 4096 it crash. I have tried random sizes as 1000, 1024, 2000, 8196 and the results are after a short:
time events.c:165: assertion failed - (events->time_from_event >= 0) ==
(events->queue != NULL)
I hope you can help.....
Sincerely
Per Oestergaard
More specifik:
[per@v19 testProgram]$ powerpc-eabi-run -o '/iobus/pal@0xf0001000/reg
0xf0001000 32' a.out Entering twothreads' cyg_user_start()
function
Beginning execution; thread data is 0
Beginning execution; thread data is 1
events.c:165: assertion failed - (events->time_from_event >= 0) ==
(events->queue != NULL)
The same happens if I add a handler like:
cyghandle_t simple_threadC;
I have build eCos with RH6.2, ecosconfig new psim and compiled with:
(in this example I also changed stacksize)
[per@v19 testProgram]$ powerpc-eabi-gcc -g
-I/mnt/newLinux/ecosData/testProgram/install/include simple-alarm.c
-L/mnt/newLinux/ecosData/testProgram/install/lib -Ttarget.ld -nostdlib
[per@v19 testProgram]$ powerpc-eabi-run -o '/iobus/pal@0xf0001000/reg
0xf0001000 32' a.out Time is 0
core_find_mapping() - access to unmaped address, attach a default map to
handle this - addr=0x56200000 nr_bytes 010b008 cia=0xcc34
Best regards
Per Østergaard
University of Southern Denmark
per@k64.dk