First time build of the repo for 1170 #16174
Replies: 1 comment · 4 replies
-
It builds fine here on a debian system. Maybe the length of the generated command exceeds the maximum line length of the shell. Try building with V=1 for more information. Which build environment do you use? |
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm running my commands in a git bash terminal. The output is quite long with V=1 so it could be a culprit, the errors on make for the 1170 do seem like they're getting cut off. Is there a way to handle that?
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Building on windows really isn't well supported at all, there's always problems like this that just make it too hard to get a reliable system. I suggest using wsl on windows to get a real Linux environment, I find it dramatically easier than managing a separate VM. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks, I'll give that a shot! |
Beta Was this translation helpful? Give feedback.
All reactions
-
gee, old-timer that I am, when I saw this topic, my first thought for 1170 was a PDP-11/70. That would be interesting to get MP running on! |
Beta Was this translation helpful? Give feedback.
-
I've been digging into micropython to be able to load it on the iMX1170 EVKB dev kit. I would like to make a custom port that will run on the m4 core, but am starting with just getting the stock imx 1170 port to build.
Taking the precompiled/hex file and loading it works as expected, but I can't seem to get the repo itself to build. I'm running on windows and would prefer not to have to use a virtual machine to do so.
I may be missing something toolchain wise, but I can't find a list of all the things you actually need. I think I have most installed that would be needed- python, arm GNU toolchain, cmake, mingw, msys2.
Following the readme in the mimxrt port- I have initialized/updated the micropython submodules and mpy-cross successfully builds. Updating the submodule dependencies for the board appears to work fine, but when running the make for 1170EVK, there is a message saying micropython-lib submodule is not initialized.
test -e "../../lib/micropython-lib/README.md" || (echo -e "\033[1;31mError: micropython-lib submodule is not initialized.\033[0m Run 'make submodules'"; false) python ../../tools/makemanifest.py -o build-MIMXRT1170_EVK/frozen_content.c -v "PORT_DIR=/c/Development/MicroPyTest/micropython/ports/mimxrt" -v "MPY_DIR=../.." -v "BOARD_DIR=boards/MIMXRT1170_EVK" -v "MPY_LIB_DIR=../../lib/micropython-lib" -b "build-MIMXRT1170_EVK" -f"-march=armv7m" --mpy-tool-flags="" boards/MIMXRT1170_EVK/manifest.py
Actually building for the 1170EVK errors out when it is almost complete though. It gets to the PREPROCESS LINK and LINK print outs and has been saying it cannot find a file/directory. The latest build error is:
C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\12.3 2023.07\bin\arm-none-eabi-ld.exe: cannot find build-M: No such file or directory make: *** [Makefile:476: build-MIMXRT1170_EVK/firmware.elf] Error 1
The mimxrt makefile has this at line 476:
$(Q)$(LD) -T$(BUILD)/link.ld $(LDFLAGS) -o $@ $^ $(LIBS)
Any insight here would be helpful.
This is using the v1.23.0 tag of micropython.
Beta Was this translation helpful? Give feedback.
All reactions