Search found 127 matches

by avrhack
Mon Apr 04, 2016 6:26 pm
Forum: STM32 Support
Topic: STM32_USE_REVISION_A_FIX
Replies: 7
Views: 1985

Re: STM32_USE_REVISION_A_FIX

I would say that such difficult to find problems are better solved-by-default. The cost is "hours/days of debugging" versus a few bytes in flash and/or a performance impact in the case the bug is present. The "switch" would be available for people running into flash size limitat...
by avrhack
Sat Apr 02, 2016 7:25 am
Forum: STM32 Support
Topic: STM32_USE_REVISION_A_FIX
Replies: 7
Views: 1985

Re: STM32_USE_REVISION_A_FIX

A very good question. Looking at the ChibiOS code, even when you enable this macro the I-Cache and D-Cache is only disabled for specific chipset revisions so it should have no effect on any that aren't broken. In other words, I can see no reason this isn't permanently enabled exactly as you suggest,...
by avrhack
Wed Mar 23, 2016 8:46 pm
Forum: ChibiOS/HAL
Topic: 1-Wire. Hardware abstracted
Replies: 47
Views: 11898

Re: 1-Wire. Hardware abstracted

barthess wrote:Hello.
Use the Force of ChibiOS, Luke.

Love it!

Mine is still working well but I will increase the thread priority just to be sure.

Thanks.
by avrhack
Sun Mar 13, 2016 6:15 pm
Forum: STM32 Support
Topic: CAN overflow not reset?
Replies: 2
Views: 1038

Re: CAN overflow not reset?

Managed to replicate the problem and it wasn't specifically this reset. The change I suggested didn't make anything worse but nor did it solve anything so I guess no point in changing it. What I did for my specific case was just loop around reading frames after an overflow error as it's clear from t...
by avrhack
Sat Mar 12, 2016 11:34 am
Forum: STM32 Support
Topic: CAN overflow not reset?
Replies: 2
Views: 1038

CAN overflow not reset?

I've got an issue with error handling on CAN receives. If I end up with an overflow error, the only way to fix things is to re-power the STM32. I presume a software reset would work but haven't tried it yet. I note the following very old thread http://forum.chibios.org/phpbb/viewtopic.php?f=16&t...
by avrhack
Sun Feb 21, 2016 12:15 pm
Forum: STM32 Support
Topic: watchdog driver ?
Replies: 11
Views: 2734

Re: watchdog driver ?

I find a quick file compare of my project against the closest demo project highlights the differences quite quickly - generally chconf.h, mcuconf.h, halconf.h and makefile are the key files. Winmerge works well on Windoze. Worked like a charm - 6 projects changed over in less than an hour including...
by avrhack
Sat Feb 20, 2016 1:32 am
Forum: STM32 Support
Topic: watchdog driver ?
Replies: 11
Views: 2734

Re: watchdog driver ?

steved wrote:I find a quick file compare of my project against the closest demo project highlights the differences quite quickly - generally chconf.h, mcuconf.h, halconf.h and makefile are the key files. Winmerge works well on Windoze.


Good tip thanks, will give it a try.
by avrhack
Fri Feb 19, 2016 10:10 pm
Forum: STM32 Support
Topic: watchdog driver ?
Replies: 11
Views: 2734

Re: watchdog driver ?

I suggest to update, alternatively you can take just the driver from 16.1, the community driver is fine too. Giovanni Is there a guide? I notice from other posts you mention it's a lot easier than 2.x->3.x but when I did a quick branch switch everything went to hell with loads of errors so I suspec...
by avrhack
Thu Feb 18, 2016 9:52 pm
Forum: STM32 Support
Topic: watchdog driver ?
Replies: 11
Views: 2734

Re: watchdog driver ?

Hey, The Drivers repo (which I maintain) is being deprecated and everything is being moved to the Contrib repo. (https://github.com/ChibiOS/ChibiOS-Contrib) For the WDG driver, as Giovanni said it's in 16.1, I use it and it works perfectly. It won't be moved to the contrib repo as it's officially s...
by avrhack
Thu Feb 18, 2016 5:16 am
Forum: ChibiOS/HAL
Topic: 1-Wire. Hardware abstracted
Replies: 47
Views: 11898

Re: 1-Wire. Hardware abstracted

Measurement of CPU load is simple in general. Just analyze how much of time consumed by the idle thread compared to overall time. But your current design just acquire data from sensors and do some basic data transformation. Lets do it in other way. Let me know if your real life project starts to ge...

Go to advanced search