(06-10-2020, 12:47 PM)graynada Wrote: I have download the toolchain for the Arm Cortex-M4 but wherever I have tried placing it in the file system it still can't be found. Please, what am I doing wrong?
I suspect you haven't added the toolset to the PATH, the list of directories to search for executable files.
Try something like (swapping /home/drt/Apps/ for wherever you have boot the toolchain on your machine... and where
stingray$ is the prompt on my machine, I like short prompts):
Code:
stingray$ export PATH=$PATH:/home/drt/Apps/gcc-arm-none-eabi-9-2019-q4-major
stingray$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
stingray$ make -j`nproc` BOARD=pinetime all
If you don't want to run that export command everytime you open a new terminal window then you can add that line to your .bashrc file.
PS If you watch hasn't arrived yet you'll probably also want to try
make sim . That will
launch the simulator which permits basic app development without a real device, It's not an exact simulation (there is 100,000 times more RAM for example
) but it's still good for checking your Python code is right. If you get it running then the display is for single press only. The arrow keys are used to emulate swipe gestures and Tab emulates the physical button.