5 years ago.

micropython

Hi,

I am trying to compile micropython by following this link https://os.mbed.com/users/infinnovation/code/micropython/ but I am getting the following error

[DEBUG] Errors: BUILD/NRF52840_DK/GCC_ARM/mbed-os/rtos/TARGET_CORTEX/TOOLCHAIN_GCC_ARM/mbed_boot_gcc_arm.o: In function `wrap_main': [DEBUG] Errors: /home/raveen/mbed_os_micropython/micropython/./mbed-os/rtos/TARGET_CORTEX/TOOLCHAIN_GCC_ARM/mbed_boot_gcc_arm.c:77: undefined reference to `main' [DEBUG] Errors: collect2: error: ld returned 1 exit status Traceback (most recent call last): File "/home/raveen/mbed_os_micropython/micropython/mbed-os/tools/make.py", line 76, in wrapped_build_project src_dir, build_dir, mcu, *args, kwargs File "/home/raveen/mbed_os_micropython/micropython/mbed-os/tools/build_api.py", line 599, in build_project res = toolchain.link_program(resources, build_path, name) File "/home/raveen/mbed_os_micropython/micropython/mbed-os/tools/toolchains/mbed_toolchain.py", line 735, in link_program self.link(elf, objects, libraries, lib_dirs, linker_script) File "/home/raveen/mbed_os_micropython/micropython/mbed-os/tools/toolchains/gcc.py", line 279, in link self.default_cmd(cmd) File "/home/raveen/mbed_os_micropython/micropython/mbed-os/tools/toolchains/mbed_toolchain.py", line 786, in default_cmd raise ToolException(stderr) ToolException: BUILD/NRF52840_DK/GCC_ARM/mbed-os/rtos/TARGET_CORTEX/TOOLCHAIN_GCC_ARM/mbed_boot_gcc_arm.o: In function `wrap_main': /home/raveen/mbed_os_micropython/micropython/./mbed-os/rtos/TARGET_CORTEX/TOOLCHAIN_GCC_ARM/mbed_boot_gcc_arm.c:77: undefined reference to `main' collect2: error: ld returned 1 exit status

[mbed] ERROR: "/usr/bin/python" returned error. Code: 1 Path: "/home/raveen/mbed_os_micropython/micropython" Command: "/usr/bin/python -u /home/raveen/mbed_os_micropython/micropython/mbed-os/tools/make.py -t gcc_arm -m NRF52840_DK source . build ./BUILD/NRF52840_DK/GCC_ARM -v" Tip: You could retry the last command with "-v" flag for verbose output

main.cpp is missing from this URL https://os.mbed.com/users/infinnovation/code/micropython/file/33521d742af1/ can anyone help me

Regards Raveen

Be the first to answer this question.