Hi,
I want to use freemaster to communicate with the MPC5566 over CAN bus.
I have configued FMSTR_USE_FLEXCAN to 1. And chose right plugin on FreeMASTER. Is there any demo which can explain the basic how-to? I want to know how to add the related code to my project in MPC5566.
#MPC5566 #FreeMASTER #CAN
已解决! 转到解答。
Hello,
what ZLG device do you use? We are testing with USBCAN2, which is quite old. Maybe you have a newer device which needs some additional programming support (?).
Please show me a screenshot of your ZLG configuration window.
This is how it is supposed to look:
Please check:
Also, you can show us your CANtest software running with your CAN interface. This is how it looks on my side (USBCAN2 device):
Thanks,
Michal
Hi @EmilyZhou8,
FreeMASTER Communication Driver 2.0 contains example applications for some MPC devices.
Unfortunately, it does not include MPC5566 example but you can use another application for one of the MPC family devices as reference. The driver library is installed by default in "C:\NXP\FreeMASTER_Serial_Communication_Driver_V2.0" folder and the example applications can be found in "examples\SCI_driver_examples":
You can also check this post for a step by step FreeMASTER Driver integration into a new project.
Hope it helps,
Iulian
Thank you for your reply!
I did successfully connect FreeMASTER with MPC5566 through CAN, but on some computer FreeMASTER can open the CAN port and some don't. FreeMASTER warns me that could not open the communication port(Error 0x848c0003:Can not open CAN/LIN port or channel.)!) . Could you please tell me how to set up the FreeMASTER by communication through CAN?
FreeMASTER CAN plugin uses underlying (vendor specific) driver to communicate with target board. This errors is thrown when the external driver fails to establish the communication channel.
Are you using the same version of FreeMASTER ? same probe ?
If so, can you check the CAN interface configuration from the PC that connects to the board with the one on which it fails. I am referring to the top part of this screen:
I can think of the following potential issues:
Kind regards,
Iulian
Thanks for your kind reply!
Yes, the same version. The only difference is (driver not find) which is shown after CAN device on the same platform you post. But I don’t know how to make FreeMASTER detect the CAN Card’s driver. Because I am pretty sure the CAN Card driver is installed and the CAN Card can be used for CAN communication.
Thank you for your reply!
I use ZLG CAN Card, and located/loaded driver DLL is not shown on my platform. Instead, Path to ControlCAN.dll within the CANtest to software folder is shown. And I test my CAN Card which works for FlexCAN communication, but the Card cannot work for FreeMaster, because the driver for ZLG CAN Card is not found. And I don’t know how to deal with it.
Hello,
can you make sure to install the x86 version of the CANtest and use the path to 32-bit DLL in the FreeMASTER plug-in?
Does the 32-bit version of the CANtest software work in your case?
In our test setup, we use the USBCAN_AllInOne_x86_x64_2.0.0.1 package for 32bit version of Windows.
Regards,
Michal
Thanks for your patience!
The CAN card installation package I installed is USBCAN_AllInOne_x86_x64_2.0.0.1. I copied the ControlCAN in CANtest to Windows\Sys WOW64. Although the FreeMaster display changes from driver not find to device not find, what else do I need to do so that I CAN link to FreeMaster?
Hello,
what ZLG device do you use? We are testing with USBCAN2, which is quite old. Maybe you have a newer device which needs some additional programming support (?).
Please show me a screenshot of your ZLG configuration window.
This is how it is supposed to look:
Please check:
Also, you can show us your CANtest software running with your CAN interface. This is how it looks on my side (USBCAN2 device):
Thanks,
Michal