Skip to content

Conversation

davefiddes
Copy link
Contributor

Allowing a LIN bus connected to UART4 on high-density parts like STM32F103VCT6 needs support for DMA channel 2 in the HwInfo struct.

Initialise the GPIO for RX which is necessary to get UART4 LIN connections to work and seems good practice for all pins.

Remove duplicate field referencing the USART base
register.

Allow split initialisation where the memory is setup but no IO happens until a new Init() method is called. This allows integration into applications where the memory location is shared between multiple hardware variants. The existing constructor remains so current users are unaffected.

Tests:

  • Build into Stm32-vcu and test with simulated VWCoolant LIN heater. Verify status values are returned and command sent to the device.
  • Build into stm32-sine with M3DU V1 board and simulated Tesla M3 oil pump. Verify command and status responses are delivered as expected.

Allowing a LIN bus connected to UART4 on high-density parts like STM32F103VCT6
needs support for DMA channel 2 in the HwInfo struct.

Initialise the GPIO for RX which is necessary to get UART4 LIN connections to
work and seems good practice for all pins.

Remove duplicate field referencing the USART base
register.

Allow split initialisation where the memory is setup but no IO happens until
a new Init() method is called. This allows integration into applications where
the memory location is shared between multiple hardware variants. The existing
constructor remains so current users are unaffected.

Tests:
 - Build into Stm32-vcu and test with simulated VWCoolant LIN heater. Verify
   status values are returned and command sent to the device.
 - Build into stm32-sine with M3DU V1 board and simulated Tesla M3 oil pump.
   Verify command and status responses are delivered as expected.
@jsphuebner jsphuebner merged commit 3fb989b into jsphuebner:master Sep 3, 2025
1 check passed
@jsphuebner
Copy link
Owner

Great, thanks!

@davefiddes davefiddes deleted the lin-improvements branch October 6, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants