2nd instance of CCU8GLOBAL has not been mapped to a Resource

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

cross mob
Not applicable
Hi All,


I have just added another two PWMSP002 Apps to my project making 4 in total.

The original two PWMSP002 Apps use instance 1 of CCU8GLOBAL which has been mapped to ccu8/0/global.

The two new PWMSP002 Apps use instance 2 of CCU8GLOBAL but DAVE has not mapped this to anything, I was expecting ccu8/1/global to be mapped.


Understandably when I run the DAVE Solver I now get the error message "Resource mapping failed, please review the user defined constraints".


I am clearly doing something wrong.

Any advice would be greatly appreciated.

Best regards
Aaron
0 Likes
5 Replies
Not applicable
Hi Aaron,

I'm able to build a new project for XMC4500-F144x1024 with 4x PWMSP002[1.0.34] sharing 2x CCU8GLOBAL[1.0.18]:
1) double click PWMSP002 in "App Selection View" to add 1st instance PWMSP002/0
2) double click PWMSP002 in "App Selection View" --> select "app/ccu8global/0" in "App Sharability" window then "OK" to add 2nd instance PWMSP002/0
3) double click PWMSP002 in "App Selection View" --> select "New Instance" in "App Sharability" window then "OK" to add 3rd instance PWMSP002/2
4) double click PWMSP002 in "App Selection View" --> select "app/ccu8global/1" in "App Sharability" window then "OK" to add 4th instance PWMSP002/3
Below is the "Resource Mapping":

612.attach

PS: I believe you are aware that the PWMSP002 is constrained by the Max. resource requirement of Asymmetric PWM. The pins assignment are restricted to OUTy0, OUTy1, OUTy2 and OUTy3 are not available.

Best regards,
Sophia
0 Likes
Not applicable
Hi Sophia,

Thank you once again for your fast reply and suggestion. I will investigate further and provide an update soon.

Best regards
Aaron
0 Likes
Not applicable
Hi Sophia,

I think DAVE had a problem because I removed two PWMSP002 Apps that uset ccu8/1 from the project before trying to add two new PWMSP002 Apps. I selected "New Instance" in the "App Sharability" window (ccu8/1 was not listed as existing) but DAVE did not assign the unused ccu8/1 to them. It seems like this could be a bug.

To overcome this problem I had to Manually Assign instance 3 of PWMSP002 to ccu8/1. When I added instance 4 of PWMSP002 the ccu8/1 was listed as existing. The Solver then worked.

Thanks again for your help
Best regards
Aaron
0 Likes
Not applicable
Hi Sophia,

With reference to your #2 comment, I am using the XMC4500-F100x1024 and there still seems to be a problem with the PWMSP002 App when using CCU81.

For the PWMSP002 using the CCU80 there are four resource options...

ccu8/0/cc8/0
ccu8/0/cc8/1
ccu8/0/cc8/2
ccu8/0/cc8/3

For the PWMSP002 using the CCU81 there are only three resource options...

ccu8/1/cc8/0
ccu8/1/cc8/1
ccu8/1/cc8/2


I am trying to understand why 'ccu8/1/cc8/3' is not available. I am not using Asymmetric Compare mode.

If I use CCU80 my direct outputs are on pins P0.4 and P0.6 (CCU80 OUT10 and OUT30).

If I use CCU81 my direct outputs would be on pins P1.14 and P6.1 (CCU81 OUT10 and OUT30).

I realise that pin P6.1 (CCU81 OUT30) is not available on the 100 pin device so direct output cannot be configured to this pin.

However, since the CCU81 is identical to the CCU80 it should be possible to use the resources cc8/0, ccu8/1, ccu8/2 and ccu8/3 and then configure the PWMSP002 to generate 'Compare' and 'Period' match interrupts where I can control any I/O pin myself.

Your help would be greatly appreciated.

Best regards
Aaron
0 Likes
Not applicable
Hi Sophia,

I answered my own question in post #5 !!!

I un-ticked the 'Enable' boxes for both the 'Direct' and 'Inverted Output Pin Configuration' options and I can now use cc8/0, ccu8/1, ccu8/2 and ccu8/3 with the CCU81.

Sorry you had to waste time reading through my previous post but hopefully it will help someone else.

Best regards
Aaron
0 Likes