Hello.
I want to rewrite the value of a variable via CAN, but I stumbled.
After investigating, I found that "XCP" is effective.
I tried using Vector's "XCP_Basic".
But I didn't understand.
Is there any other way to achieve that besides "XCP"?
Please tell me how to achieve that.
Board used:
TWR-KE18F
Best Regards.
Hi @T2
Thank you so much for using our community and thank you so much for all your patience. We are overloaded on the requests these days.
I would like to help you of course, but I would like to know what have you found about XCP? is that an application note?
Also I would like to know more context about what are you trying to do via CAN protocol? Because it is unclear to me.
Hope you can provide more information, please let me know if you have more questions.
Thank you.
Best Regards.
Pablo Avalos.
Hi, PabloAvalos.
Thank you for your reaction.
The background of the question is as follows.
I made a model with "Simulink".
I build the model and generated the C code.
I implemented the C code in my board project. (The board here is "TWR-KE18F".)
The input and output of the model is "CAN".
At this time, it may be necessary to change the parameters in the model.
However, changing the value of the parameter requires you to edit the model directly and build it again.
I want to improve the efficiency when changing parameters.
So I learned that parameter calibration can be done with "CAN" in "XCP".
(I / O is controlled by CAN, so I want to calibrate the parameters with CAN as well.)
I understand that in "XCP", the PC is the host and the board is the slave.
However, I don't know how to edit the code to implement the "XCP" slave functionality on the board.
Thank you.
Best Regards.
Hi @T2
I really appreciate your patience and thank you so much for sharing with me the background of your question.
Just before continuing, I would like to know if you are using Model-Based Design Toolbox (MBDT) ? If so, I would like to suggest you a couple of community links that might be helpful to solve your question:
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/XCP-Support/m-p/676740
Hope this information that I shared with you is helpful, please let me know your comments or if you have more questions.
Thank you so much.
Best Regards.
Pablo Avalos.
Hi, PabloAvalos.
Thank you for the information.
"MBDT" is not used.
I will try using the toolbox by referring to the link.
However, is TWR-KE18F compatible?
Also, there are many types of toolboxes and I don't know which one to download.
I would appreciate it if you could tell me.
Also, is there any method other than "MBDT"?
This is also helpful if you have information.
Thank you.
Best Regards.
Hi @T2
Thank you so much for your reply. I really appreciate your patience.
Unfortunately, the TWR-KE18F is not supported by the MBDT, just a few Kinetis V Series, some i.MX RT's, and other ones that are shown in the next table:
I suggest you to download the toolbox that you need for your application and that it is compatible with the board that you are going to use if needed. I suggest you to check this community that has a lot of different examples and situations that might be helpful to find what you are looking for: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt
Regarding your last question, after double-checking with my teammates, unfortunately, there is not another method found. You should try using MBDT and see if it solves your concern.
Please let me know if you have more questions about, I will be so happy to assist you.
Thank you in advance.
Sincerely,
Pablo Avalos.
Hi, PabloAvalos.
Thank you for your information.
It is a pity that it is not supported.
I will prepare a compatible board.
Thank you.
Best Regards.