Skip to content

Commit a17421b

Browse files
committed
Add support for the EFM32GG_STK3700 target
Fixes #19: "mbed-os-example-uvisor-number-store doesn't work on EFM32GG_STK3700"
1 parent b4a67e4 commit a17421b

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ As usual, all the code/data that is not protected by a secure box ends up in the
2020

2121
Supported devices:
2222

23-
| Target | Toolchain | Baud rate |
24-
|--------|-----------|-----------|
25-
| `K64F` | `GCC_ARM` | 9600 |
23+
| Target | Toolchain | Baud rate |
24+
|-------------------|-----------|-----------|
25+
| `K64F` | `GCC_ARM` | 9600 |
26+
| `EFM32GG_STK3700` | `GCC_ARM` | 9600 |
2627

2728
Latest release: [mbed-os-5.4.x](https://github.com/ARMmbed/mbed-os-example-uvisor/releases/tag/latest). Tested with [mbed-cli v1.0.0](https://github.com/ARMmbed/mbed-cli/releases/tag/1.0.0).
2829

source/main-hw.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ extern Serial shared_pc;
5151
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
5252
}
5353

54+
#elif defined(TARGET_EFM32GG_STK3700)
55+
56+
#define MAIN_LED LED1
57+
#define SECURE_LED LED2
58+
#define LED_ON true
59+
#define LED_OFF false
60+
#define SECURE_SWITCH SW0
61+
#define SECURE_SWITCH_PULL PullUp
62+
63+
#define MAIN_ACL(acl_list_name) \
64+
static const UvisorBoxAclItem acl_list_name[] = { \
65+
{CMU, sizeof(*CMU), UVISOR_TACLDEF_PERIPH}, \
66+
{MSC, sizeof(*MSC), UVISOR_TACLDEF_PERIPH}, \
67+
{GPIO, sizeof(*GPIO), UVISOR_TACLDEF_PERIPH}, \
68+
{TIMER0, sizeof(*TIMER0), UVISOR_TACLDEF_PERIPH}, \
69+
{UART0, sizeof(*UART0), UVISOR_TACLDEF_PERIPH}, \
70+
{(void *) 0x0FE08000, 0x1000, UVISOR_TACLDEF_PERIPH}, \
71+
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
72+
}
73+
5474
#else /* Target-specific settings */
5575

5676
#error "Unsupported target. Checkout the README.md file for the list of supported targets for this app."

test/filters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"blacklist" : [ {
3-
"platforms" : ["EFM32GG_STK3700", "DISCO_F429ZI"]
3+
"platforms" : ["DISCO_F429ZI"]
44
}
55
]
66
}

0 commit comments

Comments
 (0)