Hi,
I have a LPC55S16-EVK, and I'm using MCUXpresso IDE.
I'm trying to clean & build & flash the board (DFU-MODE) directly from my terminal (Ubuntu).
So far, I tried:
* clean the project with "make -r clean -C Debug/"
This seems to work, I need to run "mcuxpressoide-11.3.0_5222/MCUXpressoPath.sh" script before the clean.
* build the project with "make -r -C Debug/ all"
Same as the clean, works and I need to run the path script before.
Now, in order to flash the board I've tried to use dfu-util.
dfu-util -d VVVV:PPPP -c 0 -t 2048 -R -D ??
VVVV - Vendor ID
PPPP - Product ID
I'm not sure which file I should pass to the command (instead of ??)
* I tried the axf file in Debug directory and the new program was not flashed to the MCU.
* I tried mcuxpressoide-11.3.0_5222/ide/plugins/com.nxp.mcuxpresso.tools.bin.linux_11.3.0.202101111545/binaries/LPC432x_CMSIS_DAP_V5_361.bin.hdr, and the old program was flashed into the MCU (the last one built directly from the IDE).
What am I missing here?
How should I flash the MCU in DFU mode?
My method to clean & build the project are correct? this should be made from the makefile in Debug directory?
P.S I tried the lpcscrypt-2.1.2_57/scripts/dfu_boot script and had the same issues.