I'd like to know which is the best way to measure current consumption on this demo board.
I need to verify standby current consumption.
Is there something similar?
Thanks for your reply, P21 is not configured as an interrupt, it is a simple GPIO, so I don't understand how an interrupt can wake up the microcontroller. The consumption is near 20 mA, in normal mode the consumption is 1.2 mA so I suppose there is something else that is running.
Anyway it is not a big deal since for my application I will use another part number and I will test there if there are unexpected behaviours.
That's somehow weird, Is it something specific about P21? can you try another GPIO?
Please keep us posted about that. Happy debugging.
It is specific to P21. Other GPIOs do not behave like that.
I was suspicious about the AVrefm alternate function of the P21, but it doesn't make sense when you're not using the ADC. Also, there's no errata about the problem.
Keep me posted after trying the new hardware.
Best wishes
I will test it on a different part number in my application (RL78 R7F102GBC2DNP). I will keep you updated if the behaviour is confirmed.