AnsweredAssumed Answered

Unexpected Error in managing pointer: "void HardFault_Handler (void)"

Question asked by Francesco Di Cecio on Aug 25, 2017
Latest reply on Aug 25, 2017 by Clive One

In a project I'm using a pointer to read data from memory.

I have problems with this procedure.

My pointer is a uint32_t * punt.

The pointer extracts the data and then increments itself.

extraction = *punt;

punt = punt +1;

With a loop "for" the program repeats the operation n times.

If I run the cycle one or two times, everything is fine.

If I run the cycle for n> = 3 then I fall into "void HardFault_Handler (void)".

Please help me.