File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
templates/lfs/nucleo-l432kc Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ flash: firmware.bin
2424 st-flash --reset write $< 0x8000000
2525
2626cmsis_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
2929cmsis_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
3232littlefs/lfs.c : littlefs
3333littlefs :
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
3636clean :
3737 $(RM ) firmware.* cmsis_* littlefs
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ static void flash_lock(void) {
5656static 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
6263static inline char nibble (char c ) {
You can’t perform that action at this time.
0 commit comments