Running the workspace code to modify the CLI firmware

I’ve been using the USB workaround_DWM3001CDK-DW3_QM33_SDK_CLI-FreeRTOS.hex provided by @akash, but I would like to try modifying the file myself and see if there is any functionality I can add to the LEDs connected to the DWM3001c.

When I open the DW3_QM33_SDK.code-workspace it appears to load correctly, but when I try to Run and start Debugging, I get a message
“The preLaunch Task ‘Build Firmware’ terminaled with exit code 1.”

Traceback (most recent call last):
File “C:\Users\name\Desktop\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’

  • The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command python C:\Users\name\Desktop\DW3_QM33_SDK_1.0.2/Projects/DW3_QM33_SDK/FreeRTOS/nRF52840DK/CreateTarget.py UCI -no-force” terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

Before when opened it stated I had to select the CMakeList.txt and it appeared there were several options, so maybe I selected the wrong one?

Showing errors, shows No problems.
But it also seems to not be able to locate “CreateTargetCommon”

Thank you for any help you can provide.
Regards,
Clint

@Clint , please be sure to activate the virtual environment and specify the build type (either cli or uci) when running the Python script, e.g., python ./CreateTarget.py cli

See the README.md for more details.

When do you choose which?

I’m having the same problem:

Executing task in folder DW3_QM33_SDK_1.0.2: python C:\Users\wpb...\DW3_QM33_SDK_1.0.2\SDK\Firmware\DW3_QM33_SDK_1.0.2/Projects/DW3_QM33_SDK/FreeRTOS/DWM3001CDK/CreateTarget.py UCI

Traceback (most recent call last):
File “C:\Users\wpb...\DW3_QM33_SDK_1.0.2\SDK\Firmware\DW3_QM33_SDK_1.0.2\Projects\DW3_QM33_SDK\FreeRTOS\DWM3001CDK\CreateTarget.py”, line 7, in
from CreateTargetCommon import CreateTargetCommon
ModuleNotFoundError: No module named ‘CreateTargetCommon’

It’s the proper 3.10.11 python interpreter.

After further playing around, at apparently random intervals, I haven’t figured out the pattern yet, I have to open up Terminal in the project directory and rerun

 .\.venv\Scripts\Activate.ps1

and
pip install -r requirements.txt

and possibly reselect the configuration.
Very annoying.