Why is my post code generation command not modifying the generated ARXML file?
조회 수: 6 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2025년 5월 8일
답변: MathWorks Support Team
2025년 5월 8일
I am using the AUTOSAR Blockset to generate C code and an ARXML file from my Simulink model.
I would like to modify the generated ARXML via a post code generation command as mentioned in the following documentation:
https://mathworks.com/help/releases/R2025a/ecoder/ug/customizing-post-code-generation-build-processing.html
If this workflow works well for the generated C code, it doesn't work for the ARXML files.
How can I modify my ARXML with a post code generation command?
채택된 답변
MathWorks Support Team
2025년 5월 8일
This behavior is related to when we are generating the ARXML file. The ARXML file is generated in the "before_make" phase, located after the post code generation command. To learn more about the different phases of code generation, you can refer to this documentation page:
This leads to overwriting the changes made to the ARXML when they are made via a post code generation command.
In order to modify the generated ARXML, you can use commands in a user hook located in the "exit" phase.
You can learn more about how to register these functions in this documentation:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!