Wiki

This version is outdated by a newer approved version.DiffThis version (28 Feb 2019 16:06) is a draft.
Approvals: 0/1

This is an old revision of the document!


Tutorial: Building MicroPython with CCES

MicroPython is a open-source software. You can build the MicroPython yourself from the source code using CCES. Either Windows version or Linux version of CCES will work.

Make sure you have CCES installed, as well as a desktop version of Python 3.

Windows user, please download that from Python official website. The folder containing the Python executable needed to be added to PATH. This is a option that can be enabled during installation, or you can add it manually later after installation.

Linux user, you may install the Python 3 from your distribution's software repository, and no extra configuration should be necessary after installation.

Start by cloning the GitHub repository of MicroPython: https://github.com/analogdevicesinc/micropython.git, you can use Git for Windows or GitHub Desktop to do that. Alternatively, you may just download a snapshot zip file from GitHub: https://github.com/analogdevicesinc/micropython/archive/master.zip

After cloning that into your local computer, open the project located inside ports/sc5xx using CCES:

After opening the project, build it normally using the build command.

If you see an error saying python could not be found, check the executable name of your Python, sometimes it is called python3, sometimes it is simply python. Change the executable name accordingly inside py/mkenv.mk

Now the MicroPython should be built in side the folder ports/sc5xx/build-sam.

Optionally, to generate a loader file that can be flashed into the SPI Flash: (This only works with Windows Version, replace firmware with the path to your binary)

"C:\Analog Devices\CrossCore Embedded Studio 2.8.1\elfloader.exe" -proc ADSP-SC589 -core0=firmware -init "C:\Analog Devices\CrossCore Embedded Studio 2.8.1\SHARC\ldr\ezkitSC589_initcode_core0_v10" -b SPI -f BINARY -Width 8 -bcode 0x1 -o micropython.ldr

Navigation - SHARC Audio Module

resources/tools-software/sharc-audio-module/micropython/building.1551366368.txt.gz · Last modified: 28 Feb 2019 16:06 by Wenting Zhang