-
Notifications
You must be signed in to change notification settings - Fork 98
firmware
To update your RFIDler you have two options... The easy way and the hard way. The easy way is the normal choice, obviously, and uses the on-board bootloader. The hard way is via the In Circuit Serial Programming (ICSP) pins, and you would only do it this way if the bootloader itself needed updating or was corrupt etc.
To use the bootloader, simply connect to RFIDler via the USB or Serial UART and issue the command 'BL', or from the Linux command line:
rfidler.py /dev/RFIDler bl
Depending on your operating system, you then need to perform one of the following:
RFIDler will reboot in bootloader mode and identify itself to the system as a 'hid' device, with vendor ID 04D8 and product ID 003C. dmesg should look like this:
[170575.157563] usb 3-2: new full-speed USB device number 3 using xhci_hcd [170575.217933] usb 3-2: New USB device found, idVendor=04d8, idProduct=003c [170575.217946] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [170575.217952] usb 3-2: Product: USB HID Bootloader [170575.217958] usb 3-2: Manufacturer: Microchip Technology Inc. [170575.231455] hid-generic 0003:04D8:003C.003D: hiddev0,hidraw1: USB HID v1.11 Device [Microchip Technology Inc. USB HID Bootloader] on usb-0000:0a:00.0-2/input0
It will stay in bootloader mode until it is reset by the flasher software, hitting the reset button or power-cycling.
To flash the firmware, you need the 'mphidflash' program which can be found here: mphidflash
Issue the command:
mphidflash -r -w firmware/Pic32/RFIDler.X/dist/debug/production/RFIDler.X.production.hex
the '-r' flag instructs mphidflash to reset the board when complete.
Note that the above hex file will always be the latest stable firmware, and it's probably a good idea to flash it whenever you see a new version committed to the repo as RFIDler is very much an ongoing development so new features and improvements will be regularly committed.