STM32F407ZGT7 reset when write to SPI1 DR
When i debug SPI1 on STM32F407, program will jump to 0x00 when write DR register, MCU reset and loop continuely. when i measure the SCLK signal using oscillator, SCLK is always high after SPI1 is enabled
- When i write to DR of SPI1, the code jump to main
- I check the SCLK keep high after SPI1 enabled
I searched on the net, and this is suggest that SPI1 SCLK shared same pin with JTAG-TDO, Jtag should be disabled, but for 407, there is no the JTAG disable instruction in HAL.
Is there anyone can help me on this or give me some hints? Thanks
