This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
resources:tools-software:sharc-audio-module:micropython:running [27 Feb 2019 18:48] – created Wenting Zhang | resources:tools-software:sharc-audio-module:micropython:running [24 Jul 2019 22:21] (current) – Remove extra `` in the commnad provided Wenting Zhang | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tutorial: Running MicroPython on the board ====== | + | ====== Tutorial: Running MicroPython on the SHARC Audio Module Main Board ====== |
The fastest way of getting MicroPython to run on the board, is by flashing a pre-built MicroPython loader binary into the on-board SPI Flash and run the MicroPython from there. | The fastest way of getting MicroPython to run on the board, is by flashing a pre-built MicroPython loader binary into the on-board SPI Flash and run the MicroPython from there. | ||
<WRAP round 70% Important> | <WRAP round 70% Important> | ||
- | This would overwrite anything that is previously stored in the SPI Flash, for example, U-Boot. If you only want to run the MicroPython in the RAM without erasing the Flash, refer to the tutorial about building | + | This would overwrite anything that is previously stored in the SPI Flash. If you only want to run MicroPython in RAM without erasing the Flash, refer to [[resources: |
</ | </ | ||
Line 13: | Line 13: | ||
[[https:// | [[https:// | ||
- | ===== Flash it into the SAM board ===== | + | ===== Flash it into the SHARC Audio Module |
- | There are various ways of doing this. Here I am using the CLDP (Command Line Downloader Program) bundled with the CCES and the Bare Metal SDK. | + | There are various ways of doing this. Here I am using the CLDP (Command Line Device Programmer) bundled with the CrossCore Embedded Studio |
- Download the binary loader file (micropython-xxxxxx.ldr, | - Download the binary loader file (micropython-xxxxxx.ldr, | ||
- Open up a Command Prompt window and navigate to the directory where you put the loader file. (By using '' | - Open up a Command Prompt window and navigate to the directory where you put the loader file. (By using '' | ||
- | - Connect power supply and the ICE-1000 to the board. Connect the ICE-1000 to your PC. | + | - Connect |
- Use the following command to flash it into the board (assuming you have CCES 2.8.1, Bare Metal SDK 2.0.0, and the board is connected to PC via a ICE-1000, and MicroPython built on Feb 27, 2019): < | - Use the following command to flash it into the board (assuming you have CCES 2.8.1, Bare Metal SDK 2.0.0, and the board is connected to PC via a ICE-1000, and MicroPython built on Feb 27, 2019): < | ||
- | " | + | " |
</ | </ | ||
- You should see something similar to this, and saying '' | - You should see something similar to this, and saying '' | ||
Line 33: | Line 33: | ||
===== Connect to the board ===== | ===== Connect to the board ===== | ||
- | Now the MicroPython has been flashed into the board, follow | + | Now MicroPython has been flashed into the board, follow |
- | - Connect | + | - Connect |
- | - You should be able to see a USB Serial Port device in the Device Manager, note that COM number. | + | - You should be able to see a USB Serial Port device in the Device Manager, note the COM number. |
- | - Open up a serial terminal emulator, connect to that COM port, use baud rate 115200. I am using PuTTY, but you may use other terminal emulator as well. | + | - Open up a serial terminal emulator |
- | - Set the JP1 on the board to 1-2 (SPI Boot) | + | - Set JP1 on the board to 1-2 connected |
- Press the RESET button (SW2) | - Press the RESET button (SW2) | ||
- | - You should be able to see the Python console. | + | - You should be able to see the Python console |
{{: | {{: | ||
+ | ---- | ||
+ | {{navigation SHARC Audio Module# |