Skip to content

Commit 574f42a

Browse files
committed
Add support for wolfBoot_success() from test-app.
1 parent 49699bc commit 574f42a

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

docs/Targets.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,11 +1778,17 @@ Note: For alternate larger scheme flash `update.bin` to `0x14000` and place trig
17781778

17791779
Debugging with JLink:
17801780

1781-
In one terminal:
1782-
`JLinkGDBServer -if swd -Device MCXA153 -port 3333`
1781+
Note: We include a `.gdbinit` in the wolfBoot root that loads the wolfboot and test-app elf files.
1782+
1783+
In one terminal: `JLinkGDBServer -if swd -Device MCXA153 -port 3333`
17831784

1784-
We include a `.gdbinit` in the wolfBoot root that loads the wolfboot and test-app elf files:
1785-
In another terminal use `gdb`.
1785+
In another terminal use `gdb`:
1786+
1787+
```
1788+
b main
1789+
mon reset
1790+
c
1791+
```
17861792

17871793

17881794
## TI Hercules TMS570LC435

test-app/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ ifeq ($(TARGET),mcxa)
227227
APP_OBJS+=$(MCUXPRESSO_DRIVERS)/drivers/fsl_clock.o
228228
APP_OBJS+=$(MCUXPRESSO_DRIVERS)/drivers/fsl_reset.o
229229
APP_OBJS+=$(MCUXPRESSO_DRIVERS)/drivers/fsl_gpio.o
230+
APP_OBJS+=$(MCUXPRESSO_DRIVERS)/drivers/fsl_spc.o
230231
endif
231232

232233
ifeq ($(TARGET),imx_rt)

test-app/app_mcxa.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
#include "wolfboot/wolfboot.h"
3434

35+
extern void hal_init(void);
36+
3537
/* init gpio for port 3 */
3638
void gpio_port3_init(int pin)
3739
{
@@ -70,6 +72,8 @@ void main(void)
7072
uint8_t* bootPart = (uint8_t*)WOLFBOOT_PARTITION_BOOT_ADDRESS;
7173
uint32_t bootVer = wolfBoot_get_blob_version(bootPart);
7274

75+
hal_init();
76+
7377
/* If application version 1 then GREEN, else BLUE */
7478
/* RGB LED D15 (RED=P3_12, GREEN=P3_13, BLUE=P3_0) */
7579
if (bootVer == 1) {
@@ -81,6 +85,9 @@ void main(void)
8185
GPIO_PinWrite(GPIO3, 0, 0);
8286
}
8387

88+
/* mark boot successful */
89+
wolfBoot_success();
90+
8491
/* busy wait */
8592
while (1) {
8693
__WFI();

0 commit comments

Comments
 (0)