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

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
User avatar
dbrazil
Posts: 14
Joined: Mon Apr 26, 2021 5:52 pm

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

Post by dbrazil » Sun Apr 17, 2022 2:32 pm

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

User avatar
dbrazil
Posts: 14
Joined: Mon Apr 26, 2021 5:52 pm

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

Post by dbrazil » Sun Apr 17, 2022 3:23 pm

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?

Post Reply