Skip to content

Commit 287f56d

Browse files
committedMar 20, 2025·
Squash warning
1 parent 35c8cc5 commit 287f56d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎templates/lfs/nucleo-l432kc/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ flash: firmware.bin
2424
st-flash --reset write $< 0x8000000
2525

2626
cmsis_core:
27-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
27+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
2828

2929
cmsis_l4:
30-
git clone --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
30+
git clone -q -c advice.detachedHead=false --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
3131

3232
littlefs/lfs.c: littlefs
3333
littlefs:
34-
git clone --depth 1 -b v2.6.1 https://github.com/littlefs-project/littlefs $@
34+
git clone -q -c advice.detachedHead=false --depth 1 -b v2.6.1 https://github.com/littlefs-project/littlefs $@
3535

3636
clean:
3737
$(RM) firmware.* cmsis_* littlefs

‎templates/lfs/nucleo-l432kc/syscalls.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ static void flash_lock(void) {
5656
static uint8_t s_fs[FLASH_BLOCK_SIZE * LFS_BLOCKS]; // Keep FS in this memory
5757
#else
5858
// Allocate FS at the end of the flash memory
59-
static uint8_t *s_fs = ((uint8_t *) &_eflash) - FLASH_BLOCK_SIZE * LFS_BLOCKS;
59+
static uint8_t *s_fs =
60+
(uint8_t *) (((unsigned long) &_eflash) - FLASH_BLOCK_SIZE * LFS_BLOCKS);
6061
#endif
6162

6263
static inline char nibble(char c) {

0 commit comments

Comments
 (0)