Search found 1056 matches

by Rick Kimball
Mon Dec 11, 2017 9:09 pm
Forum: Ideas & suggestions
Topic: Interesting pull request to add build options
Replies: 16
Views: 119

Re: Interesting pull request to add build options

+5 :mrgreen: but only if it does not break anything in the existing build process. Absolutely! My response to this stemmed from another stm32duino Core PR request that was hacking up the boards.txt file to deal with sketch level configuration that can't be done easily. I've not kept the modificatio...
by Rick Kimball
Mon Dec 11, 2017 8:58 pm
Forum: Ideas & suggestions
Topic: Interesting pull request to add build options
Replies: 16
Views: 119

Re: Interesting pull request to add build options

I read the other link, and I can see how you propose to create the file using another external script, but I don’t see that script in STMs change. Sorry.. but here is another question Can the recipe hooks have different scripts on different platforms ? He takes care of both of your questions with w...
by Rick Kimball
Mon Dec 11, 2017 5:20 pm
Forum: Ideas & suggestions
Topic: Interesting pull request to add build options
Replies: 16
Views: 119

Interesting pull request to add build options

The STM32 guys have added an interesting pull to their core. It lets you add a build_opt.h to your sketch files. That file is then used as the @ file on the command line. This lets you override defines in the core things like F_CPU etc before any includes. With the libmaple core this approach might ...
by Rick Kimball
Fri Dec 08, 2017 8:56 pm
Forum: General discussion
Topic: Addition of -std=gnu++11 and -std=gnu11 compile flags
Replies: 22
Views: 1351

Re: Addition of -std=gnu++11 and -std=gnu11 compile flags

I like nano.specs .. however most here are probably going to be surprised that printf functions that use %f will silently display nothing .. Just wanted people to be aware and not freak out. I noticed that the size of our code just seems to be ever expanding. I was trying out someones test example ...
by Rick Kimball
Thu Dec 07, 2017 10:05 pm
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 212

Re: Sloeber and float sprintf: doesn't work

You are right Roger. I looked at the string conversion but I didn't look at the dtostrf() function it calls which in turns calls sprintf... sorry nm Also it isn't cstring it is actually String .. which is an arduino specific class. In the avr versions they have their own float conversion code which ...
by Rick Kimball
Thu Dec 07, 2017 9:39 pm
Forum: IDE's
Topic: [SOLVED] Sloeber and float sprintf: doesn't work
Replies: 15
Views: 212

Re: Sloeber and float sprintf: doesn't work

what is ftoa? That isn't standard. Where did you get that? Why not use the String's conversion functions: #include "Arduino.h" void setup() { Serial.begin(115200); delay(5000); } void loop() { static float temp = 10000; uint8_t i; String buffer; for (i=1;i<13;i++) { Serial.print("Before "); Serial.p...
by Rick Kimball
Tue Dec 05, 2017 10:02 pm
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 12
Views: 284

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

I checked out the bootloader source and tried a few things all on ubuntu 16.04. My default arm-none-eabi-gcc is loaded in /usr/bin ... it is version: $ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-bran...
by Rick Kimball
Tue Dec 05, 2017 5:08 pm
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 12
Views: 284

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

sw4stm32 uses a newer version of the arm-none-eabi-gcc than arduino. You might try changing the optimization to -O1 or even -Og or even -O0 .. assuming it still fits in the first 8k
by Rick Kimball
Sun Dec 03, 2017 6:58 pm
Forum: General discussion
Topic: BluePill USB won't enumerate at all
Replies: 11
Views: 221

Re: BluePill USB won't enumerate at all

The number of reasons something doesn't work are enumerable. We naively try to help people, but it is hopeless.

We are all alone. Only you can help you.
by Rick Kimball
Sun Dec 03, 2017 3:34 pm
Forum: Black Magic Probe & other
Topic: simpler black magic probe in platform.txt
Replies: 5
Views: 456

Re: simpler black magic probe in platform.txt

The first version is probably best for a general purpose one. It acts just like the current one with less arm waving: # blackmagic probe upload tools.bmp_upload.cmd=arm-none-eabi-gdb tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/ tools.bmp_upload.upload.speed=115200 tools.bmp_uplo...