From mboxrd@z Thu Jan 1 00:00:00 1970 From: "amassa@cts.com" To: jlarmour@redhat.co.uk, jskov@redhat.com Cc: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] eCos PowerPC Startup Date: Wed, 28 Jun 2000 11:02:00 -0000 Message-id: <200006281802.LAA88946@batman.cts.com> X-SW-Source: 2000-06/msg00335.html Since I have been having so much trouble getting ecos running on my MBX board I have stepped as far back to the beginning as possible. I have been stepping through the startup code (in vectors.s) on my MBX board because it seems to be hanging each time. I am using the EPPC-bug firmware to step through each assembly line. When I compile the code I see that the srec file is generated with an offset of 0x10000 (if no exception vectors are copied) or 0x10100 (when exception vectors are present). I had to manually define CYGSEM_HAL_POWERPC_COPY_VECTORS in vectors.s because it would not copy the vectors when I have it configured that way in my ecos configuration. I checked and found the correct assembly code present at the specified address. I ran the code in two different situations, the first was without any exception vectors copied. I stepped through the code and the board hung as soon as I tried to branch from vectors.s in the _start routine to mbx.s in the hal_hardware_init routine. The next time I ran I didn't get very far at all. The IP was at 0x10100 which is the reset vector. I step through the vector which basically just jumps to _start at address 0x12000. As soon as I tried to step to the branch instructions (bclr), the board hangs. Any insight into what might be going on would be greatly appreciated. Thanks, Anthony