This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: How to run ECO 3.0 on STM32


Hi Kishore,

kishore Srimat wrote:

> I tried to run with gdb but i constantly getting this error "Program
> recieved signal  SIGBUS, bus error". And some times it freezes at the
> "Continuing".

Generally speaking, you should interpret the SIGBUS error the same way
as a UNIX segmentation fault - ie, you're trying to read or write to an
area of memory which is not there.

There is an extra quirk with the STM32 in that you can see similar
errors if the DMA controller attempts to access off-chip memory.  You
will see this if you are doing a default RAM based build and enabling
the SPI drivers without specifying a suitable DMA bounce buffer.

> I tried to reset the board as it was suggested before running the
> example but no use. Any thoughts people ? Does anybody seen similar
> error ?

If it's not the SPI driver / DMA controller causing the error then the
chances are it's a null pointer dereference or similar bug in your
application.  Try setting a breakpoint on cyg_user_start and take it
from there.

Chris.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]