Skip to content

Debugging 504 DAPLink errors #16

@microbit-carlos

Description

@microbit-carlos

Problem to investigate

Some environments are seeing DAPLink 504 time out errors more often than usual.

To debug this issue we've created a test Python script, that combined with a special DAPLink build, captures debug information while continously flashing a microbit.

Download the test programme

People having this issue will be directed to this GitHub issue to run this test programme and report back.

The test programme can be download it in this zip file: copyhex_v1.0.1.zip

Running the test programme

All the information required to run the test script is included in the README.md file inside the zip file.

In essence, there are two steps:

  1. Update the micro:bit firmware with a special build included in the daplink folder
  2. Connect the micro:bit to the PC and in a terminal run python3 test_cp_file.py

By default the script is configured to run 100 times, which will likely take around 1 hour to complete.
This might seem like a lot, but in some environments we only capture one or two errors per 100 runs.

If you can't run the test for that long, or there are enough failures captured in less runs (for some users this problem is a lot more frequent), then the number of runs can be changed by modifying the TOTAL_RUNS = 100 line at the top of the test_cp_file.py script. Or alternatively, the programme can be stopped at any point by pressing Ctrl+C in the terminal.

Test results

The test results are stored in the serial_output directory.
If you could zip and send us the serial_output folder we can then analyse the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions