In my S32K144's project ,I atteched FreeMASTER driver v2.0. I readed the user guide,and followed the instruction.
I created the project with Processer Expert, use can0 pal for communication.
modify the "freemaster_cfg.h":
#define FMSTR_POLL_DRIVEN 1 /* No interrupt needed, polling only */
#define FMSTR_USE_FLEXCAN 1 /* To select FlexCAN communication interface */
#define FMSTR_CAN_CMDID 0x7aa /* incoming (command) CAN message ID */
#define FMSTR_CAN_RESPID 0x7ab /* response CAN message ID, may be the same as command ID */
In "main.c",call the init function and then poll in the for loop.
CAN_Init(&can_pal1_instance, &can_pal1_Config0);
FMSTR_Init();
for(;;)
{
FMSTR_Poll();
}
I connect the PC host,the MCU can only send one CAN message every one reset.
I have upload the project.Could anyone help me?
解決済! 解決策の投稿を見る。
Hi zhangbo@greatpowertech.com,
I noticed that in the latest SDK version (3.0.0) CAN Initialization by default enables Transmission abort mechanism (53.5.7.1 Reference Manual), and it seems it is not handled by FreeMASTER Driver that leads to all tx operations to fail, but the first one. A quick fix would be to disable it after CAN_Init call. Here's a short snippet:
Regards,
Iulian
Hi zhangbo@greatpowertech.com,
I noticed that in the latest SDK version (3.0.0) CAN Initialization by default enables Transmission abort mechanism (53.5.7.1 Reference Manual), and it seems it is not handled by FreeMASTER Driver that leads to all tx operations to fail, but the first one. A quick fix would be to disable it after CAN_Init call. Here's a short snippet:
Regards,
Iulian
Thanks,Iulian.
It works.
Dear flony zhang,
I confirm I'm facing the same behavior when using the project that you have sent. We are looking at the issue now and will reply as soon as we have a solution.
Thanks,
Michal
Thanks,Michal.