AnsweredAssumed Answered

Not Allocated function parameter

Question asked by Tim Riley on Nov 15, 2016
Latest reply on Nov 17, 2016 by Tim Riley

I am using CodeWarrior 5.1 Special Edition and am having trouble passing a value to a function.


The call from main()


(Value of ATD1DR2L = 0xA0) as read from an external pot.


The function is as follows:

static void setLEDDutyCycle(uint8_t dc){

   PWMCTY5 = dc;

   PWMDTY4 = dc;



When stepping through the function in the Simulator/Debugger the value of the local variable dc in the DATA1 window shows as

dc   <not allocated>  unsigned char


Other functions that I have are working, but confused about this one.


Any ideas where I am off track?