From 63e82dcdfe33e3805958203cdff0ed4d87a8b536 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 30 Nov 2016 00:11:25 +1100 Subject: [PATCH] py/asmthumb: Fix build for F7 MCUs after recent code refactoring. --- py/asmthumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/asmthumb.c b/py/asmthumb.c index 705c15a189..82a226b629 100644 --- a/py/asmthumb.c +++ b/py/asmthumb.c @@ -53,7 +53,7 @@ void asm_thumb_end_pass(asm_thumb_t *as) { #if defined(MCU_SERIES_F7) if (as->base.pass == MP_ASM_PASS_EMIT) { // flush D-cache, so the code emited is stored in memory - SCB_CleanDCache_by_Addr((uint32_t*)as->code_base, as->code_size); + SCB_CleanDCache_by_Addr((uint32_t*)as->base.code_base, as->base.code_size); // invalidate I-cache SCB_InvalidateICache(); }