From c4e776417912ee0e73e59b31e88e2527f08ff8ab Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Wed, 29 Sep 2021 13:35:09 +0100 Subject: [PATCH 1/3] Changed to firmware & board config to match the documentation. --- boards/fysetc-spider/config.cfg | 8 +++++--- boards/fysetc-spider/firmware.config | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/boards/fysetc-spider/config.cfg b/boards/fysetc-spider/config.cfg index e08f8c02..e50cf0d6 100644 --- a/boards/fysetc-spider/config.cfg +++ b/boards/fysetc-spider/config.cfg @@ -51,7 +51,9 @@ sensor_type: temperature_mcu min_temp: 0 max_temp: 100 -# spi1 is also used for SD-Card extensions! +# Use software SPI to avoid issues with displays on EXP1&2. [adxl345] -spi_bus: spi1 -cs_pin: adxl345_cs_pin +cs_pin: PA4 +spi_software_mosi_pin: PA7 +spi_software_miso_pin: PA6 +spi_software_sclk_pin: PA5 diff --git a/boards/fysetc-spider/firmware.config b/boards/fysetc-spider/firmware.config index c9fe8ce1..e7bf5afd 100644 --- a/boards/fysetc-spider/firmware.config +++ b/boards/fysetc-spider/firmware.config @@ -13,7 +13,7 @@ CONFIG_BOARD_DIRECTORY="stm32" CONFIG_MCU="stm32f446xx" CONFIG_CLOCK_FREQ=180000000 CONFIG_USBSERIAL=y -CONFIG_FLASH_START=0x8000000 +CONFIG_FLASH_START=0x8008000 CONFIG_FLASH_SIZE=0x80000 CONFIG_RAM_START=0x20000000 CONFIG_RAM_SIZE=0x20000 @@ -33,9 +33,9 @@ CONFIG_MACH_STM32F446=y CONFIG_MACH_STM32F4=y CONFIG_HAVE_STM32_USBOTG=y CONFIG_HAVE_STM32_CANBUS=y -# CONFIG_STM32_FLASH_START_8000 is not set +CONFIG_STM32_FLASH_START_8000=y # CONFIG_STM32_FLASH_START_10000 is not set -CONFIG_STM32_FLASH_START_0000=y +# CONFIG_STM32_FLASH_START_0000 is not set # CONFIG_STM32_CLOCK_REF_8M is not set CONFIG_STM32_CLOCK_REF_12M=y # CONFIG_STM32_CLOCK_REF_16M is not set @@ -76,4 +76,4 @@ CONFIG_HAVE_GPIO_I2C=y CONFIG_HAVE_GPIO_BITBANGING=y CONFIG_HAVE_STRICT_TIMING=y CONFIG_HAVE_CHIPID=y -CONFIG_INLINE_STEPPER_HACK=y \ No newline at end of file +CONFIG_INLINE_STEPPER_HACK=y From e54750b056328c010764eb92e4b7f37e54d254d5 Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Mon, 4 Oct 2021 09:43:24 +0100 Subject: [PATCH 2/3] Correct adxl cs pin assignment. --- boards/fysetc-spider/config.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/fysetc-spider/config.cfg b/boards/fysetc-spider/config.cfg index e50cf0d6..07c3a947 100644 --- a/boards/fysetc-spider/config.cfg +++ b/boards/fysetc-spider/config.cfg @@ -53,7 +53,7 @@ max_temp: 100 # Use software SPI to avoid issues with displays on EXP1&2. [adxl345] -cs_pin: PA4 +cs_pin: adxl345_cs_pin spi_software_mosi_pin: PA7 spi_software_miso_pin: PA6 spi_software_sclk_pin: PA5 From 768eff0cf41ab22e0b715cdc2e65a8344e3e8464 Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Mon, 1 Nov 2021 11:40:30 +0000 Subject: [PATCH 3/3] Add data pin definition for neopixel connector. --- boards/fysetc-spider/config.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/fysetc-spider/config.cfg b/boards/fysetc-spider/config.cfg index 07c3a947..e6b48758 100644 --- a/boards/fysetc-spider/config.cfg +++ b/boards/fysetc-spider/config.cfg @@ -42,6 +42,9 @@ aliases: EXP2_2=PA5, EXP2_1=PA6 # also exposes spi1 +## Neopixel + neopixel_data_pin=PD3 + [mcu] baud: 250000 serial: /dev/fysetc-spider