About Hard fualt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About Hard fualt

Jump to solution
1,659 Views
yuichiro_yamagu
Contributor I

【Problem】
evkmimxrt1060_agm01_tensorflow_lite_adt is not working right at i.mxrt1060 Custtom Bord.
※ evkmimxrt1060_agm01_tensorflow_lite_adt is SDK example.

【Background】
evkmimxrt1060_agm01_tensorflow_lite_adt is working right at i.mxrt1060 EVK( Hyper Flah ).
But It's not working right at i.mxrt1060 Custtom Bord( Hyper Flah ).
The Custtom Bord's Hyper Flah is the same as i.mxrt1060 EVK's Hyper Flah

The phenomenon is Hard fualt occurs when I try to execute __libc_init_array().
The MCUXpresso shows IBUSERR (0) Instruction bus error.
The assembler is bl 0x600ebad0 <__libc_init_array> and it is trying to jump to the correct address

The __libc_init_array() can be found in the following locations
evkmimxrt1060_agm01_tensorflow_lite_adt / startup / startup_mimxrt1062.cpp /

Plese teach me solution.

0 Kudos
Reply
1 Solution
1,596 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) evkmimxrt1060_agm01_tensorflow_lite_adt doesn't work without SDRAM, does it?
-- Actually, yes, as it needs a large RAM memory to load the tensorflow lite library.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
5 Replies
1,657 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to the error message, the hard fault arises in advance of jumping to the main(), so I guess the hard fault is related to the hardware circuit and I'd highly recommend you to create a Hello_World demo of the C++ version to check this hard fault will happen or not. Please give a try.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,637 Views
yuichiro_yamagu
Contributor I

Thank you for answer.
I checked Hello_World demo of the C++.
Hello_World demo of the C++ demo works fine.
Is there anything I need to check in Memory Configuration, Compiler, Linker setting in MCUXpresso?

0 Kudos
Reply
1,625 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) Is there anything I need to check Memory Configuration, Compiler, Linker setting in MCUXpresso?
-- Yes, and below indicates the memory assignment of evkmimxrt1060_agm01_tensorflow_lite_adt, it uses SDRAM as the main RAM, does your customer board also has the same SDRAM chip too?

jeremyzhou_0-1604987765494.png

 

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,618 Views
yuichiro_yamagu
Contributor I

Thank you for answer.
customer board don't have the same SDRAM chip.
I have one question.
evkmimxrt1060_agm01_tensorflow_lite_adt doesn't work without sdram, does it?

0 Kudos
Reply
1,597 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) evkmimxrt1060_agm01_tensorflow_lite_adt doesn't work without SDRAM, does it?
-- Actually, yes, as it needs a large RAM memory to load the tensorflow lite library.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply