Thank you @bkueng and @Nicolas, I was able to successfully use logger in by modifying px4fmu-v2_default.
For others trying to make the switch from sdlog2 to logger AND want to log on power up (i.e. regardless of arming status) these are the steps that worked for me:
-
You need to recompile the firmware, because as noted by @bkueng, the default compiling options exclude
logger. Hence, be able to successfully build the code -
Modify
cmake/configs/nuttx_px4fmu-v2_default.cmake
- under the “Logging” heading, make sure
modules/loggeris uncommented - comment out other modules you don’t plan on using to avoid flash space errors. For example, I commented out
drivers/px4flow,drivers/camera_trigger,modules/local_position_estimator,modules/ekf2, andmodules/sdlog2
- Add
etc/config.txtto the microsd card with the following content:
param set SYS_LOGGER 1
param set SDLOG_MODE 1
Now logger is run on power up and generates log/sess<#>/log001.ulg files.