Skip to content

Commit 0a1b053

Browse files
committed
Add the SPI Fix only for F0, F3, F7 and L4 platforms
1 parent 3ce766a commit 0a1b053

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cores/arduino/stm32/spi_com.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ void spi_init(spi_t *obj, uint32_t speed, spi_mode_e mode, uint8_t msb)
269269
}
270270

271271
handle->Init.TIMode = SPI_TIMODE_DISABLE;
272+
#if defined(STM32F0xx) || defined(STM32F3xx) || defined(STM32F7xx) || defined(STM32L4xx)
272273
handle->Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
274+
#endif
273275

274276
if(obj->pin_mosi != NC) {
275277
port = set_GPIO_Port_Clock(STM_PORT(obj->pin_mosi));

variants/NUCLEO_L476RG/ldscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SECTIONS
7070
} >FLASH
7171

7272
/* The program code and other data goes into FLASH */
73-
.text ALIGN(8) :
73+
.text :
7474
{
7575
. = ALIGN(4);
7676
*(.text) /* .text sections (code) */

0 commit comments

Comments
 (0)