scorrpeio
Full Member level 5
Hello,
I am programming MSP430 mcu in CodeComposerStudio (CCS) 4.
The ultimate aim is that
-> I am sending the pointer to array as an argument to the function.
-> I want to calculate the no of elements in that array for which I used sizeof operator
However, the instruction of sizeof is omitted by compiler.
When I try to set breakpoint at this instruction
the IDE doesnt even allow me to set the breakpoint.
I have set the compiler optmisation at '0' i.e. lowest level, still the problem persists.
What can be the solution over this?
I am programming MSP430 mcu in CodeComposerStudio (CCS) 4.
The ultimate aim is that
-> I am sending the pointer to array as an argument to the function.
-> I want to calculate the no of elements in that array for which I used sizeof operator
However, the instruction of sizeof is omitted by compiler.
When I try to set breakpoint at this instruction
NoOfBytes = sizeof CharData;
the IDE doesnt even allow me to set the breakpoint.
I have set the compiler optmisation at '0' i.e. lowest level, still the problem persists.
What can be the solution over this?