Skip to content

Commit 0eedea7

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 86a4aa7 commit 0eedea7

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,29 @@ extern Serial shared_pc;
5252
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
5353
}
5454

55+
#elif defined(TARGET_EFM32GG_STK3700)
56+
57+
#define MAIN_LED LED1
58+
#define SECURE_LED LED2
59+
#define LED_ON true
60+
#define LED_OFF false
61+
#define SECURE_SWITCH SW0
62+
#define SECURE_SWITCH_PULL PullUp
63+
#define SHARED_SERIAL_BAUD 115200
64+
65+
#define MAIN_ACL(acl_list_name) \
66+
static const UvisorBoxAclItem acl_list_name[] = { \
67+
{CMU, sizeof(*CMU), UVISOR_TACLDEF_PERIPH}, \
68+
{MSC, sizeof(*MSC), UVISOR_TACLDEF_PERIPH}, \
69+
{GPIO, sizeof(*GPIO), UVISOR_TACLDEF_PERIPH}, \
70+
{TIMER0, sizeof(*TIMER0), UVISOR_TACLDEF_PERIPH}, \
71+
{UART0, sizeof(*UART0), UVISOR_TACLDEF_PERIPH}, \
72+
{(void *) 0x0FE08000, 0x1000, UVISOR_TACLDEF_PERIPH}, \
73+
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
74+
}
75+
5576
#else /* Target-specific settings */
77+
5678
#error "Unsupported target. Checkout the README.md file for the list of supported targets for this app."
5779

5880
#endif /* Target-specific settings */

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)