ccu4/0/cc4/0 does not generate multiplexer.c code for SRS register

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
When using two PWMSP001 apps, one using ccu4/0/cc4/0 and the other using ccu4/1/cc4/0 I have found that the app using ccu4/1/cc4/0 generates the correct code for the SRS register in multiplexer.c, but ccu4/0/cc4/0 does not.
0 Likes
1 Reply
Not applicable
Hi Doug,

Is the project a newly built? Are you using 2x NVIC002[1.0.26] for interrupt signal connections?
Can you try to:
1) remove the existing NVIC Apps --> generate the code (optional)
2) add 2x NVIC002 Apps --> add signal connections --> generate the code
You should be able to get following code in multiplexer.c (just an example):
// Configuring CCU40_CC40SRS = Service Request Selector

WR_REG(CCU40_CC40->SRS, CCU4_CC4_SRS_CMSR_Msk, CCU4_CC4_SRS_CMSR_Pos, CCU_SR2);

// Configuring CCU41_CC40SRS = Service Request Selector

WR_REG(CCU41_CC40->SRS, CCU4_CC4_SRS_POSR_Msk, CCU4_CC4_SRS_POSR_Pos, CCU_SR1);


Best regards,
Sophia
0 Likes