microtronics
microtronics
Any chance you can give info on how to build in windows? I'd like to try compiling against IDA 7 under Windows.
Just tried it again on my laptop with a fresh install of Arduino and all libraries. The issue persists and the compile sizes differ: ``` "C:\\Users\\xxx\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\9.3.1-1.3/bin/arm-none-eabi-size" -A "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_515610/bench.ino.elf" Der Sketch...
I now did another Test in an Ubuntu VM with a fresh install of Arduino and everything and the issue remains the same. Installed the latest Arduino, SdFat 2.0.6 and...
``` Der Sketch verwendet 14772 Bytes (1%) des Programmspeicherplatzes. Das Maximum sind 1048576 Bytes. Globale Variablen verwenden 868 Bytes (0%) des dynamischen Speichers, 97436 Bytes für lokale Variablen verbleiben. Das...
Maybe turning on compile output on your machine reveals something...
It seems like it is dying upon evaluating: ``` inline uint32_t getLe32(const uint8_t* src) { return *reinterpret_cast(src); } ``` For FatPartition.cpp:422 `volumeStartSector = getLe32(mp->relativeSectors);` After that he goes into an...
changing `USE_SIMPLE_LITTLE_ENDIAN` to 0 fixes the issue... The only question is: why?
Yeah, I agree that it seems quite hard to guarantee alignment on the FAT data structures. [Here](https://blog.quarkslab.com/unaligned-accesses-in-cc-what-why-and-solutions-to-do-it-properly.html) it is suggested to use memcpy and the compiler appears clever enough to...
One more thing: I used a 2GB card -> FAT16. Did you use a FAT32 card? Probably there are less alignment issues...
> memcpy is not useful since the full byte functions handle litte-endian to processor endian as well as processor alignment. Actually this is done by a built-in function, but since...