Hello,
CC2533F32 and IAR embedded Worbench
The µC don't switch to PM3 mode. The code is:
SLEEPCMD = (SLEEPCMD & 0xFC) | 0x03; asm("NOP"); asm("NOP"); asm("NOP"); if (SLEEPCMD & 0x03) { //Den Sleepmode auslösen PCON |= 0x01; asm("NOP"); }
I use Port0 & 1 and also Timer 1 Interrupts. Timer 1 is disabled before going to PM3. The Port 0 and 1 interrupts are used to wake up the µC.
The current measurment is like described here. Only the µC, three Buttons with the internal Pull-ups and the RF Stage, no other peripherals. The board is powerd by a CR2032 directly.
The CCdebugger is disconnected, when I messure.
The µC needs 300µA in PM3 mode (3mA in normal operation). I meassure also the 1.8V DC at the DCOUPL Pin and if the µC is in sleep mode there are no 1.8VDC and the Crystal is also switched off. So I think the µC is in PM3 or in PM2.
There are no floating pins.
Are there some work in the IAR settings to do? I read somtimes there is something special with debugger (Simulates PM2 and PM3). Is there are setting like: no debug features or final build or something like that?
When I change the source code, so that the µC have to enter PM2, the current measurement is the same...
In the datasheet I read something about the code alignment of the sleep function(swru191e page 63). But it doesn't work in my IAR (Ver. 8.20.2). Have anybody a example that works? I'm new with IAR and assembler.
Have anybody a hint for me? I don't know what to do further.