NUCLEO-L552ZE-Q PD Issue
I've a problem to setup the NUCLEO-L552ZE-Q as PD Sink.
The debugger always disconnect at the following line (void HardFault_Handler(void)):
CHECK_CAD_FUNCTION_CALL(USBPD_CAD_Init(USBPD_PORT_0, (USBPD_CAD_Callbacks *)&CAD_cbs, (USBPD_SettingsTypeDef *)&DPM_Settings[USBPD_PORT_0], &DPM_Params[USBPD_PORT_0]));I've followed this instruction but also missing SysTick_IRQn but how i've seen it was removed with newer version.. so what to do with that? Is there a new instruction for PD setup?
I'm also missing option "Port 0: UCPD1" as stack configuration for USBPD I just see the following:
- PD3 Full stack
- PD3 Config 1
- PD3 Min Sink (that what I'm using right now)
- Type C With State Machine
- Type C Only
I also testet the exmaple from this repo "STM32CubeL5-master\Projects\NUCLEO-L552ZE-Q\Applications\USB-PD\USB-PD_Consumer_1port" - ends up in same error handler.
/**
* @brief This function handles Hard fault interrupt.
*/
void HardFault_Handler(void)
{
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
{
/* USER CODE BEGIN W1_HardFault_IRQn 0 */
/* USER CODE END W1_HardFault_IRQn 0 */
}
}Hopefully someone can help me - thanks.
EDIT: Can someone else confirm that issue or is it just by me? Just to exclude hardware fault.
