I am looking to use Serial log output to verify which part of the code are run by the tracker firmware.
I am able to see Log.info()
calls that I make in main.cpp
However, it seems like my calls the Log.info()
in the library files don’t get recognized when I am reading the Serial Monitor of the Tracker One.
Have other folks been able to trigger custom log messages from places other than main.cpp in the Tracker Edge firmware?
Example:
Here is an addition I made to the Tracker Edge firmware in tracker.cpp
int Tracker::initCan()
{
// CAN related GPIO
pinMode(MCP_CAN_STBY_PIN, OUTPUT);
digitalWrite(MCP_CAN_STBY_PIN, LOW);
pinMode(MCP_CAN_PWR_EN_PIN, OUTPUT);
// Do not power the CAN interface on yet
pinMode(MCP_CAN_RESETN_PIN, OUTPUT);
digitalWrite(MCP_CAN_RESETN_PIN, HIGH);
pinMode(MCP_CAN_INT_PIN, INPUT_PULLUP);
pinMode(MCP_CAN_CS_PIN, OUTPUT);
digitalWrite(MCP_CAN_CS_PIN, HIGH);
Log.info(" **CAN Chip Power Cycles** "); // <- I want to see this, but it doesn't show up on the Serial Monitor