Hi xiaowei,
I think that using only these information you supplied we cannot help much.
Also you are using PX4, although it is based on NuttX, there are some
small (but important) differences. Normally PX4 drivers are
implemented on C++ and not as native NuttX drivers.
The magnetometer driver ist8308 doesn't exist on NuttX. I suggest you
to try to get help directly from PX4 team, they could help you better,
because they know about these modifications.
BR,
Alan
On 3/31/20, xiaowei z <
langzi1...@gmail.com> wrote:
> I have a stm32H7 hardware ,drive barometer using SPI2 interface,and driver
> magnetometer( ist8308 )using I2C4 and I2C3 interface,when I run both
> drivers in the work queue,the system will generate hard fault.
> I am according to the documentation to locate where the hard falut
> happened,the hard fault happened in spi read when it be called in work
> quene transfer.
> fault log
> <
https://drive.google.com/open?id=1x8EJ7IroYgYd6fPogqPMdqiSsHCVQbqE>debug
> <
https://drive.google.com/open?id=14WDtZTGo_W4fwkI7egY3H61Nn85a-xnu>
> uart console
> <
https://drive.google.com/open?id=14WDtZTGo_W4fwkI7egY3H61Nn85a-xnu>
> elf <
https://drive.google.com/open?id=1keEE1-alq0i1zDbRLMBzWQZS6ixmTBaW>
> I reference this document Analyzing Cortex-M Hardfaults
> <
https://cwiki.apache.org/confluence/display/NUTTX/Analyzing+Cortex-M+Hardfaults>,and
>
> found is hard fault in spi read/write。
> I think maybe is a irq error,but i am newbie,Can anyone help me?thank you
> very much!
>
> --
> You received this message because you are subscribed to the Google Groups
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nuttx+un...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/nuttx/4fc9a888-b609-46b2-a80c-994674b7c8ca%40googlegroups.com.
>