Search found 19 matches

by geebee
Tue Dec 01, 2020 8:55 pm
Forum: Bug Reports
Topic: Stack issues with fast interrupts
Replies: 3
Views: 23

Re: Stack issues with fast interrupts

I'm doing something like this (I cut out and adapted some parts, sorry if there are accidental errors here, the actual code compiles and mostly works other than the stack issue): void Vector1AC() { //... if (condition) SCB->ICSR = SCB_ICSR_PENDSVSET_Msk; } void PendSV_Handler() { OSAL_IRQ_PROLOGUE()...
by geebee
Tue Dec 01, 2020 4:49 pm
Forum: Bug Reports
Topic: Stack issues with fast interrupts
Replies: 3
Views: 23

Stack issues with fast interrupts

Hi, I'm bumping into some weird issues where I see the idle thread's stack overflowing but I can't quite catch it in the act due to watchpoints not working on my setup. I'm on an STM32H7, but I think this is applicable to all ARM v7m. After testing out everything, it seems that if I switch a fast in...
by geebee
Mon Sep 28, 2020 9:38 pm
Forum: Development and Feedback
Topic: [DEV] STM32H7xx support (new)
Replies: 85
Views: 6406

Re: [DEV] STM32H7xx support (new)

I can confirm that it's looking really solid, and support merging. I found another issue with checking the DMA status, this time it looks like a problem with the headers by ST. Specifically this line triggers a warning: if ((ETH->DMADSR & ETH_DMADSR_RPS) == ETH_DMADSR_RPS_SUSPENDED) { Because of...
by geebee
Thu Aug 06, 2020 6:33 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 173
Views: 30748

Re: Where to start STM32H7 support

It's revision V. The card is an 8 GB Sandisk Industrial micro SD HC I. As for the board, unfortunately I don't have an available standard board from ST, but the relevant part should be the same, as the SD card is just connected to the MCU directly at a very short distance, and the VDD pin is bypasse...
by geebee
Thu Aug 06, 2020 6:09 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 173
Views: 30748

Re: Where to start STM32H7 support

Giovanni, I have a system which uses the SDMMC driver with a STM32H743, and I'm bumping into a weird issue. sdcConnect() fails in sdc_detect_bus_clk(). If I simply add a return early and force to run at 25 MHz, everything seems to work fine: @@ -323,6 +323,7 @@ static bool sdc_detect_bus_clk(SDCDriv...
by geebee
Tue Aug 04, 2020 11:12 pm
Forum: Development and Feedback
Topic: [DEV] STM32H7xx support (new)
Replies: 85
Views: 6406

Re: [DEV] STM32H7xx support (new)

I think there is an issue with stalls/restarts, from compiler warnings. In hal_mac_lld, I believe you might want to do either --- a/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c +++ b/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c @@ -517,7 +517,7 @@ void mac_lld_release_transmit_descriptor(MACTransmitDesc...
by geebee
Fri Jul 10, 2020 8:08 pm
Forum: Bug Reports
Topic: HSI48 not getting enabled on STM32H7 Topic is solved
Replies: 1
Views: 362

HSI48 not getting enabled on STM32H7 Topic is solved

hal_lld.h provides constants for HSI48, but when it's enabled and used in the configuration it does not actually get enabled. These changes should fix it (I also changed the comments at the #endifs that got misplaced for HSE and CSI): --- a/os/hal/ports/STM32/STM32H7xx/hal_lld.c +++ b/os/hal/ports/S...
by geebee
Fri Jul 10, 2020 7:19 pm
Forum: Development and Feedback
Topic: [DEV] STM32H7xx support (new)
Replies: 85
Views: 6406

Re: [DEV] STM32H7xx support (new)

It seems that resetting the PHY via the reset pin before lwipInit() does the trick, so as far as I'm concerned everything looks good. Not sure why it used to work without it on the F767. I'll let you know if I bump into anything else, but so far it's looking very good. Thanks!
by geebee
Fri Jul 10, 2020 4:31 pm
Forum: Development and Feedback
Topic: [DEV] STM32H7xx support (new)
Replies: 85
Views: 6406

Re: [DEV] STM32H7xx support (new)

My suspicion is that the ETH block is left in some state that does not play well with re-initializing. It seems to happen only when the Ethernet cable is in and the link is up. Anyway, don't worry too much about it, I will look a bit more today and try to figure out what's happening. The board is a ...
by geebee
Thu Jul 09, 2020 3:54 pm
Forum: Development and Feedback
Topic: [DEV] STM32H7xx support (new)
Replies: 85
Views: 6406

Re: [DEV] STM32H7xx support (new)

Mike, thanks for implementing this! I've been running it for the past two days and it's been pretty solid (I haven't done a stress test though). One things I've noticed is that most (all?) of the times I need to power cycle after reprogramming the MCU, with the driver getting stuck here 366 ETH->DMA...

Go to advanced search