Search found 9 matches

by grafalex
Fri May 19, 2017 12:49 pm
Forum: General discussion
Topic: Compiling with Link Time Optimization enabled
Replies: 8
Views: 516

Re: Compiling with Link Time Optimization enabled

I you you mentioned the change for FreeRTOS was needed because otherwise that function would be left out by the linker. Now, the FreeRTOS files have minimal changes to make it compatible with the core, and nothing related to the function you had to mark as "used". Do you have any idea why that func...
by grafalex
Thu May 18, 2017 7:47 pm
Forum: STM32generic
Topic: noInterrupts()
Replies: 3
Views: 229

Re: noInterrupts()

Correct.

But we are in STM32generic branch of the forum :)
There is no libmaple in STM32GENERIC
by grafalex
Thu May 18, 2017 6:15 pm
Forum: STM32generic
Topic: noInterrupts()
Replies: 3
Views: 229

noInterrupts()

Hi All,

Is there an implementation for interrupts()/noInterrupts()? I tried to grep sources but found only this

Code: Select all

#define interrupts() sei()
#define noInterrupts() cli()
At the same time there is no implementation for sei/cli. Am I missing something?
by grafalex
Thu May 18, 2017 5:59 pm
Forum: CubeMX and HAL
Topic: HALMX roadmap.
Replies: 19
Views: 2548

Re: HALMX roadmap.

Thank you for the answer.
What do you mean under 'official' STM port?
by grafalex
Wed May 17, 2017 8:07 pm
Forum: General discussion
Topic: Compiling with Link Time Optimization enabled
Replies: 8
Views: 516

Re: Compiling with Link Time Optimization enabled

If you made those arrays a fixed size, Did link time optimisation result in smaller ROM or RAM footprint? Roger, I am not sure I understand your question. Offtopic: I have to say that fixing these warnings (original question in this topic) is just a half of the LTO deal. There is another issue: ar/...
by grafalex
Wed May 17, 2017 7:53 pm
Forum: General discussion
Topic: Compiling with Link Time Optimization enabled
Replies: 8
Views: 516

Re: Compiling with Link Time Optimization enabled

Please check out my changes at https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/286/files. I did timer_dev and adc_dev structures as fixed size. Instead of array of handlers now these structures have a pointer to array of handlers. In case of timers I had to change initialization macros. Ma...
by grafalex
Wed May 17, 2017 2:38 pm
Forum: CubeMX and HAL
Topic: HALMX roadmap.
Replies: 19
Views: 2548

Re: HALMX roadmap.

Hi All, Is the port alive? I see 3 separate branches: - rogerclarkmelbourne's one seems too be original. Has USB Serial , I2C and SPI modules. Work is mostly happen around F103CB (which is one I am interested in) - sheeldoll's fork has more recent CMCIS for NucleoF103 - ekawahyu's branch is focused ...
by grafalex
Tue May 16, 2017 6:30 pm
Forum: General discussion
Topic: Compiling with Link Time Optimization enabled
Replies: 8
Views: 516

Re: Compiling with Link Time Optimization enabled

I doubt this will work. The issue is that timer structures have different size, so compiler can't allocate a space for them as it has to know the size in advance. In other words sizeof(ADVANCED_TIMER(1)) is greater than sizeof(timer_dev) (and that is why compiler generates a warning) I just realized...
by grafalex
Tue May 16, 2017 4:38 pm
Forum: General discussion
Topic: Compiling with Link Time Optimization enabled
Replies: 8
Views: 516

Compiling with Link Time Optimization enabled

.... moving discussion here Hi everyone, I tried to compile stm32duino with -flto (Link Time Optimization) enabled and got number of warnings like this (same for other timers, and adc): D:\GRAFAL~1\Hobbies\Prog\MYPROJ~1\GPSLOG~3\Libs\STM32D~1\system\libmaple\include/libmaple/timer.h:138:18: warning...