From 1243ee175f753e464754e4168ae53a43ee48a4ee Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Thu, 28 Jan 2021 10:16:36 -0600 Subject: [PATCH] flash_cs_force was ending up in flash on debug builds which is very bad! --- src/rp2_common/hardware_flash/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_flash/flash.c b/src/rp2_common/hardware_flash/flash.c index 48c18e6..70c626e 100644 --- a/src/rp2_common/hardware_flash/flash.c +++ b/src/rp2_common/hardware_flash/flash.c @@ -115,7 +115,7 @@ void __no_inline_not_in_flash_func(flash_range_program)(uint32_t flash_offs, con #if !PICO_NO_FLASH // Bitbanging the chip select using IO overrides, in case RAM-resident IRQs // are still running, and the FIFO bottoms out. (the bootrom does the same) -static void flash_cs_force(bool high) { +static void __no_inline_not_in_flash_func(flash_cs_force)(bool high) { uint32_t field_val = high ? IO_QSPI_GPIO_QSPI_SS_CTRL_OUTOVER_VALUE_HIGH : IO_QSPI_GPIO_QSPI_SS_CTRL_OUTOVER_VALUE_LOW;