Search found 275 matches

by rew
Sat Dec 14, 2019 5:36 pm
Forum: STM32 Support
Topic: Debuggiing unhandled exceptions.
Replies: 3
Views: 183

Re: Debuggiing unhandled exceptions.

OK. Thanks. I can try converting that into code. But by now my bug has been found, and I won't profit from it today. But if this can be integrated into CHIBIOS in some way then I think it would be useful. The idea would be that you enable a "debug unexpected exceptions" option in the confi...
by rew
Sat Dec 14, 2019 4:23 pm
Forum: STM32 Support
Topic: Debuggiing unhandled exceptions.
Replies: 3
Views: 183

Debuggiing unhandled exceptions.

Hi, I've just spent two days debugging a chibios project that seemed to hang after a few seconds. Turns out that I was getting an "unhandled exception". I ended up editing stuff into "vectors.c" to grab some state and put it in variables that the debugger can print. Once I recogn...
by rew
Sun Oct 20, 2019 6:25 pm
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 390

Re: Thread priorities...

prologue/epilogue: Ooops! I've apparently started from an interrupt routine from before that was standard. Now added. Now testing. .... Update: That helped! :-) Now it also works with my USART interrupt running at the 3 level. Thanks for the suggestion! Compiler is: arm-none-eabi-gcc (15:4.9.3+svn23...
by rew
Sun Oct 20, 2019 5:57 pm
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 390

Re: Thread priorities...

Ok. Guys... Different project, same issue: A thread that does "sleep" sometimes never wakes up again. Context: CPU: an STM32F030F4. In my current project, I use the UART, but I've written my own special purpose driver. I need a few things that the chibios drivers don't support. The "s...
by rew
Mon Sep 23, 2019 6:46 am
Forum: STM32 Support
Topic: Using two I2C buses in parallel fails
Replies: 5
Views: 269

Re: Using two I2C buses in parallel fails

rubenswerk wrote:Good hint.
but in my case I want to optimize I2C throughput and therefore the I2Cs should work in parallel.
In that case... don't use I2C... :)
I2C is very slow and can only be sped up in a limited way. Going to SPI will allow you to go 20x faster without any trouble.
by rew
Wed Sep 18, 2019 7:36 am
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 390

Re: Thread priorities...

If I make the interrupt that handles the IO do a resume of the thread, the interrupt code would need to lock and unlock. I don't like that. One of the reasons is that I like to keep the interrupt routines small and simple. For a processor like the M0, that helps keeping the save-state at the beginni...
by rew
Tue Sep 17, 2019 9:16 pm
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 390

Re: Thread priorities...

Alas, I have an M0. :-( (stm32F072 is my favorite processor: has USB, has DAC but is still quite economical to purchase). (I feel weird when I buy a processor with 200k RAM and 1M flash for EUR 10 (F405), while I could also buy a processor (H2+), PCB and 256Mb RAM for that amount of money (orange pi...
by rew
Tue Sep 17, 2019 8:02 pm
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 390

Thread priorities...

In a project I'm working on it looks as if one of my threads is not running as often as it is supposed to. It is as if there is a high priority thread that is blocking my worker-thread. But each time I stop the system with the debugger, I find that execution stopped in idle_thread. If my analysis of...
by rew
Wed Sep 11, 2019 7:11 pm
Forum: STM32 Support
Topic: Interrupt latency.
Replies: 14
Views: 529

Re: Interrupt latency.

This small article could be of help: http://www.chibios.org/dokuwiki/doku.php?id=chibios:howtos:interrupts So you point me to a document that tells me how it's supposed to be done. No indication from you if what you see me do in my code posted above is OK or not. Either you see me doing precisely w...
by rew
Mon Sep 09, 2019 2:07 am
Forum: STM32 Support
Topic: STM32F407 USB-CDC not working
Replies: 10
Views: 491

Re: STM32F407 USB-CDC not working

if the vbus signal is not connected or connected to a different pin, then you have to configure chibios for NO_VBUSSENSE.

Go to advanced search