Value for --device flag while flashing Core Module


#1

Hello,
I need help with flashing Core Module.My setup looks like this.
I have a Raspi 3 with bigclown raspbian image

I am able to flash Usb dongle with this command
bcf flash --device /dev/ttyUSB0 bigclownlabs/bcf-gateway-usb-dongle:latest!

Now, I want to flash Core Module.
My question: What should I pass to --device option?
I have 4 usb slots, SO, I am not sure what is the name of the usb port to which Core Module is connected.

Thanks,


#2

Hello,
from the picture I can see, that the Core Module is Revision 1, so you flash them by DFU mode https://www.bigclown.com/doc/tutorials/toolchain-guide/#switching-core-module-into-dfu-mode
then you flash with:
bcf flash --dfu firmware_name
or the newest notation, which tries to unify the “–device” parametr
bcf flash --device dfu firmware_name

If you have COre Module R2 with just a single button ,the flashing is the same like for USB DOngle
bcf flash --device /dev/ttyUSB0 firmware_name

SO if you have more /dev/ttyUSBx devices you have to pay attention which ttyUSBis 0, 1 etc. YOu can use command bcf devices which will list all the ttyUSBx serial ports. This command don’t list DFU devices.

More info for R2 can be found here https://www.bigclown.com/doc/hardware/about-core-module/


#3

Thank you very much for the instructions.
I installed bcf on my Mac and then connected to Core Module Via mini USB. This required me to install ’ xcode-select --install’ though.
Regards,