Skip to content

Commit 0b54fbb

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 7a66f60 commit 0b54fbb

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,37 @@ extern Serial shared_pc;
7373
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
7474
}
7575

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

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