Closed
Description
CircuitPython version and board name
- CPY >= 9.0.0
- same54_xplained
Code/REPL
Not applicable
Behavior
Not applicable
Description
CPY stucks in file system initialisation when built with GCC14.
The same code works fine if it is compiled with GCC10;
Tried the tag 9.0.0;
Here is the back trace of problematic code. Currently no idea what exactly goes wrong here.
#0 0x00060e98 in memcpy (dst=dst@entry=0x2003fb1c, src=src@entry=0x4000000, n=n@entry=1) at ../../shared/libc/string0.c:52
#1 0x0004b748 in spi_flash_read_command (command=<optimized out>, command@entry=5 '\005', response=response@entry=0x2003fb1c "\002", length=length@entry=1) at supervisor/qspi_flash.c:77
#2 0x00055822 in wait_for_flash_ready () at ../../supervisor/shared/external_flash/external_flash.c:73
#3 0x00055a5c in write_flash (address=0, data=0x20002fc4 "\353\376\220MSDOS5.0", data_length=data_length@entry=256) at ../../supervisor/shared/external_flash/external_flash.c:120
#4 0x0004b6c2 in flush_ram_cache (keep_cache=true) at ../../supervisor/shared/external_flash/external_flash.c:443
#5 spi_flash_flush_keep_cache (keep_cache=true) at ../../supervisor/shared/external_flash/external_flash.c:465
#6 0x0004e5b6 in supervisor_external_flash_flush () at ../../supervisor/shared/external_flash/external_flash.c:474
#7 supervisor_flash_flush () at ../../supervisor/shared/flash.c:141
#8 0x00027f30 in external_flash_write_block (data=<optimized out>, block=8) at ../../supervisor/shared/external_flash/external_flash.c:541
#9 supervisor_flash_write_blocks (src=<optimized out>, block_num=<optimized out>, num_blocks=<optimized out>) at ../../supervisor/shared/external_flash/external_flash.c:577
#10 flash_write_blocks (self=<optimized out>, src=<optimized out>, block_num=<optimized out>, num_blocks=<optimized out>) at ../../supervisor/shared/flash.c:133
#11 flash_write_blocks (self=<optimized out>, src=<optimized out>, block_num=<optimized out>, num_blocks=<optimized out>) at ../../supervisor/shared/flash.c:120
#12 0x00022d7a in mp_vfs_blockdev_write (self=<optimized out>, block_num=9, num_blocks=1, buf=<optimized out>) at ../../extmod/vfs_blockdev.c:117
#13 disk_write (pdrv=<optimized out>, buff=<optimized out>, sector=9, count=1) at ../../extmod/vfs_fat_diskio.c:86
#14 0x00026772 in f_mkfs.constprop.0 (fs=<optimized out>, opt=opt@entry=7 '\a', work=work@entry=0x2003fd28, len=512, au=<optimized out>) at ../../lib/oofatfs/ff.c:5837
#15 0x000272fe in filesystem_init (create_allowed=true, force_create=false) at ../../supervisor/shared/filesystem.c:112
#16 0x0004bb4e in main () at ../../main.c:1042
Additional information
No response