Skip to main content
PNata
Associate
April 13, 2019
Question

FreeRTOS +LwIP + FreeModbus TCP Hanging

  • April 13, 2019
  • 4 replies
  • 1830 views

I am using STM32F746ZG Nucleo board and programmed Modbus TCP with FreeRTOS(LwIP). Initially boad report properly to Modbus Master simulator, after ~10 hours or above any time, MCU going infinite loop some exception function like hardware fault etc,

Tue Apr 16, 2019 07:18:36: Reset: Halt core after reset via DEMCR.VC_CORERESET. 

Tue Apr 16, 2019 07:18:36: Reset: Reset device via AIRCR.SYSRESETREQ. 

Tue Apr 16, 2019 07:18:36: Hardware reset with strategy 0 was performed 

Tue Apr 16, 2019 07:18:37: Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0x20013966 

Tue Apr 16, 2019 07:18:37: Target reset 

Tue Apr 16, 2019 07:18:37: Code coverage activated 

Tue Apr 16, 2019 07:18:37: There was 1 warning during the initialization of the debugging session. 

Tue Apr 16, 2019 15:07:12: HardFault: 

Tue Apr 16, 2019 15:07:12: Forced escalated exception 

Tue Apr 16, 2019 15:07:12: BusFault fault: 

Tue Apr 16, 2019 15:07:12: Precise data error 

Tue Apr 16, 2019 15:07:12: BFAR is valid 

Tue Apr 16, 2019 15:07:12: Fault address BFAR: 0x01DEBD3B 

Tue Apr 16, 2019 15:07:12: PC 0x0800E3DA 

Tue Apr 16, 2019 15:07:12: SP 0x20013940 

Tue Apr 16, 2019 15:07:12: LR 0xFFFFFFFD 

Tue Apr 16, 2019 15:07:12: Vector table: 0x08000000 

Tue Apr 16, 2019 15:07:12: HardFault exception. 

Tue Apr 16, 2019 15:07:12: The processor has escalated a configurable-priority exception to HardFault. 

Tue Apr 16, 2019 15:07:12:  A precise data access error has occurred (CFSR.PRECISERR, BFAR) at data address 0x1debd3b. 

Tue Apr 16, 2019 15:07:12:  

Tue Apr 16, 2019 15:07:12: Exception occured at PC = 0x8003a2e, LR = 0x80037eb 

Tue Apr 16, 2019 15:07:12:  

Tue Apr 16, 2019 15:07:12: See the call stack for more information. 

is it suitable for FreeRTOS with LwIP middleware or not?

This topic has been closed for replies.

4 replies

PNata
PNataAuthor
Associate
April 14, 2019

Could any one share me issue about this

Tesla DeLorean
Guru
April 14, 2019

You're going to have to debug it, start by root causing the Hard Fault, perhaps use a routine outputting helpful detail rather than just while (1)​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PNata
PNataAuthor
Associate
April 15, 2019

Hi,

I am try with debug, Hardware fault exception with BFAR is came. i can not identify why it is happen(Compiler time no error & no warning)

when Debug time,

Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0x20013966 

Please give suggestion for any solution