S32R41 MCAL Configuration Issue

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

S32R41 MCAL Configuration Issue

Jump to solution
936 Views
caohaitao
Contributor II

How can I change the CAN peripheral clock from FIRC to FXOSC in the MCAL for the S32R41 chip?

I tried configuring the reference point for FXOSC in the MCU and then selecting the CAN peripheral clock to FXOSC, but the generated code remains unchanged—the CAN clock is still FIRC. I'm unsure how to modify the CAN peripheral clock to FXOSC within the MCAL configuration.

caohaitao_0-1765420010927.pngcaohaitao_1-1765420032014.png

S32R41 

0 Kudos
Reply
1 Solution
883 Views
caohaitao
Contributor II

The RTD version I am using is “SW32R41_RTD_R21-11_1.0.0_HF01_D2308”. I have resolved this issue by modifying the CAN controller's clock source in McuCgmClockMux0. The McuClockReferencePoint associated with the CAN controller does not alter the CAN clock source.

 

caohaitao_0-1765510645257.png

 

View solution in original post

0 Kudos
Reply
2 Replies
898 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you share which exact driver versions you are using?

Best regards,

Peter

0 Kudos
Reply
884 Views
caohaitao
Contributor II

The RTD version I am using is “SW32R41_RTD_R21-11_1.0.0_HF01_D2308”. I have resolved this issue by modifying the CAN controller's clock source in McuCgmClockMux0. The McuClockReferencePoint associated with the CAN controller does not alter the CAN clock source.

 

caohaitao_0-1765510645257.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2259580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32R41%20MCAL%20Configuration%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2259580%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20can%20I%20change%20the%20CAN%20peripheral%20clock%20from%20FIRC%20to%20FXOSC%20in%20the%20MCAL%20for%20the%20S32R41%20chip%3F%3C%2FP%3E%3CP%3EI%20tried%20configuring%20the%20reference%20point%20for%20FXOSC%20in%20the%20MCU%20and%20then%20selecting%20the%20CAN%20peripheral%20clock%20to%20FXOSC%2C%20but%20the%20generated%20code%20remains%20unchanged%E2%80%94the%20CAN%20clock%20is%20still%20FIRC.%20I'm%20unsure%20how%20to%20modify%20the%20CAN%20peripheral%20clock%20to%20FXOSC%20within%20the%20MCAL%20configuration.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22caohaitao_0-1765420010927.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22caohaitao_0-1765420010927.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369418iE75643B5CD726F10%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22caohaitao_0-1765420010927.png%22%20alt%3D%22caohaitao_0-1765420010927.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22caohaitao_1-1765420032014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22caohaitao_1-1765420032014.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369419i878D62BAA87CA3DD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22caohaitao_1-1765420032014.png%22%20alt%3D%22caohaitao_1-1765420032014.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FS32R41%2Fpd-p%2FS32R41%22%20class%3D%22lia-product-mention%22%20data-product%3D%221694-1%22%20target%3D%22_blank%22%3ES32R41%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32R41%20MCAL%20Configuration%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260626%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20RTD%20version%20I%20am%20using%20is%20%E2%80%9CSW32R41_RTD_R21-11_1.0.0_HF01_D2308%E2%80%9D.%20I%20have%20resolved%20this%20issue%20by%20modifying%20the%20CAN%20controller's%20clock%20source%20in%20McuCgmClockMux0.%20The%20McuClockReferencePoint%20associated%20with%20the%20CAN%20controller%20does%20not%20alter%20the%20CAN%20clock%20source.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22caohaitao_0-1765510645257.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22caohaitao_0-1765510645257.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369625iC22DC030E8E37C7B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22caohaitao_0-1765510645257.png%22%20alt%3D%22caohaitao_0-1765510645257.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32R41%20MCAL%20Configuration%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20share%20which%20exact%20driver%20versions%20you%20are%20using%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E