PyCom Setup: Difference between revisions

From Sensors in Schools
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
OSError: [Errno 2] ENOENT
OSError: [Errno 2] ENOENT
Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead.
Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead.
Port 1700 is used on TTN. Works fine for me at home, need to test this at WTS to see if the ports are open.

Revision as of 07:58, 7 April 2022

1. Board soldering (TODO: Schematic/images)

2. Firmware updater

3. Install Atom + Pymakr plugin. Pymakr and firmware install tools only work on x86 processors, so ARM devices (eg. Raspberry pi) will not work for this step.

  • For Windows, Visual Studio C++ 2019 is required (2022 currently isn't supported): Downloads & Resources
  • For linux: install node v16 (v17 does NOT work currently) and 'make' tools + toolchain.


4. Set up Pygate gateway:

Need permission to access serial port! Can be an issue on linux if serial won't connect in Atom.

Common errors: AttributeError: 'module' object has no attribute 'callback' This usually means that WiPy firmware has not been updated.

OSError: [Errno 2] ENOENT Means that the referenced file is not found. Check file path and file name (TTN has a different file name to the code template). Also remove the leading '/' from the flash directory. I'm not sure of the file structure on the LoPy, but it seems that it's not placed in root, and therefore a relative path is needed instead.

Port 1700 is used on TTN. Works fine for me at home, need to test this at WTS to see if the ports are open.