After the peripheral configuration tool of the S32DS for S32 platform generates the configuration file, the modified content in the generated file is inconsistent with the required content. why?
S32DS:V3.5
Solved! Go to Solution.
Hi @VaneB,
I think you didn't understand the issue. We did update the code and pressed ok button. Now whatever changes I've mentioned in the configuration tool should appear in the code after updating the code. But it is not getting updated. All other parameters are getting updated except this FlexCAN bitrate configuration parameters. Whatever the changes I've made is shown in the window "Update Files", but even after confirming also the code is not getting updated and old value is still there.
Hi @shunyizhang
Making the modifications in Config Tools and clicking the Update Code button, does the Update Files tab show the respective changes? Check the following reference image.
B.R.
VaneB
I have clicked the Update Code button, and I will only raise this question if I find something wrong.
Hi @shunyizhang
Sorry for not making myself clear.
I was trying to say that when you make any modifications in Config Tools, a window called "Update Files" shows up. This shows the changes that will be made to the code.
I made the same changes you shared in the FlexCAN_Ip_Example, and the following are the changes that you need to observe in your code:
Could you please validate if this tab in your S32DS shows the same changes? Could you share an image?
Hi @VaneB,
I think you didn't understand the issue. We did update the code and pressed ok button. Now whatever changes I've mentioned in the configuration tool should appear in the code after updating the code. But it is not getting updated. All other parameters are getting updated except this FlexCAN bitrate configuration parameters. Whatever the changes I've made is shown in the window "Update Files", but even after confirming also the code is not getting updated and old value is still there.
Hi @Riyasma07
Could you help me verify if you see any change in the Code Preview window as shown in the following image? This will let me know if the correct parameters are changing.
Hi @Riyasma07
The value is correct.
If you refer to section 74.6.2.3 (Control 1 (CTRL1)) of the S32K3xx Reference Manual, Rev. 7, you will find that most of the equations have a plus 1, for example, Propagation segment time = (PROPSEG + 1) × Time Quanta. The operations are performed by the controller, so when you put a value (PROPSEG + 1) in the parameter Propagation segment (or any other that has a plus 1) in ConfigTools, the code shows the value minus 1 (PROPSEG).
Hi @VaneB, Any updates??