Curtis Malainey

Results 153 comments of Curtis Malainey

Build 3103 No my system defaults to C++, always has for `.c` and `.h` files, reinstalled C Improved and local indexing started working again (ie, i was able to use...

Was able to bisect down the optimizations 2 adds, this also repros the bug. `build_flags = -O1 -fcode-hoisting -finline-functions -finline-small-functions` I'm guessing this is likely a bug in GCC now...

@ladyada it appears to be the transfer function, forcing that to not be inlined fixes it ``` diff --git a/Adafruit_SPIDevice.cpp b/Adafruit_SPIDevice.cpp index 44a8f55..db3e993 100644 --- a/Adafruit_SPIDevice.cpp +++ b/Adafruit_SPIDevice.cpp @@ -119,7...

Dug a bit deeper through the ASM, looks like its specifically the calls to `delayMicroseconds` (defined in cores/arduino/delay.h from the BSP) in transfer that are causing the issue when inlined...

Sure, I can test that out, I'll also see if I can bisect the affected range since platformio makes adjusting toolchains easy

Latest gcc on platformio is also broken ``` arm-none-eabi-g++ (xPack GNU Arm Embedded GCC x86_64) 10.3.1 20210824 (release) ``` I'll try and build gcc from source later this week on...

Unable to repro on `arm-none-eabi-g++ (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.14)) 11.2.1 20220111` which i fetched straight from the [arm website](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads) So it looks like the gcc toolchain...

Note I checked the asm dump in my test and the second call was using `r6` instead of `r10`

> is the toolchain v defined in platformio - e.g. do you see the same issue in arduino ide? Will test when I have time, but I believe it inherits...