DW3_QM33_SDK Compilation error

Hi !

I’m trying to compile DW3_QM33SDK_1.02 based on nRF52840_Developer_Manual_QM33SDK-1.0.2. When I try to build the firmware (I use VSCode), CreateTarget.py fails mentioning:

File"C:\DW3_QM33_SDK_1.0.2/Projects/DW3_QM33_SDK/FreeRTOS/nRF52840DK/CreateTarget.py", line 7, in
from CreateTargetCommon import CreateTargetCommon
ModuleNotFoundError: No module named ‘CreateTargetCommon’

This is strange because I followed every step. I tried several times from scratch. I created the environnement in the project root and installed the requirements.txt. I selected the right interpreter in VScode. The only difference I see is that I use python 3.13 instead of the recommended 3.10. Did anyone faced this issue?

This is most likely the culprit to the issue. Please try to install Python v3.10 and make sure that you are selecting this new Python interpreter when building.

Hello and thank you for your answer,

I tried with python 3.10 and added some python line to the “Createtarget.py” to plot the sys.paths .
For the first build, the missing module error was solved. I had an other error of missing file, but i could see the environnement was included in the sys.path.
Then, all next build gave me the missing module error and the environnement was not in sys.path anymore. VScode could reconize the the environnement and thus module, but the building tools seems to be unable to do so.

So, something in cmake seems to be changing the interpreter without notifing me. To be honest, I gave up for now. I’m not comfortable enough with Cmake to debug this.

Hi @Yacine ,

Have you run “pip install -r requirements.txt” to setup required python modules? Can you please double check?

Besides from that, you need to let VSCode pick the python virtual environment which just installed CreateTargetCommon with above steps as default Python interpreter. Please refer to 4.3.1.3 Other in nRF52840_Developer_Manual_QM33SDK-1.0.2.pdf.

Regards

Hello @bing.xiao ,

Yes I did. I also verified that all modules were installed correctly.

I followed the stepped specified in point 4.3.1.3.

I will try to build everything from scratch once more when i have time. This needs some investigation. If I find something, i will share.

Thank you for your help,