Hi, I am developing an application for the nrf52840dongle which should act as a coprocessor over USB. Additionally, I would like to be able to perform DFU over USB.
I downloaded the ot-nrf528xx repository and inside this folder, I executed the following commands without bootloader support./script/build
nrf52840 USB_trans
arm-none-eabi-objcopy -O ihex output/nrf52840/bin/ot-rcp ot-rcp.hex
nrfjprog -f nrf52 --chiperase --program ot-rcp.hex –reset
The application runs like a charm on my device.
However, now I want the same application with bootloader support with the following command
./script/build
nrf52840 USB_trans -DOT_BOOTLOADER=USB
arm-none-eabi-objcopy -O ihex output/nrf52840/bin/ot-rcp ot-rcp.hex
nrfjprog -f nrf52 --chiperase --program ot-rcp.hex –reset
But when I
flash the ot-rcp.hex, no application starts running. Does the hex-file that I
generated include the bootloader and the rcp application? Or what did I
generate actually? Do I need to flash a particular bootloader hex file?
Additionally I would like to adapt the colors of an RGB led depending on the state of the USB. For instance change the color to green if USB connection has started. Am I able to know the state of the USB communication in let's say main()?
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/b82f3875-1ef2-4b0a-8ba3-f8ad0e068b99n%40googlegroups.com.
Hello,I thought I followed the same procedure described by Matthais for building and programming the nRF52840 dongle. When I did this is overwrote the boot loader, bricking the dongle. The only difference is that I used the NRF Connect Programmer application vs. the command line utility. Because the dongle needs the boot loader I was under the impression that a different flash map was required.It looks like the correct build command is: $ ./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USBIs that correct?
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/a8f9a995-a473-42d0-9270-85a0881b6e72n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/CAGwZUDv%3DvBkK%2BEhWHZZrsS_YHoADQEoG_8LNTKn0e20sgC_L_Q%40mail.gmail.com.