Skip to content

Commit dfbb027

Browse files
committed
Fixes for build targets.
1 parent c78f0d7 commit dfbb027

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

docs/Targets.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Example partitioning on Nucleo-68 board:
9494

9595
- Sector size: 4KB
9696
- Wolfboot partition size: 32 KB
97-
- Applicatiobn partition size: 128 KB
97+
- Application partition size: 128 KB
9898

9999
```C
100100
#define WOLFBOOT_SECTOR_SIZE 0x1000 /* 4 KB */
@@ -260,7 +260,7 @@ reset
260260
halt
261261
```
262262

263-
OpenOCD can be either run in background (to allow remote GDB and monitor terminal connections), or
263+
OpenOCD can be either run in background (to allow remote GDB and monitor terminal connections), or
264264
directly from command line, to execute terminal scripts.
265265

266266
If OpenOCD is running, local TCP port 4444 can be used to access an interactive terminal prompt.
@@ -293,7 +293,7 @@ Upon reboot, wolfboot will elect the best candidate (version 2 in this case) and
293293
If the accepted candidate image resides on BANK B (like in this case), wolfBoot will perform one bank swap before
294294
booting.
295295

296-
The bank-swap operation is immediate and a SWAP image is not required in this case. Fallback mechanism can rely on
296+
The bank-swap operation is immediate and a SWAP image is not required in this case. Fallback mechanism can rely on
297297
a second choice (older firmware) in the other bank.
298298

299299

@@ -309,5 +309,3 @@ From another console, connect using gdb, e.g.:
309309
arm-none-eabi-gdb
310310
(gdb) target remote:3333
311311
```
312-
313-

test-app/app_stm32f7.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
/* UART module */
3232
#define UART1_PIN_AF 7
33-
#define UART1_RX_PIN 10
34-
#define UART1_TX_PIN 9
33+
#define UART1_RX_PIN 10
34+
#define UART1_TX_PIN 9
3535
#define UART1 (0x40011000)
3636
#define UART1_CR1 (*(volatile uint32_t *)(UART1 + 0x00))
3737
#define UART1_CR2 (*(volatile uint32_t *)(UART1 + 0x04))
@@ -278,7 +278,7 @@ void uart_update_mgr(void)
278278

279279
#define LED_BOOT_PIN (4)
280280
#define LED_USR_PIN (12)
281-
void boot_led_on(void)
281+
static void boot_led_on(void)
282282
{
283283
uint32_t reg;
284284
uint32_t pin = LED_BOOT_PIN;
@@ -290,7 +290,7 @@ void boot_led_on(void)
290290
GPIOD_BSRR |= (1 << pin);
291291
}
292292

293-
void boot_led_off(void)
293+
static void boot_led_off(void)
294294
{
295295
GPIOD_BSRR |= (1 << (LED_BOOT_PIN + 16));
296296
}

test-app/app_stm32wb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929

3030
#ifdef PLATFORM_stm32wb
3131

32+
volatile uint32_t time_elapsed = 0;
3233
void main(void) {
3334
boot_led_on();
3435
/* Wait for reboot */
3536
while(1)
3637
;
3738
}
3839
#endif /** PLATFROM_stm32wb **/
39-

0 commit comments

Comments
 (0)