cancel
Showing results for 
Search instead for 
Did you mean: 

Nucle-L4R5ZI Hard Fault Timer with Output Channel

MMuet.1
Associate

I use the NUCLEO-L4R5ZI Evaluation Board.

I use STM32CubeIDE with HAL and gcc.

When i activate an Timer Output Channel (I have tried it with Output Compare, PWM, Forced Output) i get a Signal:0 in the gdb after the Timer init (e.g. after call of MX_TIM16_Init())

If i don't use Output Channel or when i use an Input Channel for Timer everything works fine.

I have this behaviour with all timers.

For testing i have disabled the NVIC interrupt but this doesn't fix this strange-error.

Is it possible that the timer output calls some function that is not defined ?

I use APB1 and APB2 clock with 8 MHz.

Thanks for your reply.

1 ACCEPTED SOLUTION

Accepted Solutions

That's in the System ROM

Check the BOOT0 pin is low, check SCB-VTOR set to your base location.

For the L4R5ZI there might be an option byte issue, BFB2 ? PEMPTY ?

https://community.st.com/s/question/0D53W00000HMNt8/stm32l4r5zi-is-it-possible-to-erase-a-page-and-write-a-double-word-in-flash-

https://community.st.com/s/question/0D53W00000raYd2SAE/intermittent-break-at-address-0x1fff51f4-with-no-debug

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

That's in the System ROM

Check the BOOT0 pin is low, check SCB-VTOR set to your base location.

For the L4R5ZI there might be an option byte issue, BFB2 ? PEMPTY ?

https://community.st.com/s/question/0D53W00000HMNt8/stm32l4r5zi-is-it-possible-to-erase-a-page-and-write-a-double-word-in-flash-

https://community.st.com/s/question/0D53W00000raYd2SAE/intermittent-break-at-address-0x1fff51f4-with-no-debug

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MMuet.1
Associate

Thanks for your reply.

It really seems to be the not properly cleared PEMPTY flag by the flash loaders.

After i have patched STM32CubeIDE everything works fine.

This bug has me really made debug for 10 hours :squinting_face_with_tongue:.

I wonder why my application runs okay until i use the timer output