printf through uart
I am getting a hardfault issue when calling the printf function. Please find the attached details
Call stack
Thread #1 (Suspended : Signal : SIGINT:Interrupt)
prvGetRegistersFromStack() at stm32f1xx_it.c:109 0x800441a
() at 0xfffffff9
std() at 0x8007abe
__sinit() at 0x8007b76
printf() at 0x8006dac
main() at main.c:130 0x800400c
From the NVIC register CFSR, I could see that BFARVALID and PRECISERR are set. Also the content of BFAR is 0.
General purpose resister values
r0 0
r1 4
r2 0
r3 0
r4 -171798145
r5 0
r6 0
r7 12
r8 115200
r9 8
r10 7
r11 536871196
r12 -171798145
sp 0x2000017c
lr 0x8007b77 (Hex)
pc 0x8007abe
xPSR 0x61000000 (Hex)
msp 0x2000013c
psp 0x0
primask 0
basepri 0
faultmask 0
control 0
Please help me to resolve this isseu