: error: 'PM_MCUBOOT_SECONDARY_ID' undeclared (first use in this function) 65 | #define PM__mcuboot_secondary_ID PM_MCUBOOT_SECONDARY_ID
Could you please assist me in creating a DTM project, that is updatable via dfu mode?
Thank you very much,
: error: 'PM_MCUBOOT_SECONDARY_ID' undeclared (first use in this function) 65 | #define PM__mcuboot_secondary_ID PM_MCUBOOT_SECONDARY_ID
Hello,
Is there a reason why you need DFU on the direct_test_mode application? What kind of DFU are you trying to add? Bluetooth or serial?
Can you please zip and upload the application that you are trying to build, and let me know what NCS version you are using, and what board target you are building for. If it is a custom board, please upload the board files as well, so that I can replicate the build issue that you are seeing.
Best regards,
Edvin
Hi Edvin,
thank you for looking in to this.
The nrf5340 will be part of another product and enable new features for our users.
We want to have various apps that the user can cycle through on our products: the user will select an "app" and it will be pushed to the nrf5340 in the background via USB dfe from a linux host.
The DTM mode will be one such application, which will only be available for a select view users (mainly internal testing, production chain, certification labs, etc.).
We have this workflow working for other applications, but the DTM applications does not yet work.
We use the Ublox Nora B - I've included the boards directory for this board.
I've also included the modified sample code.
Please do not hesitate to contact me, if you have any further questions.
If you send me a DM I can also give you my company contact informations.
dtm_and_dfe_together.tar.gz
Just to be clear, it is the direct_test_mode, and not the sample_code_remote_shell we are trying to build?
What is your build command? "west build -b ubc_evknorab10_nrf5340/nrf5340/cpuapp" ? or some additional build flags?
Best regards,
Edvin
And what NCS version?
Yes, exactly, the direct_test_mode is the project we are trying to build.
If I copy the sample_code in to the nrf/samples/nrf5340/remote_shell directory, I actually get the DTM application to show up in dfu - alas only the Ramdisk.
This is my west build command, as generated by VS Code nrf connect plugin:
west build --build-dir /home/user/workspace/nrf-bluetooth/direct_test_mode/build /home/user/workspace/nrf-bluetooth/direct_test_mode --pristine --board ubx_evknorab10/nrf5340/cpunet --sysbuild -- -DBOARD_ROOT="/home/user/workspace/nrf-bluetooth"