Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

artiq_coremgmt: improve logging when flashing - #2837

Draft
SimonRenblad wants to merge 2 commits into
m-labs:masterfrom
SimonRenblad:appropriate_flash_output
Draft

artiq_coremgmt: improve logging when flashing#2837
SimonRenblad wants to merge 2 commits into
m-labs:masterfrom
SimonRenblad:appropriate_flash_output

Conversation

@SimonRenblad

Copy link
Copy Markdown
Contributor

Uses logging module in artiq_coremgmt, and adds additional logging when running artiq_coremgmt flash.

Example output of artiq_coremgmt -vv flash ...:

INFO:__main__:Retrieving binaries...
DEBUG:artiq.frontend.flash_tools:converting gateware bit file to bin
DEBUG:artiq.frontend.flash_tools:Design: top;COMPRESS=TRUE;UserID=FFFFFFFF;Version=2024.2
DEBUG:artiq.frontend.flash_tools:Part name: 7a100tfgg484
DEBUG:artiq.frontend.flash_tools:Date: 2025/08/07
DEBUG:artiq.frontend.flash_tools:Time: 15:21:14
DEBUG:artiq.frontend.flash_tools:Bitstream payload length: 0x2bc888
INFO:__main__:Flashing core device...
DEBUG:artiq.coredevice.comm_mgmt:sent 1 bytes
DEBUG:artiq.coredevice.comm_mgmt:sending message: type=<Request.Flash: 9>
DEBUG:artiq.coredevice.comm_mgmt:sent 1 bytes
DEBUG:artiq.coredevice.comm_mgmt:writing /tmp/nix-shell.EvDsLr/artiq_pdcn6b2g_top.bit to byte buffer
DEBUG:artiq.coredevice.comm_mgmt:writing artiq_kasli/minimal/software/bootloader/bootloader.bin to byte buffer
DEBUG:artiq.coredevice.comm_mgmt:writing artiq_kasli/minimal/software/runtime/runtime.fbi to byte buffer
DEBUG:artiq.coredevice.comm_mgmt:sending byte buffer to core device
DEBUG:artiq.coredevice.comm_mgmt:sent 4 bytes
DEBUG:artiq.coredevice.comm_mgmt:sent 4886580 bytes
DEBUG:artiq.coredevice.comm_mgmt:receiving message: type=<Reply.RebootImminent: 3>
INFO:__main__:Rebooting core device.

@SimonRenblad
SimonRenblad marked this pull request as draft August 12, 2025 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant