2024-03-28 12:04 AM - edited 2024-03-28 12:40 AM
Hi expert, our project is currently in the development stage. We are using the NUCLEO-H753ZI Development Kit for firmware development while awaiting the arrival of our custom board from the manufacturer. The dev-kit employs the STM32H753ZI (LQFP144), which has a slightly different pin configuration compared to the MCU on our custom board STM32H753ZI (LQFP100).
During our development process, we encountered an issue with using PC2_C to control SPI2 (SPI2_MISO), where it consistently pulls low. Despite extensive debugging efforts, including configuring the pin as GPIO and measuring with a logic analyzer, the issue persisted. Upon researching similar cases on the ST Community forum STM32H735V (LQFP100) PC2_C and PC3_C speed and FAQ: Default State of STM32H7 switches connecting Pxy_C and Pxy pads, we realized it might be related to a known issue in the STM32H7 family, specifically a bug in the silicon regarding the PC02 pin.
After reviewing the documentation and conducting tests on our end, we observed that while PC3_C can be controlled as expected, PC2_C cannot be controlled even when manipulating the external pad switches using the provided code:
HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_CLOSE); HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_CLOSE);
Thank you in advance for your assistance.
Solved! Go to Solution.
2024-04-03 01:15 AM
From my side I probed CN11/35 on the NUCLEO-H753ZI and there is no issue: PC2_C is toggling.
Could you please check the continuity between CN11 connector PC2_C pin and pin28 of the chip? The continuity test should be done on the connector and not on the PCB.
Are you sure the IO is not damaged by a previous usage?
2024-04-03 01:27 AM - edited 2024-04-03 01:27 AM
Hi @Andreas Bolsch , here are the values of these registers (0x580244F4, 0x58024554, and 0x58000404) after call:
HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_CLOSE);
2024-04-03 01:49 AM
Hm, these value are indeed correct. So the problem must be in hardware. Revision 'V'?
2024-04-03 01:58 AM
Hi @Andreas Bolsch, FYI, here is the chip information on NUCLEO-H753ZI Dev-Kit:
2024-04-03 02:02 AM
PS: there is no difference between different silicon revisions in term of PC2_C pin.
2024-04-03 02:24 AM
I'm running out of ideas ... Last resort: Check PC2_C with scope (not LA), AC-coupling, a few mV per Div., and toggle only PC2. If only the analog switch is damaged but everything else is ok, there might still be (albeit small) signal present.
2024-04-10 03:53 AM
Hello,
Did you find the issue/a solution?