The S32DS peripheral configuration tool for the S32 platform fails to generate a configuration file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The S32DS peripheral configuration tool for the S32 platform fails to generate a configuration file

Jump to solution
3,301 Views
shunyizhang
Contributor IV

shunyizhang_0-1702629283430.pngshunyizhang_1-1702629326602.png

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

shunyizhang_2-1702629713532.png

 

0 Kudos
Reply
1 Solution
3,204 Views
Riyasma07
Contributor III

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.

Riyasma07_0-1702958641080.png

View solution in original post

0 Kudos
Reply
8 Replies
3,284 Views
VaneB
NXP TechSupport
NXP TechSupport

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

VaneB_0-1702666134593.png

 

B.R.

VaneB

0 Kudos
Reply
3,276 Views
shunyizhang
Contributor IV

I have clicked the Update Code button, and I will only raise this question if I find something wrong.

0 Kudos
Reply
3,220 Views
VaneB
NXP TechSupport
NXP TechSupport

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:

VaneB_0-1702935554703.png

Could you please validate if this tab in your S32DS shows the same changes? Could you share an image? 

0 Kudos
Reply
3,205 Views
Riyasma07
Contributor III

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.

Riyasma07_0-1702958641080.png

0 Kudos
Reply
3,124 Views
VaneB
NXP TechSupport
NXP TechSupport

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. 

VaneB_0-1703102062362.png

0 Kudos
Reply
3,112 Views
Riyasma07
Contributor III

Hi @VaneB 

image (2).png

Looks like the difference is -1 for all values.

0 Kudos
Reply
3,089 Views
VaneB
NXP TechSupport
NXP TechSupport

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).

3,160 Views
Riyasma07
Contributor III

Hi @VaneB, Any updates??

0 Kudos
Reply