After CAN_REMAP, the debugger and SWO no longer work.
Good Morning
I use STM32F1VCT with the CANOPEN_Stack of the company EMTAS. For the CAN I use PIN PB8-PB9.
If the program starts normally, the CAN bus works as desired.
However, if I want to debug, the debugger will abort as soon as the macro "__HAL_AFIO_REMAP_CAN1_2 ();" is performed.
Also the "STM32 ST-LINK Utility" can not connect and the output via SWO does not work.
When I remove the macro, the SWO and the debugger work normally.
How do I find the mistake?
Thanks for your help