Skip to main content

SCuM programmer script.

Project description

SCuM Programmer

Use an nRF52840-DK and a Python script to program SCuM!

Prerequisites

Setup the nRF52840-DK

  • Download scum-programmer.hex
  • Plug in your nRF52840-DK into your computer, drive "JLINK" appears
  • Drag-and-drop scum-programmer.hex onto this drive

Interact with SCuM's serial port

  • Connect SCuM's UART to an USB-to-UART converter
  • Open the serial port corresponding to your USB-to-UART converter using a serial terminal, using 19200 baud. For example using Socat on Linux:
    socat - open:/dev/ttyUSB0,b19200,echo=0,raw,cs8,parenb=0,cstopb=0
    

Python script installation

The scum-programmer command line tool is published on PyPI:

pip install scum-programmer

Usage

Load code onto SCuM

The scum-programmer command requires a firmware input file in .bin format. Use it as following:

scum-programmer path/to/scum-firmware.bin

On Windows, the nRF J-Link TTY port cannot be detected automatically and needs to be set manually using the --port option. For example:

scum-programmer --port COM42 path/to/scum-firmware.bin

Calibrate SCuM

If the application requires calibration, use the --calibrate option to trigger the calibration after booting SCuM:

scum-programmer --calibrate path/to/scum-firmware.bin

Build the nRF firmware

  • Install SEGGER Embedded Studio for ARM
  • Open scum_programmer/scum-programmer.emProject
  • Select the scum-programmer project and build it (F7)
  • Download it on the nRF using the Target > Download scum-programmer menu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scum_programmer-0.2.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scum_programmer-0.2.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file scum_programmer-0.2.2.tar.gz.

File metadata

  • Download URL: scum_programmer-0.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scum_programmer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c11b6df23db1b93a856332b259a13ecbaa730a34bf6efd5550461f3b490ad56d
MD5 6960fb843f91592e73cee95229bc5d7c
BLAKE2b-256 5a400e1b544623d55c81a9a4a547d3f111caa524f7e323e60db75e6cd993ab7a

See more details on using hashes here.

File details

Details for the file scum_programmer-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scum_programmer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d8d004a061f6a5a09dcf7124acd8e51e34b29afdba01d2e33d7cd0697cddab4
MD5 203216b667005c79794afa54396a8d4a
BLAKE2b-256 e74b1960f221b416fcdc120d0725a56cea9d6d842d4f476b49b9bca726b40851

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page