File tree 2 files changed +5
-4
lines changed
templates/lfs/nucleo-l432kc
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ flash: firmware.bin
24
24
st-flash --reset write $< 0x8000000
25
25
26
26
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 $@
28
28
29
29
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 $@
31
31
32
32
littlefs/lfs.c : littlefs
33
33
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 $@
35
35
36
36
clean :
37
37
$(RM ) firmware.* cmsis_* littlefs
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ static void flash_lock(void) {
56
56
static uint8_t s_fs [FLASH_BLOCK_SIZE * LFS_BLOCKS ]; // Keep FS in this memory
57
57
#else
58
58
// 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 );
60
61
#endif
61
62
62
63
static inline char nibble (char c ) {
You can’t perform that action at this time.
0 commit comments