Skip to content

Commit 0b7a903

Browse files
committed
Enable many STM devices with ARMC6
Yet another incorrect arm vs gcc discriminant
1 parent b22a174 commit 0b7a903

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/nvic_addr.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

targets/TARGET_STM/nvic_addr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
#if defined(__ICCARM__)
2424
#pragma section=".intvec"
2525
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
26-
#elif defined(__CC_ARM)
26+
#elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
2727
extern uint32_t Load$$LR$$LR_IROM1$$Base[];
2828
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
2929
#elif defined(__GNUC__)

0 commit comments

Comments
 (0)