Other Parts Discussed in Thread: CC1352P, CC1310, ENERGYTRACE
Hi,
I have been trying to port a CC1310/15.4/Sensor based application to CC1352P. Porting of the basic network function seems to be straightforward because the code between SDK 4.2 and 7.1 are more or less the same. But the ported application draws a lot more current on CC1352P1-launchpad than CC1310-launchpad. With all the configurations on TX power, polling interval and others remain the same, CC1310-launchpad draws only 90uA on average, while CC1352P1-launchpad draws 1.4mA.
The following is a graph of energy trace from CCS. There seems to be a floor at 1mA. while the 1 giant spike indicates a polling for data request to collector.
My suspicions are: 1) Something is preventing system from going into sleep mode; 2) Some unused pins on launchpad are drawing current silently. DIO-5 and DIO-22 are pulled up to VCC via a 3.3K resistor. There is also a flash chip on launchpad that is not used. I am not sure the function in Board_init will stop the flash chip from drawing current.
Board_shutDownExtFlash();
The reason I suspect some GPIO is drawing current is, if I set DIO22 as output and toggle between high/low at 1Hz, I can see something like the following in energytrace.
So my question is, what is the proper way to deal with those GPIO pins with pullup resistors etc.?
Thanks in advance.
ZL