Search found 749 matches

by Rick Kimball
Fri Apr 21, 2017 6:09 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 92
Views: 954

Re: FPU on F407 - how to

Q: hopefully the "float" in MapleMini profile does not mean the "double". That would be a disaster.. Why would that be a bad thing? If you think about the cortex-m4, using float would facilitate the use of the hardware FPU. I honestly don't see what Arduino user would even notic...
by Rick Kimball
Fri Apr 21, 2017 12:53 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 92
Views: 954

Re: FPU on F407 - how to

It can be fine as well but why in variants?! I didn't put the reset function in the variant. That is just where it seems to be. Myself, I'd move the start up code to the core directory. I'd put it here: https://github.com/stevstrong/Arduino_STM32/blob/Black_F4_variant/STM32F4/cores/maple/boards.cpp...
by Rick Kimball
Fri Apr 21, 2017 12:18 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 92
Views: 954

Re: FPU on F407 - how to

I'd also suggest to put this in function "init()" of "boards.c". I'd put it in the reset interrupt hander code, before any constructors are ever called. To be safe you want to make sure it is called before any of the __preinit_array functions are called. Right after the BSS sect...
by Rick Kimball
Fri Apr 21, 2017 2:03 am
Forum: Projects
Topic: $10 O-Scope revisited
Replies: 655
Views: 38411

Re: $10 O-Scope revisited

I guess you weren't named Leonardo in a past life : )
by Rick Kimball
Thu Apr 20, 2017 7:14 pm
Forum: STM32F4 Boards
Topic: FPU on F407 - how to
Replies: 92
Views: 954

Re: FPU on F407 - how to

by Rick Kimball
Mon Apr 17, 2017 1:20 pm
Forum: IDE's
Topic: stm32duino core with System Workbench for bluepill
Replies: 61
Views: 3081

Re: stm32duino core with System Workbench for bluepill

You probably want '-nostartfiles' instead of '-nostdlib'. -nostartfiles lets you provide your own startup code but lets you link with the nano.specs libc stuff. As far as code bloat goes, you need to spend some time with arm-none-eabi-objdump -CS yoursketch.ino.cpp.elf | less to see what is causing ...
by Rick Kimball
Mon Apr 17, 2017 1:08 pm
Forum: IDE's
Topic: stm32duino core with System Workbench for bluepill
Replies: 61
Views: 3081

Re: stm32duino core with System Workbench for bluepill

thanks rick, it seemed then that in my case, i missed out to include a lib in my build path, let me check that on my end :D It should pick it up automatically if you have your flags set correctly. You shouldn't have to explicity include the crti.o code. In my case, I explicitly turned off both the ...
by Rick Kimball
Mon Apr 17, 2017 1:01 pm
Forum: IDE's
Topic: stm32duino core with System Workbench for bluepill
Replies: 61
Views: 3081

Re: stm32duino core with System Workbench for bluepill

however, i can't figure out how premain() which calls init() gets patched into __preinit_array premain() is just an arbitrary name, you can all it unclemonkeycode() and it will still get invoked. The __attribute__( constructor ... ) is what puts it into the the ".init_array" section of th...
by Rick Kimball
Mon Apr 17, 2017 12:53 pm
Forum: IDE's
Topic: stm32duino core with System Workbench for bluepill
Replies: 61
Views: 3081

Re: stm32duino core with System Workbench for bluepill

missing _init() it turns out _init() is possibly intended for shared library initialization (e.g. in linux) and newlib does not ship with that, http://dbp-consulting.com/tutorials/debugging/linuxProgramStartup.html i noted that newlib provides void __libc_init_array() but does not provide _init() i...
by Rick Kimball
Mon Apr 17, 2017 12:03 pm
Forum: IDE's
Topic: stm32duino core with System Workbench for bluepill
Replies: 61
Views: 3081

Re: stm32duino core with System Workbench for bluepill

... the only trouble is that this is part of the variant start up codes, hence, we'd need to patch every variant if we want to fix the missing _init() You don't have to patch each variant. You just have _init() call init(). Also, I think the right place to define the init() function is in the varia...

Go to advanced search