May 27, 2021
02:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 27, 2021
02:54 AM
Hi there,
I am trying to create an application that uses CAN on the XMC1400 Boot Kit. I downloaded the example XMC1400_BlinkyMCAN_withApps and it works fine.
Then I tried to create my app, but it did not work, even though I configured the CAN_NODE APP exactly like the example.
APP version on my code is 4.1.24 and on the example is 4.1.10. DAVE version is 4.4.2.
After analyzing the generated DAVE code, the way to fix it was to copy the implementation of the function CAN_NODE_Init(const CAN_NODE_t* handle) from file can_node.c and
on file global_can.c changing the function XMC_CAN_InitEx to XMC_CAN_Init.
With those changes on the generated files, the project works as expected.
Is there a way to solve it without the need of modifiying the auto generated files?
Thanks for your response,
Alex
I am trying to create an application that uses CAN on the XMC1400 Boot Kit. I downloaded the example XMC1400_BlinkyMCAN_withApps and it works fine.
Then I tried to create my app, but it did not work, even though I configured the CAN_NODE APP exactly like the example.
APP version on my code is 4.1.24 and on the example is 4.1.10. DAVE version is 4.4.2.
After analyzing the generated DAVE code, the way to fix it was to copy the implementation of the function CAN_NODE_Init(const CAN_NODE_t* handle) from file can_node.c and
on file global_can.c changing the function XMC_CAN_InitEx to XMC_CAN_Init.
With those changes on the generated files, the project works as expected.
Is there a way to solve it without the need of modifiying the auto generated files?
Thanks for your response,
Alex
3 Replies
Jul 04, 2021
10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2021
10:59 PM
Hi,
Have you checked the APPs update option available in Dave ? Right click on you project from the project explorer -> Dave Project Upgrade -> APPs upgrade.
This way you can upgrade the app and don't have to modify the generated code.
Now if the apps have different implementations across versions, you may have to modify your code accordingly.
Best Regards,
Vasanth
Have you checked the APPs update option available in Dave ? Right click on you project from the project explorer -> Dave Project Upgrade -> APPs upgrade.
This way you can upgrade the app and don't have to modify the generated code.
Now if the apps have different implementations across versions, you may have to modify your code accordingly.
Best Regards,
Vasanth
Jul 04, 2021
11:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2021
11:15 PM
Hi,
I do not have to upgrade, old version of the example XMC1400_BlinkyMCAN_withApps works. The problems is the new version of CAN_NODE.
However, I tried to update, and I could not, because all apps are updated to the latest version.
So my question remains the same, is there a way to use the latest version of CAN_NODE without the need of modifiying the auto generated files?
Thanks for your response,
Alex
I do not have to upgrade, old version of the example XMC1400_BlinkyMCAN_withApps works. The problems is the new version of CAN_NODE.
However, I tried to update, and I could not, because all apps are updated to the latest version.
So my question remains the same, is there a way to use the latest version of CAN_NODE without the need of modifiying the auto generated files?
Thanks for your response,
Alex
Jul 18, 2021
11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 18, 2021
11:53 PM
Hi,
As per the current architecture it might not be possible. You modify the generated file based code and add as a different source and use it as a workaround, so that it wont get removed on regeneration.
Best Regards,
Vasanth
As per the current architecture it might not be possible. You modify the generated file based code and add as a different source and use it as a workaround, so that it wont get removed on regeneration.
Best Regards,
Vasanth