From 42445dfe65a61ebf4af55f9a13e709e298896a10 Mon Sep 17 00:00:00 2001 From: Dr John Vidler Date: Thu, 13 Jan 2022 16:28:05 +0000 Subject: [PATCH] FORCE_RAM_FUNC now correctly uses .data.ramfuncs rather than plain .data, to work with newer gcc versions. See issue #33 at https://github.com/lancaster-university/microbit-v2-samples/issues/33 --- inc/core/codal_target_hal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core/codal_target_hal.h b/inc/core/codal_target_hal.h index 92364662..115aa307 100644 --- a/inc/core/codal_target_hal.h +++ b/inc/core/codal_target_hal.h @@ -101,7 +101,7 @@ extern "C" // This is for cycle-precise wait even in presence of flash caches (forces function to sit in RAM) #ifndef FORCE_RAM_FUNC -#define FORCE_RAM_FUNC __attribute__((noinline, long_call, section(".data"))) +#define FORCE_RAM_FUNC __attribute__((noinline, long_call, section(".data.ramfuncs"))) #endif #endif