2019-04-13 07:11 AM
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?
2019-04-14 06:02 AM
Could any one share me issue about this
2019-04-14 06:22 AM
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)
2019-04-14 11:38 PM
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
2019-04-16 03:02 AM
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.
Please any one help me above error.....