Skip to content

First byte of the data passed to libusb #29

@xparkm

Description

@xparkm

Hi, I am adding functions to be able to send other debug commands with cc_tool. I am trying to figure out what is the first byte of the data sent to the debugger.
For example, in cc_unit_driver.cpp, write_sfr() uint8_t header[] = { 0x40, 0x55, 0x00, }; the 0x55 0x00 are for DEBUG_INSTR NOP, but what is 0x40?
Similarly, in read_debug_config, uint8_t command[] = { 0x1F, DEBUG_COMMAND_RD_CONFIG };, what is 0x1F?
These bytes are not a part of debug protocol and I could not find anything special about the first byte in any of the libusb examples.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions