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.
| Version | Date | Summary | Minimum Recommended Versions |
|---|---|---|---|
| 1.11.0 | 2026-11-27 | Atira debug through pyOCD or probe-rs, renamed debug calls | Firmware4.7.1+ Atira firmware1.2.0+ |
| 1.10.1 | 2026-11-18 | I3C vendor CCC writes up to 1024 bytes, Pending Read notification | Firmware4.7.1+ |
| 1.10.0 | 2026-11-10 | SMBus on the I3C port, I3C target IBI and Hot-Join requests, short I3C reads returned by default, Linux ARM64 and Intel macOS wheels | Firmware4.7.0+ |
| 1.9.1 | 2026-10-30 | Documentation only | Atira firmware1.1.0+ |
| 1.9.0 | 2026-10-30 | Atira target flash, Atira firmware 1.1 power controls | Atira firmware1.1.0+ |
| 1.7.1 | 2026-10-23 | Reliability fixes, faster bulk reads | Firmware4.6.2+ |
| 1.7.0 | 2026-10-19 | Atira support | Firmware4.6.0+ Atira firmware1.0+ |
| 1.6.0 | 2026-09-29 | I2C duty cycle, I2C clock stretching and SMBus reset on the I3C port | Firmware4.6.0+ |
| 1.5.1 | 2026-09-25 | First public release | Firmware4.5.1+ |
1.11.0
Section titled “1.11.0”Released 2026-11-27.
Firmware4.7.1+ Atira firmware1.2.0+ CosmicSDK1.11.0
Later Atira firmware also works.
Highlights
Section titled “Highlights”- Debug backends on
DebugProbe.debug()andAsyncDebugProbe.debug(). The session runs on the SDK’s built-in backend, pyOCD or probe-rs, chosen withset_config(DebugConfig).backend_info()reports the backend and its capabilities, andlast_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()andremove_all_breakpoints(). Addresses are 64-bit. - pyOCD 0.46 or later and probe-rs 0.32 or later are required.
attach()raisesDEBUGPROBE_BACKEND_VERSIONfor an older tool.
Behavior Changes
Section titled “Behavior Changes”| 1.10 | 1.11 | Note |
|---|---|---|
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 names | The 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.
1.10.1
Section titled “1.10.1”Released 2026-11-18.
Firmware4.7.1+ CosmicSDK1.10.1
Firmware 4.7.0 also works, except for the vendor CCC write.
Highlights
Section titled “Highlights”I3cCcc.vendor_write(ccc, address, data, *, def_byte, flags)and its async twin send a vendor CCC (0x61to0x7F,0xE0to0xFE) WRITE of up to 1024 bytes. On firmware older than 4.7.1 it raisesCapabilityErrorand nothing is sent.I3cPendingReadNotification. WithI3cTargetConfiguration(pending_read_capability=True)on a target, firmware 4.7.0 and later read it on a Pending Read IBI and reportaddress,payload,resultandshort. A read the target ended early isshort=True, not an error. Off by default. Example:examples/blocking_api/i3c/pending_read.py.
1.10.0
Section titled “1.10.0”Released 2026-11-10.
Firmware4.7.0+ CosmicSDK1.10.0
Carries everything in 1.9.0 and 1.9.1.
Highlights
Section titled “Highlights”- SMBus on the I3C port.
I3cController.smbus_block_write,smbus_block_readandsmbus_quick_command, with async twins. PEC is checked; a mismatch raisesSmbusPecError.pec,max_countandreadhave 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) andrequest_hot_join(). The controller’s answer arrives as anI3cTargetBusEventof kindIBIorHOT_JOIN. - SMBus writes as an I3C target, for MCTP over SMBus. While
I3cTarget.enable_smbus_writes()is on,legacy_i2c_writeuses 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 firmwareinitialize()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 answersFW_I3C_ENGINE_BUSY. Default0sends once.I3cIbiNotification.resultand.acceptedtell a NACKed IBI from an accepted one.I3cTargetBusEvent.resultsays 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.
Behavior Changes
Section titled “Behavior Changes”allow_short=Trueis the default on I3C reads. A read the target ended early returns its bytes instead of raisingI3cError; comparelen()with the requested length. Passallow_short=Falsefor the 1.9.x behavior.- A reply that lost bytes in transit raises
SDK_ERROR_WRONG_RESPONSEinstead of returning a shorter result, onsdr_read,hdr_ddr_read,legacy_i2c_read,SpiController.transferand 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
CapabilityErrorand 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) andSDK_ERROR_PEC_MISMATCH(0xE000).
list_devices()andDevice.open(model=...)raiseOSErrorwhen 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 reportsFW_I2C_TIMEOUT_CONTINUE_TRANSFERinstead of timing out, on blocking and async.Gpiocalls 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.StatusCodecompares equal to an int.pulsarsdkshim: a Pulsar unplugged mid-command reportsUNEXPECTED_DISCONNECTION, andclose()answersOPEN_CONNECTION_REQUIRED.list_debug_probes()andDebugProbe.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.
Known Limitations
Section titled “Known Limitations”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
Highlights
Section titled “Highlights”- Atira target flash.
DebugProbe.target_flash()andAsyncDebugProbe.target_flash()program the target’s own flash through a CMSIS flash algorithm (.FLM):load_algorithm,info,erase,erase_chip,program,verify,writeandlast_report. The progress callback cancels by returningFalse. - 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)raisesTargetFlashVerifyErrorwithfirst_mismatch.TargetFlashReport.erased_addranderased_bytesgive the range actually erased. - Atira firmware 1.1 power controls on
DebugProbe.power(): signal voltage level and enable, target power enable,signal_voltage_check()andsignal_voltage_use_external().set_output/outputstay for firmware 1.0.x. New codeStatusCode.FW_PIN1_OVERVOLTAGE(0x1F03).
Released 2026-10-23.
Firmware4.6.2+ CosmicSDK1.7.1
Highlights
Section titled “Highlights”- 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.
Highlights
Section titled “Highlights”- Binho Atira support.
DebugProbe,AsyncDebugProbeandlist_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). DebugErroris raised for the Atira debug codes (0x1Exx), with the code’s name.- New codes:
StatusCode.FW_RESOURCE_BUSY,FW_SWD_HOST_SESSION_ACTIVEandFW_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
Highlights
Section titled “Highlights”- 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 raisesI2cDutyCycleRefusedErrorwith the settings the bus keeps. - I2C clock stretching on the I3C port.
I3cController.enable_i2c_clock_stretching()letslegacy_i2c_write/legacy_i2c_readwait for a target that stretches SCL (SMBus, MCTP). While it is on, other I3C calls raiseI3cErrornaming 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
FirmwareErrorfor 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.
Highlights
Section titled “Highlights”- Blocking
Deviceand asyncioAsyncDevicefor 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 raisesValidationError; nothing is split. list_devices()lists attached adapters without opening them, with an optionalmodel=filter.Device.open()takesserial=,path=ormodel=.- Legacy compatibility shims under
pycosmicsdk.legacy:supernovasdk,supernovacontrollerandpulsarsdk, for code written against the older packages. pycosmicsdk.testingfakes an adapter so scripts can be tested with no hardware.- Clear errors for the wrong firmware.
open()raisesUnsupportedFirmwareErrorfor an adapter on firmware 3.x, andDeviceInBootloaderErrorfor an adapter waiting in its bootloader. Every error carries a one-sentence description of its status code.
Known Limitations
Section titled “Known Limitations”- 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.
1.5.0 and Earlier
Section titled “1.5.0 and Earlier”PyCosmicSDK 1.5.1 is the first public release. For the full changelog, see the PyCosmicSDK documentation and the release history on PyPI.

