Skip to main content
SHong.5
Associate III
November 13, 2020
Solved

How to solve Imprecise data access violation (IMPRECISERR). STM32H743 / LWIP / memp_init();

  • November 13, 2020
  • 1 reply
  • 3675 views

Hi

I'm new into MCU and currently using STM32 H743.

My code is facing HardFault_Handler every time I run.

After I debugged several times, I found the root error from LWIP.

The Fault Analyzer saids, it's Imprecise data access violation(IMPRECISERR) from BUS fault.

However, I have no idea how to deal with this.

Here's the code below

Middlewares > Third Party > LwIP > src > core > init.c

void

lwip_init(void)

{

........

mem_init();

memp_init(); <------------------- THIS ONE (goes into HardFault_Handler loop)

pbuf_init();

netif_init();

.......}

And Register Content During Fault Exception saids.

NAME VALUE

sp (MSP) 0x2001ff68

r0 0x30054000

r1 0x1010108

r2 0x20001a78

r3 0x30044000

r12 0x0

lr 0x800cd8b

pc 0x800a806

xpsr 0x1000000

Can anybody help me out with this?

Thanks in advance.

    This topic has been closed for replies.
    Best answer by TDK

    Are your clock settings valid? What statement in memp_init triggers the hard fault?

    1 reply

    TDK
    TDKBest answer
    November 13, 2020

    Are your clock settings valid? What statement in memp_init triggers the hard fault?

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    SHong.5
    SHong.5Author
    Associate III
    November 16, 2020

    oh... thanks a lot. As I changed clock settings, the error is immediately gone.