ERC32 BSP (a bit further this time)
Joel Sherrill
joel.sherrill at OARcorp.com
Tue May 6 13:37:23 UTC 2008
Neil Mayes wrote:
> Hi Philip,
>
>
>> A. How do you know you are not returning from
>> rtems_initialize_executive_early()?
>>
> I have a GPIO driving an LED and on return from boot_card I am setting
> the LED high. I added early returns from boot_card and can see I never
> return from rtems_initialize_executive_early. Now I can see I never
> return from _CPU_Initialize. If the LED does not light I have not
> returned.
>
Sounds very much like RTEMS has encountered a fatal
error in your configuration. Break at _Internal_Error_occurred.
Another common error is that there is an interrupt source
that is not cleared or properly initialized and on the first
context switch, it is faulting.
You will not return from boot_card to the assembly until the
application exits.
>> B. You mentioned that you have modified start.S (presumably
>> from
>> "\rtems-4.8\rtems-4.8.0\c\src\lib\libbsp\sparc\shared\start.S"
>> ). What are the "specific HW setup" that you did in start.S?
>>
> OK, I am setting my HW memory config (2Mbyte SRAM (1Mbyte per memcs), 2
> memory chip selects used, parity disabled), wait states set to 0 ws read
> and 0 ws write, for 10 Mhz sysclk, disabling the watchdog timer and
> setting UARTs to use the WDCLK @ 38K4 8 2 N. I am copying the same CPU
> init code as the mkprom so clearing FPU regs, all windows etc.
>
> Regards,
> Neil
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list