Skip to content

Commit 3229eb0

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

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Supported devices:
2323
| Target | Toolchain | Baud rate |
2424
|-------------------|-----------|-----------|
2525
| `K64F` | `GCC_ARM` | 9600 |
26+
| `DISCO_F429ZI` | `GCC_ARM` | 9600 |
2627
| `EFM32GG_STK3700` | `GCC_ARM` | 9600 |
2728

2829
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).

source/main-hw.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,36 @@ extern Serial shared_pc;
7171
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
7272
}
7373

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

76106
#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)