Search found 11281 matches

by Giovanni
Mon Nov 12, 2018 8:53 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

I searched the GCC bug tracker but nothing. This is a minimal example of the problem: __attribute__((used)) void *retaddr; __attribute__((noinline)) void xxxxtest(void) { retaddr = __builtin_return_address(0); asm volatile("" : : : "r0", "r1", "r2", "r3&q...
by Giovanni
Mon Nov 12, 2018 7:46 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Seems to be a compiler problem... I will look into this. You could try a 6.x version, probably it is a regression in 7.x related to that builtin function because it has been working for years now. In addition, it seems to be M0-specific, M3 and following do not need all that registers copying. Movin...
by Giovanni
Mon Nov 12, 2018 7:13 pm
Forum: STM32 Support
Topic: STM32F0 ADC Example not working?
Replies: 1
Views: 21

Re: STM32F0 ADC Example not working?

Hi,

Try using -O0 as optimization or you may not hit breakpoints, it is pretty common because the compiler rearranges the code a lot.

Also, is samples1 filled?

Giovanni
by Giovanni
Mon Nov 12, 2018 7:04 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Yes, GCC allows to optimize the single function, look into the manual, it is one of the __attribute__ of functions. Strange anyway, I never experienced it, you could return to one of the 6.x versions, it would also be a good idea to report it. Could you explain the problem? just to make sure it is n...
by Giovanni
Mon Nov 12, 2018 3:37 pm
Forum: Development and Feedback
Topic: High Speed Tickless timers?
Replies: 3
Views: 69

Re: High Speed Tickless timers?

I think 50..100uS would be viable, it depends on time spent in callbacks/ISRs.

You could have significant jitter anyway, even using an HW solution.

Giovanni
by Giovanni
Mon Nov 12, 2018 1:27 pm
Forum: Development and Feedback
Topic: High Speed Tickless timers?
Replies: 3
Views: 69

Re: High Speed Tickless timers?

Hi,

Non sure about your requirements but 10uS is a bit extreme for an M0, probably you cannot do that using virtual timers.

What you could do is to enable the unused 3 comparators in the ST driver and use those like 3 extra timers working with the same resolution of ST.

Giovanni
by Giovanni
Sun Nov 11, 2018 10:20 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Then it is likely related to USB, probably the simple code you shown is not relevant to the problem.

Giovanni
by Giovanni
Sun Nov 11, 2018 9:56 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Is the USB connected to an host?

Giovanni
by Giovanni
Sun Nov 11, 2018 5:02 pm
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Hi,

Does the delay in chThdSleepMillisecond() affect the problem?

Does removing the USB code affect the problem?

Which compiler distribution are you using? (not just version)

Are you using startup files provided with ChibiOS or something else?

Giovanni
by Giovanni
Sun Nov 11, 2018 6:41 am
Forum: Bug Reports
Topic: strange behavior of the scheduler on STM32F070
Replies: 23
Views: 157

Re: strange behavior of the scheduler on STM32F070

Hi,

Try increasing the stack size in makefile.

Giovanni

Go to advanced search