Ventilator
Ventilator copied to clipboard
PCB pin assignments comments from Daniel Heater
trafficstars
I've been using STM32CubeMX to map the pins and check them against the PCB and HAL code. I'm finding a few things that look like conflicts: CubeMX won't let PB4 and PA11 both be mapped as UART. They both map to UART1. PB5 will only map to UART_CK, not UART_CTS There are several pins where the mapping in the code is different from the schematic. Should I assume that the schematic is correct and the code is not up to date with the latest schematic?
- PB4 was supposed to be used for UART5_RTS_DE, see page 109 or 95 of the STM32L496 datasheet. If it won't let you use UART5 for some reason, maybe there's a bug in CubeMX? (or there's some additional constraints I missed that the alternate function table doesn't mention) The Interface Control Document, if you don't have the link already, might make things easier too: https://docs.google.com/spreadsheets/d/1EPEkAWZGx5ASWL2mgTzymS2f11Ow9ptx9c8Sycb3_Go/edit#gid=0
- As a result of 1, PB5 has CTS on UART5 (rather than the USART1_CK).
- Yep the schematic is what we got manufactured! You're probably the first to start updating the code for the new board rev.