cancel
Showing results for 
Search instead for 
Did you mean: 

MCU shutting down during SPI communicaiton

Stoufer
Associate III

I have a simple demo board with a STM32L451VET6, a SPI LCD and four switches. The board will send the first byte over SPI perfectly, then either during or right after sending the second byte - it appears the MCU shuts down - as the CS line drifts down to 0v and single stepping in the code it just stops stepping - no errors - no faults.

This is a minimal program with just two lines added to the auto-generated code.

Any Ideas ?

Stoufer_0-1694538436110.png

 

11 REPLIES 11

OK ... I generated a Hex file and programmed the board, cycled power and its toggling away ... no problem. No stopping... so its something with debugging ... any suggestions of things to check ?

Stoufer
Associate III

Resolved!  BOOT0 was left unconnected. Set it as input and tied to GND and everything is workin ggreat!

Thanks!