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?
Solved! Go to Solution.
Since I'm running the BSP_DEFAULT_IO_CHANNEL in polled mode the processor is always busy polling the UART so I was actually giving the processor a break by having it use dedicated hardware to perform math.
Since I'm running the BSP_DEFAULT_IO_CHANNEL in polled mode the processor is always busy polling the UART so I was actually giving the processor a break by having it use dedicated hardware to perform math.