Closed endian-albin closed 4 years ago
Okay, I can take a closer look at this. I think we can use a script to run Cmake with different parameters depending on if debugging should be enabled or not.
I reopened the issue since only the first part has been done.
I've now completed the second part.
We currently use
printk()
orprintf()
for debug output. We should really switch to something likeLOG_DBG
andLOG_INF though
to have better control.From a power-management standpoint it also makes sense to build different sets of images (debug/production) where JLink logging, etc. are either enabled or disabled. This can be done from cmake I think. From the PineTime wiki: