WRITE_REG hard fault
Hallo,
I'm compiling with this option <-fpack-struct=1>
Why, with this option, the instruction
<WRITE_REG(hdma->Instance->CBR1, 0U);>
generates hard fault? I don't understand, without changing nothing.
thank you.
Hallo,
I'm compiling with this option <-fpack-struct=1>
Why, with this option, the instruction
<WRITE_REG(hdma->Instance->CBR1, 0U);>
generates hard fault? I don't understand, without changing nothing.
thank you.
Either the handle points to an invalid value or you are making an unaligned access. Should be able to debug and investigate one way or the other. Look at the hdma handle and ensure the instance is valid. Look at the hard fault and understand why it occurred. The SCB register will have flags that explain why and where it happened.
The issue is not with the WRITE_REG macro.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.