osKernelStart faults to HardFault handler
Hi All
I working on a data logger code. It is basic at the moment.
1, set a an ISRTimmer for 1sec.
2, When ISR triggered set a read bit in Datalogger register i set up.
3, Next loop thru main i test Datalogger register, if set go to a function and read A0, A1 ports and store back into an array i have set up.
Every time i run this code it completes 5 susessful looit always crashes on the 6th loop in the same spot reading A1.
The Fault has the same sequence. 1, call A1 read, 2, straight to HardFault_Handler. According to the stack it happen straight after the osKernalStart (see attached pic).
I was wondering if this is an ISRtimmer confilct with ADC issue?
Any tips would be greatly appreciated
Set Up;
Portenta H7 (STMH7), VS Code using PIO
