The on-board log chip is being erased or repaired
What ArduPilot says:
- Chip erase complete
- Chip erase started
- Log recovery complete
- No last page of log N at top=0x… or bot=0x…
Boards that log to their own flash chip look after it themselves. “Chip erase started” and “Chip erase complete” frame a full erase, which can take a minute or more; nothing is logged in between. “Log recovery complete” means that at start-up a damaged log was found and everything from that point to the end of the chip was erased. “No last page of log N …” means the end of log N could not be found, so that log cannot be listed or downloaded properly.
What to do, most likely first
You asked the ground station to erase the logs.
FixWait for “Chip erase complete” before arming; arming earlier fails with “Logging not started”.
The firmware was changed and the new one stores logs in another layout: it erases the chip at its first start.
FixNothing to fix. Download the logs you need before changing firmware next time.
Power was cut while a log was being written, and the damaged part was cleaned up (“Log recovery complete”).
FixDisarm before unplugging the battery: disarming closes the log cleanly.
“No last page of log” keeps appearing: the chip's contents are inconsistent.
FixDownload the logs that can still be read, then erase all logs from the ground station.
Parameters to look at
| Parameter | What it is |
|---|---|
LOG_BACKEND_TYPE | AP_Logger Backend Storage type |
Where to do it:Setup & Tuning Guide
The code that sends it
Chip erase complete
libraries/AP_Logger/AP_Logger_Block.cpp AP_Logger_Block::periodic_10Hz() · Open in ArduPilot Copter-4.7.1
Chip erase started
libraries/AP_Logger/AP_Logger_Block.cpp AP_Logger_Block::EraseAll() · Open in ArduPilot Copter-4.7.1
Log recovery complete
libraries/AP_Logger/AP_Logger_Block.cpp AP_Logger_Block::periodic_10Hz() · Open in ArduPilot Copter-4.7.1
No last page of log N at top=0x… or bot=0x…
libraries/AP_Logger/AP_Logger_Block.cpp AP_Logger_Block::find_last_page_of_log() · Open in ArduPilot Copter-4.7.1