patacongo commented on issue #3737:
URL: 
https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-846457431


   > Do you have idea what the cause may be?
   
   No, it is impossible to interpret the hardfault dump without also having the 
ELF file with the addresses.  Without the ELF it is just meaningless numbers.  
See 
https://cwiki.apache.org/confluence/display/NUTTX/Analyzing+Cortex-M+Hardfaults
   
   Because printf() uses buffered I/O we don't really know where it failed.  
The last data buffered by printf() was lost.  There was probably output after 
"Calling mystruct->pf()" that we do not see.  It appears that the failure 
occurred when mystruct->pf() was called.  However, it is also likely that 
mystruct->pf() returned and the crash occurred when the test exited.  This 
happens often if the stack is too small.  We can't tell from this data.
   
   You will need to analyze the hardfault dump per the steps at the above link, 
and/or single step through the mystruct->pf() call, and/or add a lot more 
printf() WITH fflush() calls.
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to