Skip to content

Commit 5eaf720

Browse files
committed
Add support for the STM32F429ZI target
Fixes #33 "mbed-os-example-uvisor-thread doesn't work on DISCO_F429ZI"
1 parent 082248d commit 5eaf720

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ This is a simple example to show how to write a uVisor-secured threaded applicat
44

55
Supported devices:
66

7-
| Target | Toolchain | Baud rate |
8-
|--------|-----------|-----------|
9-
| `K64F` | `GCC_ARM` | 9600 |
7+
| Target | Toolchain | Baud rate |
8+
|-------------------|-----------|-----------|
9+
| `K64F` | `GCC_ARM` | 9600 |
10+
| `DISCO_F429ZI` | `GCC_ARM` | 9600 |
11+
| `EFM32GG_STK3700` | `GCC_ARM` | 9600 |
1012

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

source/main-hw.h

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
4646
}
4747

48-
#elif defined (TARGET_EFM32GG_STK3700)
48+
#elif defined(TARGET_EFM32GG_STK3700)
4949

5050
#define MAIN_LED LED1
5151
#define SECURE_LED LED2
@@ -65,6 +65,36 @@
6565
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
6666
}
6767

68+
#elif defined(TARGET_DISCO_F429ZI)
69+
70+
#define MAIN_LED LED1
71+
#define SECURE_LED LED2
72+
#define LED_ON true
73+
#define LED_OFF false
74+
#define SECURE_SWITCH USER_BUTTON
75+
#define SECURE_SWITCH_PULL PullDown
76+
77+
#define MAIN_ACL(acl_list_name) \
78+
static const UvisorBoxAclItem acl_list_name[] = { \
79+
{GPIOA, sizeof(*GPIOA), UVISOR_TACLDEF_PERIPH}, \
80+
{GPIOB, sizeof(*GPIOB), UVISOR_TACLDEF_PERIPH}, \
81+
{GPIOC, sizeof(*GPIOC), UVISOR_TACLDEF_PERIPH}, \
82+
{GPIOD, sizeof(*GPIOD), UVISOR_TACLDEF_PERIPH}, \
83+
{GPIOE, sizeof(*GPIOE), UVISOR_TACLDEF_PERIPH}, \
84+
{RTC, sizeof(*RTC), UVISOR_TACLDEF_PERIPH}, \
85+
{TIM5, sizeof(*TIM5), UVISOR_TACLDEF_PERIPH}, \
86+
{USART1, sizeof(*USART1), UVISOR_TACLDEF_PERIPH}, \
87+
{I2C1, sizeof(*I2C1), UVISOR_TACLDEF_PERIPH}, \
88+
{SPI1, sizeof(*SPI1), UVISOR_TACLDEF_PERIPH}, \
89+
{RCC, sizeof(*RCC), UVISOR_TACLDEF_PERIPH}, \
90+
{FLASH, sizeof(*FLASH), UVISOR_TACLDEF_PERIPH}, \
91+
{PWR, sizeof(*PWR), UVISOR_TACLDEF_PERIPH}, \
92+
{EXTI, sizeof(*EXTI), UVISOR_TACLDEF_PERIPH}, \
93+
{GPIOG, sizeof(*GPIOG), UVISOR_TACLDEF_PERIPH}, \
94+
{SYSCFG, sizeof(*SYSCFG), UVISOR_TACLDEF_PERIPH}, \
95+
{(void *) 0x42000000, 0x01000000, UVISOR_TACLDEF_PERIPH}, \
96+
}
97+
6898
#else /* Target-specific settings */
6999

70100
#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" : ["DISCO_F429ZI"]
3+
"platforms" : []
44
}
55
]
66
}

0 commit comments

Comments
 (0)