I have been tasked with writing a function that causes the K64 to consume as much current as possible (not including GPIO) so I made a task that does a lot of floating point math on numbers generated by the RNGA and uses the MMCAU to encrypt the result.
I figured using more on-chip components (FPU, MMCAU, CRC, RNGA) would cause the current consumption and package temperature to increase but when I run the task current drops by about 1 mA.
Does anyone have a function that they use for this purpose?