This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX with External SDRAM LPC1788 - causes bus fault

Hello,

I'm using the Embedded Artists LPC1788 development kit and I'm trying to get a very simple RTX application running using the external SDRAM.

Here is what I have so far:

1) A simple RTX application that runs (blinks an LED) with no problem when I use the internal RAM. This same application crashes with a bus fault in "os_sys_init" when I us the external SDRAM.

2) I configure and initialize the external SDRAM before the call to __main (this is working as I can run the same blinking LED using the SDRAM with no RTX.

3) Even if I let me STACK and HEAP remain in the internal RAM but have variables etc.. in the SDRAM I get the bus fault.

4) The bus fault is an IMPRECISERR: Imprecise data bus error

The call stack looks like this when the fault occurs:

HardFault_Handler -> rt_put_rdy_first() -> rt_dispatch() -> rt_task_create() -> SVC_Hanlder...

Does anyone have any suggestions? I see no reason why this should cause a fault.

Thanks.

MAC

Parents
  • Hello,

    Thanks. I implemented the test as shown on that web page. It passes the test but still faults as os_sys_init.

    However, that lead me to try reducing the EMC speed (from 120MHz to 60MHz) and it was ok.

    So yes this is a memory issue it looks like. If the test passes what else can I try to see what is going wrong as I would really like to run at 120 MHz.

    Thanks

    M

Reply
  • Hello,

    Thanks. I implemented the test as shown on that web page. It passes the test but still faults as os_sys_init.

    However, that lead me to try reducing the EMC speed (from 120MHz to 60MHz) and it was ok.

    So yes this is a memory issue it looks like. If the test passes what else can I try to see what is going wrong as I would really like to run at 120 MHz.

    Thanks

    M

Children