From 2fe4a9be710962ea1bf3abce59e8af5ce6168e4b Mon Sep 17 00:00:00 2001 From: Yannis Huber Date: Wed, 10 Jun 2020 09:35:20 +0200 Subject: [PATCH] maix-bit: add code model in target definition This is needed to avoid linking errors because the globals are placed in memory at address 0x80000000 which is out of bounds for the default code model. --- targets/k210.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/k210.json b/targets/k210.json index 5ddd9dba..4c5f3f91 100644 --- a/targets/k210.json +++ b/targets/k210.json @@ -1,5 +1,6 @@ { "inherits": ["riscv64"], "features": ["+a", "+c", "+m", "+f", "+d"], - "build-tags": ["k210", "kendryte"] + "build-tags": ["k210", "kendryte"], + "code-model": "medium" }