[DEV] STM32H7xx support (new)

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
mikeprotts
Posts: 150
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 22 times

Re: [DEV] STM32H7xx support (new)

Postby mikeprotts » Wed Oct 14, 2020 2:50 pm

I'll take a look, may be a few days.

Thanks
Mike

mikeprotts
Posts: 150
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 22 times

Re: [DEV] STM32H7xx support (new)

Postby mikeprotts » Wed Oct 14, 2020 4:30 pm

A quick check & it's running, but will be a while before I can give better confirmation.

I've created patches (svn diffs) for the issues others had spotted and my use of memory pools for LWIP.

MACv2 (bugs in my code):
MACv2.xPS_SUSPENDED.patch to correct the registers used when checking for transmit or receive suspended state

STM headers (an existing bug, needed for MACv2):
STM32HxxETHi_DMADSR_RPS.patch to correct the stm32h???xx.h definitions for ETH_DMADSR_RPS_SUSPENDED etc. I think all the STM32H7 boards with Ethernet support should be the same, but I only have an early H743 variant to test with.

LWIP (additional options - not needed for MACv2):
LWIP_USE_MEM_POOLS.patch to add support for chHeapAlloc as an alternative to chPoolAlloc (kept as the default in os/various/lwip_bindings/arch/sys_arch.c).

Mike
Attachments
threepatches.tgz
(2.09 KiB) Downloaded 2 times

User avatar
Giovanni
Site Admin
Posts: 13063
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 757 times
Been thanked: 636 times
Contact:

Re: [DEV] STM32H7xx support (new)

Postby Giovanni » Wed Oct 14, 2020 4:37 pm

Hi,

I cannot patch ST headers or the change will be lost on next update, I suggest you undef the wrong definition in the driver C module and define the correct one there. You may see similar workarounds in several other drivers.

Giovanni

mikeprotts
Posts: 150
Joined: Wed Jan 09, 2019 12:37 pm
Has thanked: 19 times
Been thanked: 22 times

Re: [DEV] STM32H7xx support (new)

Postby mikeprotts » Wed Oct 14, 2020 4:42 pm

That makes sense - I'll get onto that, probably later next week though. Is there a preference to do this in the header or source file? If I keep it as a separate patch, it will make it easier to revert if no longer needed when the ST headers are corrected.

The other patches stand I think.

Cheers
Mike

User avatar
Giovanni
Site Admin
Posts: 13063
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 757 times
Been thanked: 636 times
Contact:

Re: [DEV] STM32H7xx support (new)

Postby Giovanni » Thu Oct 15, 2020 9:38 am

Hi,

Patches added, I also implemented the headers workaround in hal_mac_lld.c, to be tested.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 3 guests