Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing external flash SPI speed to SPI_FLASH_MAX_BAUDRATE, instead of using driver default speed (32MHz), before probing JEDEC identifier. #7371

Merged
merged 5 commits into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/nrf/boards/challenger_840/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define SPI_FLASH_MISO_PIN (&pin_P0_11)
#define SPI_FLASH_SCK_PIN (&pin_P0_14)
#define SPI_FLASH_CS_PIN (&pin_P0_08)
#define SPI_FLASH_MAX_BAUDRATE 20000000
#endif

#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
Expand Down
1 change: 1 addition & 0 deletions supervisor/shared/external_flash/spi_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void spi_flash_init(void) {
supervisor_flash_spi_bus.base.type = &busio_spi_type;
common_hal_busio_spi_construct(&supervisor_flash_spi_bus, SPI_FLASH_SCK_PIN, SPI_FLASH_MOSI_PIN, SPI_FLASH_MISO_PIN, false);
common_hal_busio_spi_never_reset(&supervisor_flash_spi_bus);
common_hal_busio_spi_configure(&supervisor_flash_spi_bus, SPI_FLASH_MAX_BAUDRATE, 0, 0, 8);

return;
}
Expand Down