Search found 140 matches

by avrhack
Sun Apr 11, 2021 10:35 pm
Forum: Bug Reports
Topic: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved
Replies: 10
Views: 5526

Re: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved

I've just been working on an STM32L433 solution and noticed the STM32_HAS_I2C2 error in the registry. Irrespective of the ASCR register, surely this is a bug in the registry that is simply incorrect for the L433 as it does have I2C2?
by avrhack
Sat Feb 13, 2021 12:07 pm
Forum: Bug Reports
Topic: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved
Replies: 10
Views: 5526

Re: STM32L432, STM32L433 and STM32L443 HAL port issues Topic is solved

What was the drive for having that different version and what will be missed if it is removed?
by avrhack
Sat Nov 21, 2020 9:57 pm
Forum: Bug Reports
Topic: Wrestling with MAC on F107 Topic is solved
Replies: 18
Views: 11552

Re: Wrestling with MAC on F107 Topic is solved

So whilst searching I came across this thread that I started 4 years ago LOL! I'm now working on the same F107 board with an RMII connection to the KSZ8863 3-port 10/100 switch and have changed to using i2c so I can access all the switch registers, which of course now means the LWIP code will no lon...
by avrhack
Thu Oct 15, 2020 10:42 am
Forum: General Support
Topic: Detect compilation for ChibiOS
Replies: 2
Views: 1939

Detect compilation for ChibiOS

Sure this is a simple one but struggling to figure it out from the various makefiles..... I have a library routine (.h and .c) that needs to use e.g. chsnprintf instead of sprintf when compiled for ChibiOS. I can obviously add my own macro and conditional compilation, but I note that _CHIBIOS_HAL_ i...
by avrhack
Sun May 19, 2019 4:47 pm
Forum: Development and Feedback
Topic: Race condition with palWaitPadTimeout
Replies: 1
Views: 1804

Race condition with palWaitPadTimeout

I'm processing "interrupts" from an external SPI Ethernet MAC/PHY using the PAL events subsystem on the main thread, but after a while things stop. I'm 99% sure the issue is with a race condition which I can't see how to correct, but can't believe Giovanni hasn't got covered as otherwise t...
by avrhack
Thu Mar 28, 2019 3:10 pm
Forum: Development and Feedback
Topic: USB on STM32L432 Driving Me NUTS!
Replies: 10
Views: 5538

Re: USB on STM32L432 Driving Me NUTS!

Hi, I can't debug it that way unfortunately - Blackmagic Probe no longer seems to work with the L4 series, tried loads of different versions and none of them work for me any more. Still great for the F0 and F3 but L4 is totally broken in terms of BMP. Hum, i have no problem using BMP with L4, I eve...
by avrhack
Thu Mar 28, 2019 3:07 pm
Forum: Development and Feedback
Topic: USB on STM32L432 Driving Me NUTS!
Replies: 10
Views: 5538

Re: USB on STM32L432 Driving Me NUTS!

There is nothing that can suspend all other threads except a thread looping indefinitely at higher priority. Giovanni Well the issue was a suspended thread causing all others to stop - even though they were all the same priority and I had set up pre-emptive scheduling round robin specifically to av...
by avrhack
Thu Mar 28, 2019 9:58 am
Forum: Development and Feedback
Topic: USB on STM32L432 Driving Me NUTS!
Replies: 10
Views: 5538

Re: USB on STM32L432 Driving Me NUTS!

If I disable the thread that reads from USB and I immediately return from the thread that writes to USB everything works. So there's something in either of those routines that blocks everything - all threads just stop. I'm going to narrow it down now to whether it's read or write then I'll share the...
by avrhack
Thu Mar 28, 2019 9:46 am
Forum: Development and Feedback
Topic: USB on STM32L432 Driving Me NUTS!
Replies: 10
Views: 5538

Re: USB on STM32L432 Driving Me NUTS!

I can't debug it that way unfortunately - Blackmagic Probe no longer seems to work with the L4 series, tried loads of different versions and none of them work for me any more. Still great for the F0 and F3 but L4 is totally broken in terms of BMP. And it can't be a halt with a ChibiOS debug assert a...
by avrhack
Thu Mar 28, 2019 9:30 am
Forum: Development and Feedback
Topic: USB on STM32L432 Driving Me NUTS!
Replies: 10
Views: 5538

USB on STM32L432 Driving Me NUTS!

OK I'm sure I'm doing something stupid, but this is driving me nuts. I have a perfectly working app on an STM32L432 when USB is connected and working. There's also an LED which flashes briefly every 5 seconds to show activity - it runs in the main loop. There are two other threads which cover readin...

Go to advanced search