Resolved! PORT D Read errors.
I have an STM32CubeIDE project using HAL for a STM32G071RBT6I have Port D bits 0 to 6 set up for GPIO Input, with pull-up enabled.In hardware these are connected to an 8-WAY dip switch, which when each switch is "on" connects the respective pin to GN...