Closed
Description
Describe the bug
Using a Nucleo 32 stm32g431kb for SPI communication. After removing SB4 jumper (to disconnect PB3, or D13, from SWO of the on board stlink), SPI is not working as expected using stmduino core.
No signal on SCK (D13, or PB3) can be observed using an o-scope. The same is true for MOSI (D11, or PB5).
To Reproduce
Nucleo32 gk431kb with SB4 jumper removed. Plug USB, and upload the code using Arduino IDE 2.3.2.
#include <SPI.h>
void setup() {
SPI.begin();
SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));
SPI.transfer(0x52);
}
void loop() {
delay(10);
SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));
SPI.transfer(0x52);
}
Expected behavior
Normally, I would expect the SPI lines to show signals according to the communication protocol.
Desktop (please complete the following information):
- OS: Windows 10
- Arduino IDE version: 2.3.2
- STM32 core version: 2.6.0
- Tools menu settings if not the default: default
- Upload method: Mass Storage
Board (please complete the following information):
- Name: Nucleo 32 G431KB
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done