Hello everyone,
I am currently working on a project with the RA2L1 kit. During testing, I encountered an issue when calling the following function:
R_IOPORT_PinWrite(&g_ioport_ctrl, MOT4A, BSP_IO_LEVEL_HIGH);
This operation triggers the following error:
BSP_CFG_HANDLE_UNRECOVERABLE_ERROR(0);
This error completely blocks the system. Has anyone encountered this issue with the RA2L1 or have any ideas on how to resolve this block?
Thank you very much for your help!
Best regards,
Hi tec,
Thanks for reaching out Renesas Community
Which Pin do you defined as MOT4A? Have you configurated it in the FSP pin tab? I will try to replicate on my board.
BR,
NP_Renesas
Thank you for your response. Here is some additional information:
R_IOPORT_PinWrite(&g_ioport_ctrl, MOT4A,BSP_IO_LEVEL_HIGH);
I try to replicate this on my board, but it works fine. Do you call this api before R_IOPORT_OPEN?
I added this API, but the issue still persists. Is there any way to disable the BSP_CFG_HANDLE_UNRECOVERABLE_ERROR(x) macro?
Can you please share your project to me?
Or you can create a new project and only add R_IOPORT_PinWrite(&g_ioport_ctrl, MOT4A, BSP_IO_LEVEL_HIGH); in your codes to see if it is a hardware fault.