Skip to content

Commit

Permalink
Merge pull request #1371 from ii8/newline
Browse files Browse the repository at this point in the history
[stlink-lib] Clarified warning message for data alignment
  • Loading branch information
Nightwalker-87 committed Feb 20, 2024
2 parents 1ee7f6b + 4f3761b commit 40ee5f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stlink-lib/flash_loader.c
Expand Up @@ -750,8 +750,8 @@ int32_t stlink_flashloader_write(stlink_t *sl, flash_loader_t *fl, stm32_addr_t
sl->flash_type == STM32_FLASH_TYPE_C0) {

if (sl->flash_type == STM32_FLASH_TYPE_L5_U5_H5 && (len % 16)) {
WLOG("Data size is aligned to 16 byte");
len += 16 - len%16;
WLOG("Aligning data size to 16 bytes\n");
len += 16 - len % 16;
}
DLOG("Starting %3u page write\n", len / sl->flash_pgsz);
for (off = 0; off < len; off += sizeof(uint32_t)) {
Expand Down

0 comments on commit 40ee5f4

Please sign in to comment.