This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!我查了一下,不知道什么原因,在HALCoGen中CAN模块没有CAN Port选项卡,而在其它模块如SPI/SCI中是有这个选项的,在这个选项卡中可以设置引脚是作为功能引脚使用还是作为GPIO来使用。由于没有这个选项,因此可能需要您在HALCoGen生成的代码中人工的去修改一下寄存器的值,从技术手册中可以找到相关的寄存器为CAN TX IO Control Register (DCAN TIOC)以及CAN RX IO Control Register (DCAN RIOC);对于引脚的具体操作也是在这个寄存器中的。
谢谢!