Skip to content
binho.io (opens in a new tab)Contact Us

PyCosmicSDK Release Notes

Release notes for PyCosmicSDK (pycosmicsdk on PyPI), the Python package for the Binho Supernova, Binho Pulsar and Binho Atira, newest first. Each release embeds the CosmicSDK of the same major and minor version: see CosmicSDK Release Notes. For firmware changes, see Host Adapter Firmware Release Notes. The Minimum Recommended Versions column lists the oldest version paired with each release; ”+” means newer versions also work, and the latest of each is recommended.

VersionDateSummaryMinimum Recommended Versions
1.11.02026-11-27Atira debug through pyOCD or probe-rs, renamed debug callsFirmware4.7.1+ Atira firmware1.2.0+
1.10.12026-11-18I3C vendor CCC writes up to 1024 bytes, Pending Read notificationFirmware4.7.1+
1.10.02026-11-10SMBus on the I3C port, I3C target IBI and Hot-Join requests, short I3C reads returned by default, Linux ARM64 and Intel macOS wheelsFirmware4.7.0+
1.9.12026-10-30Documentation onlyAtira firmware1.1.0+
1.9.02026-10-30Atira target flash, Atira firmware 1.1 power controlsAtira firmware1.1.0+
1.7.12026-10-23Reliability fixes, faster bulk readsFirmware4.6.2+
1.7.02026-10-19Atira supportFirmware4.6.0+ Atira firmware1.0+
1.6.02026-09-29I2C duty cycle, I2C clock stretching and SMBus reset on the I3C portFirmware4.6.0+
1.5.12026-09-25First public releaseFirmware4.5.1+

Released 2026-11-27.

Firmware4.7.1+ Atira firmware1.2.0+ CosmicSDK1.11.0

Later Atira firmware also works.

  • Debug backends on DebugProbe.debug() and AsyncDebugProbe.debug(). The session runs on the SDK’s built-in backend, pyOCD or probe-rs, chosen with set_config(DebugConfig). backend_info() reports the backend and its capabilities, and last_backend_error() the tool’s own reason for a failure.
  • New calls: target_info(), target_state(), reset_target(DebugResetType), read_register_bytes() / write_register_bytes(), add_breakpoint(address, DebugBreakpointType), remove_breakpoint() and remove_all_breakpoints(). Addresses are 64-bit.
  • pyOCD 0.46 or later and probe-rs 0.32 or later are required. attach() raises DEBUGPROBE_BACKEND_VERSION for an older tool.
1.101.11Note
DebugTarget.state()target_state()
reset(DebugResetKind)reset_target(DebugResetType)SYSTEM and CORE have new values. The default is the backend’s own reset.
set_breakpoint(address)add_breakpoint(address)Returns a DebugBreakpointEntry; use its .id.
clear_breakpoint(id)remove_breakpoint(id)
breakpoints()breakpoints()Lists DebugBreakpointEntry.
read_register(id), write_register(id, value)Same namesThe id comes from target_info(). On pyOCD and probe-rs it differs from the DCRSR number beyond r0 to r15.

DebugResetKind and DebugBreakpoint are removed.

Released 2026-11-18.

Firmware4.7.1+ CosmicSDK1.10.1

Firmware 4.7.0 also works, except for the vendor CCC write.

  • I3cCcc.vendor_write(ccc, address, data, *, def_byte, flags) and its async twin send a vendor CCC (0x61 to 0x7F, 0xE0 to 0xFE) WRITE of up to 1024 bytes. On firmware older than 4.7.1 it raises CapabilityError and nothing is sent.
  • I3cPendingReadNotification. With I3cTargetConfiguration(pending_read_capability=True) on a target, firmware 4.7.0 and later read it on a Pending Read IBI and report address, payload, result and short. A read the target ended early is short=True, not an error. Off by default. Example: examples/blocking_api/i3c/pending_read.py.

Released 2026-11-10.

Firmware4.7.0+ CosmicSDK1.10.0

