Page 1 of 1

[RP2040 Connect] Cannot find source file: aes_encrypt.c

Posted: Sun Apr 17, 2022 2:32 pm
by dbrazil
Hi,

I tried to build the MicroPython fw for the Arduino Nano RP2040 connect but I hit the error while building:

Code: Select all

CMake Error at CMakeLists.txt:58 (add_executable):
  Cannot find source file:

   .../micropython/lib/mynewt-nimble/ext/tinycrypt/src/aes_encrypt.c
Indeed, the mynewt-nimble folder is empty. I've done "make submodules" but it only builds lib/mbedtls, lib/pico-sdk, and lib/tinyusb

I checked and it builds for the Pico and for the Adafruit Feather RP2040.
Am I missing anything?

Thanks

Re: [RP2040 Connect] Cannot find source file: aes_encrypt.c

Posted: Sun Apr 17, 2022 3:23 pm
by dbrazil
Since I was missing the mynewt-nimble library, I got it from source here: https://github.com/apache/mynewt-nimble
Then it couldn't find the file micropython/lib/mynewt-nimble/nimble/host/src/ble_monitor.c in the building process.

I saw that in this last version there is no such file, so I checked out the nimble_1_4_0_tag of the mynewt-nimble repository.

Code: Select all

git checkout nimble_1_4_0_tag
I then verified the ble_monitor.c file existed in this tagged version.
But then, I was missing the micropython-lib. After cloning from source, everything works. :D

Shouldn't the make submodules command also ensure the nimble library is cloned, version checked and built?