Craig Hollabaugh
Craig Hollabaugh
Thanks for the comments. At some point, I'll use a debugger to find where it hangs.
Not yet, taking this week off, need a quiet break. Got it jotted down for Monday 12/30.
OK, I didn't wait until Monday. I'm compiling on Ubunut 16.04 using arduino-builder command line (taken from arduino 1.8.10 verbose output). Compiling with -fqbn=Arduino_STM32:STM32F1:genericSTM32F103R:device_variant=STM32F103RE,upload_method=STLinkMethod,cpu_speed=speed_72mhz,opt=osstd in start_c.c, function start_c, line 84,...
Not at my desk at the moment... I'll see if the RC variant hangs in the same spot. No serial in blink sketch, just I/O. I'll check the build output,...
OK RC variant, hangs on __libc_init_array(). Here's the build output for start_s.c and syscalls.c ( -DSERIAL_USB is a GCC define, don't know if that helps or not). ``` /mnt/ramdisk/arduino/arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc -c...
OK, sounds good. I'll change the optimization and see what happens. Thanks for spending the time on this, I appreciate it.
Sure, I cloned the repo this afternoon. I'll work a little more this evening, first trying the -O3 change.
No luck with RE with any optimization. blink.ino ``` const int LED_BUILTIN=PC13; void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { delay(100); digitalWrite(LED_BUILTIN, LOW); delay(100); digitalWrite(LED_BUILTIN, HIGH); } ``` I'm...
I'm not using LTO, command line opt to arduino-builder is o3std ``` -fqbn=Arduino_STM32:STM32F1:genericSTM32F103R:device_variant=STM32F103RE,upload_method=STLinkMethod,cpu_speed=speed_72mhz,opt=o3std ``` Win10 attempt Same result with fresh install of IDE 1.8.10 and Arduino_STM32, blink.ino above for RB...
OK, I think I'm on to something. I stepped through init and found the hang in setup_adcs() in adc_f1.c adc_foreach, I commented out // fn(ADC3); ``` void adc_foreach(void (*fn)(adc_dev*)) {...