Carries everything in 1.9.0 and 1.9.1.

  • SMBus on the I3C port. I3cController.smbus_block_write, smbus_block_read and smbus_quick_command, with async twins. PEC is checked; a mismatch raises SmbusPecError. pec, max_count and read have no default, and every call ends with STOP. A quick command needs firmware 4.7.0.
  • I3C target IBI and Hot-Join requests (Supernova). I3cTarget.request_ibi(mdb, payload) (MDB plus up to 7 bytes) and request_hot_join(). The controller’s answer arrives as an I3cTargetBusEvent of kind IBI or HOT_JOIN.
  • SMBus writes as an I3C target, for MCTP over SMBus. While I3cTarget.enable_smbus_writes() is on, legacy_i2c_write uses clock stretching and the adapter stays an armed target, so the reply arrives as a target bus event with no role switch.
  • I3cTargetMemoryLayout.MEMORY_RAW_1024_BYTES: a target layout that takes no register address, so an SMBus Block Write arrives whole. Needs firmware 4.7.0; on older firmware initialize() raises.
  • Blocking raw CCC: I3cCcc.transfer(ccc, address, direction, ...), same as the async version. A WRITE carries up to 255 bytes on firmware 4.7.0.
  • Device.set_timeout(ms) changes the reply timeout of an open handle, for example for a 32 KB bulk read at 100 kHz.
  • engine_busy_timeout=<seconds> on the I3C private transfers re-sends a call while the firmware answers FW_I3C_ENGINE_BUSY. Default 0 sends once.
  • I3cIbiNotification.result and .accepted tell a NACKed IBI from an accepted one. I3cTargetBusEvent.result says how each target event ended.
  • New wheels for Linux ARM64 and macOS Intel (10.15 or later).
  • New examples: NVMe-MI over MCTP over SMBus, target IBI and Hot-Join, Atira flash from a CMSIS .pack. The examples ship as a zip on the documentation site.
  • allow_short=True is the default on I3C reads. A read the target ended early returns its bytes instead of raising I3cError; compare len() with the requested length. Pass allow_short=False for the 1.9.x behavior.
  • A reply that lost bytes in transit raises SDK_ERROR_WRONG_RESPONSE instead of returning a shorter result, on sdr_read, hdr_ddr_read, legacy_i2c_read, SpiController.transfer and the GETPID, GETCAPS, GETMXDS, GETXTIME and GETSTATUS CCCs. Retry the call.
  • Zero-length I2C and I3C transfers are address-only probes (SMBus quick command). On the I3C port they need firmware 4.7.0; on older firmware they raise CapabilityError and nothing is sent.
  • New status codes: FW_I3C_TARGET_TRANSFER_LENGTH_CLAMPED (0x0623), FW_I3C_I2C_SCL_RISE_TOO_SLOW (0x0622, fit an external 1–4.7 kΩ SCL pull-up) and SDK_ERROR_PEC_MISMATCH (0xE000).
  • list_devices() and Device.open(model=...) raise OSError when USB enumeration cannot run (for example when the process is out of file descriptors), instead of reporting no adapter attached.
  • I2cController.scan() into a stuck bus reports FW_I2C_TIMEOUT_CONTINUE_TRANSFER instead of timing out, on blocking and async.
  • Gpio calls no longer raise for a pin configured by an earlier session.
  • reboot() says the reset may have happened when the USB write fails, instead of saying the request never left the host.
  • StatusCode compares equal to an int.
  • pulsarsdk shim: a Pulsar unplugged mid-command reports UNEXPECTED_DISCONNECTION, and close() answers OPEN_CONNECTION_REQUIRED.
  • list_debug_probes() and DebugProbe.open() skip an Atira in its bootloader.
  • The I3C examples run on a bus the target already powers, and the I2C examples state which bytes they overwrite at address 0x50.

Firmware 4.7.0 limitations apply; see Host Adapter Firmware Release Notes. Two affect SDK calls:

  • A 1024-byte I3C read can duplicate one byte and still return SUCCESS (about 0.1–0.5 % at 100 kHz). At 5 MHz use the 50 % duty cycle, or check the data with PEC or CRC.
  • A write ended without STOP, then a read-from to a Supernova I3C target, is reliable up to 6.25 MHz push-pull.

Released 2026-10-30.

Atira firmware1.1.0+

Documentation only: the PyPI page covers the Atira (DebugProbe, a power and target flash example, and the udev rule for 1fc9:8347). Same code as 1.9.0.

Released 2026-10-30.

Atira firmware1.1.0+ CosmicSDK1.9.0

  • Atira target flash. DebugProbe.target_flash() and AsyncDebugProbe.target_flash() program the target’s own flash through a CMSIS flash algorithm (.FLM): load_algorithm, info, erase, erase_chip, program, verify, write and last_report. The progress callback cancels by returning False.
  • Flash from a CMSIS-Pack. TargetFlash.list_pack_devices(pack) lists devices with variants, flash range and whether each can be flashed; load_pack_device(pack, device, confirmed_connect_steps=...) loads one.
  • A verify mismatch in write(verify=True) raises TargetFlashVerifyError with first_mismatch. TargetFlashReport.erased_addr and erased_bytes give the range actually erased.
  • Atira firmware 1.1 power controls on DebugProbe.power(): signal voltage level and enable, target power enable, signal_voltage_check() and signal_voltage_use_external(). set_output / output stay for firmware 1.0.x. New code StatusCode.FW_PIN1_OVERVOLTAGE (0x1F03).

Released 2026-10-23.

Firmware4.6.2+ CosmicSDK1.7.1

  • Faster bulk reads on firmware 4.6.2. 3-byte SPI read at 8 MHz, median: Pulsar 1.90 ms to 0.75 ms, Supernova 5.1 ms to 2.0 ms.
  • Examples that run on either model take PYCOSMICSDK_EXAMPLES_SERIAL=<serial> to choose the adapter.
  • On Linux, open() finds the adapter when another library that bundles its own hidapi is loaded first.
  • SPI and I2C bulk transfers at a slow clock no longer time out (a 32 KB SPI read at 100 kHz takes 2.62 s).
  • Truncated UART RX and I3C IBI notifications no longer read past the buffer, and replacing the notification callback while notifications arrive no longer races.
  • Unplugging an Atira during traffic no longer aborts the process.
  • Device.set_usb_config() leaves the handle open on success. The new configuration applies on the next reset; reboot() applies it now.

Released 2026-10-19.

Firmware4.6.0+ Atira firmware1.0+ CosmicSDK1.7.0

Later Atira firmware also works.

  • Binho Atira support. DebugProbe, AsyncDebugProbe and list_debug_probes() cover device control, target power, SWD debug (attach, halt, step, registers, memory, breakpoints, debug_call_function), the SPI controller and SPI NOR flash (detect, read, erase, program, bulk program, verify, CRC).
  • DebugError is raised for the Atira debug codes (0x1Exx), with the code’s name.
  • New codes: StatusCode.FW_RESOURCE_BUSY, FW_SWD_HOST_SESSION_ACTIVE and FW_TEARDOWN_PENDING.
  • An Atira, a Supernova and a Pulsar can be open in one process.

Released 2026-09-29.

Firmware4.6.0+ CosmicSDK1.6.0

  • I2C SCL duty cycle. I2cController.set_duty_cycle(high_pct) sets the SCL high:low split (0, or 20 to 80 in steps of 10), which also makes the bus frequency exact. A ratio the firmware does not accept raises I2cDutyCycleRefusedError with the settings the bus keeps.
  • I2C clock stretching on the I3C port. I3cController.enable_i2c_clock_stretching() lets legacy_i2c_write / legacy_i2c_read wait for a target that stretches SCL (SMBus, MCTP). While it is on, other I3C calls raise I3cError naming the call that turns it off.
  • SMBus interface reset and SDA pull-up. I3cController.hold_scl_low(duration_us) holds SCL low for 1 µs to 1 s. set_sda_pull_up(I3cSdaPullUp.AUTO | OFF | ON) sets the 1 kΩ SDA pull-up used while clock stretching is on. SCL has no on-board pull-up.
  • All have async twins. Firmware 4.5.x raises FirmwareError for these calls.

Released 2026-09-25.

Firmware4.5.0+ Firmware4.5.1+ CosmicSDK1.5.1

First public release on PyPI; the version follows the embedded CosmicSDK.

  • Blocking Device and asyncio AsyncDevice for the Supernova and Pulsar: I2C, SPI, UART, GPIO, and I3C on the Supernova with all 38 CCCs, SDR, legacy I2C and HDR-DDR transfers.
  • I2C, SPI and I3C target mode. The adapter answers an external controller from a memory arena; I2C adds EEPROM and register maps, SPI adds a flash model.
  • Transfers up to 32 KB over the adapter’s USB bulk endpoints: I2C and SPI up to 32,768 bytes on the Supernova and 16,384 on the Pulsar, I3C SDR up to 32,767 bytes. Read the ceiling from max_transfer_bytes. A payload over the ceiling raises ValidationError; nothing is split.
  • list_devices() lists attached adapters without opening them, with an optional model= filter. Device.open() takes serial=, path= or model=.
  • Legacy compatibility shims under pycosmicsdk.legacy: supernovasdk, supernovacontroller and pulsarsdk, for code written against the older packages.
  • pycosmicsdk.testing fakes an adapter so scripts can be tested with no hardware.
  • Clear errors for the wrong firmware. open() raises UnsupportedFirmwareError for an adapter on firmware 3.x, and DeviceInBootloaderError for an adapter waiting in its bootloader. Every error carries a one-sentence description of its status code.
  • HDR-DDR transfers are limited to 1024 bytes.
  • Only one target protocol can be armed at a time. release() frees the role in session.
  • A Supernova Rev B cannot act as an SPI target, and its GPIO pin 3 cannot raise interrupts. Both raise CapabilityError.

PyCosmicSDK 1.5.1 is the first public release. For the full changelog, see the PyCosmicSDK documentation and the release history on PyPI.