Request a more detailed explanation on how to flash the lighthouse bootloader
Posted: Mon Aug 17, 2020 6:20 pm
My order for the Lighthouse Deck is on December 7, 2019 and the order number is #3808. I remember that this Lighthouse Deck is a relatively early version. Anyway, I followed the bitcraze github below to program Lighthouse Deck's bootloader.
The hardware configuration refers to Adafruit FT232H Breakout and lighthouse-4 deck based on the contents of Overview | Programming SPI flash with an FT232H breakout , and the final circuit configuration is as follows.
I confirmed that the settings and operation of the Adafruit FT232H Breakout board are normal.
And the build was successfully executed through the make command, and the bootloader_multi.bin file was created normally.
However, when executing make prog, the following error occurred and the boot loader could not be flashed.
The terminal output at this time was as follows.
$ make prog
iceprog bootloader_multi.bin
init..
cdone: high
reset..
cdone: high
flash ID: 0x00 0x00 0x00 0x00
file size: 235162
erase 64kB sector at 0x000000..
erase 64kB sector at 0x010000..
erase 64kB sector at 0x020000..
erase 64kB sector at 0x030000..
programming..
reading..
Found difference between flash and file!
ABORT.
Makefile:40: recipe for target 'prog' failed
make: *** [prog] Error 3
I tried using iceprog directly with option as follows, and the output at this time was as follows.
$ iceprog -v -d i:0x0403:0x6014 bootloader_multi.bin
….
….
....
SR1: 0x00
- SPRL: unlocked
- SPM: Byte/Page Prog Mode
- EPE: Erase/Prog success
- SPM: ~WP asserted
- SWP: All sectors unprotected
- WEL: Not write enabled
- ~RDY: Ready
prog 0x039600 +0x09A..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 4b 9b 01 06 00
waiting..rrR
reading..
read 0x000000 +0x100..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Found difference between flash and file!
ABORT.
I don't know what to do in this situation. I hope Bitcaze or someone can help me in this situation. I would like Bitcaze to create a simple lighthouse bootloder tutorial using an Adafruit FT232H Breakout or any FT232H device. This will help many users to use the Lighthouse bootloader more easily and proceed to the next step.
The hardware configuration refers to Adafruit FT232H Breakout and lighthouse-4 deck based on the contents of Overview | Programming SPI flash with an FT232H breakout , and the final circuit configuration is as follows.
I confirmed that the settings and operation of the Adafruit FT232H Breakout board are normal.
And the build was successfully executed through the make command, and the bootloader_multi.bin file was created normally.
However, when executing make prog, the following error occurred and the boot loader could not be flashed.
The terminal output at this time was as follows.
$ make prog
iceprog bootloader_multi.bin
init..
cdone: high
reset..
cdone: high
flash ID: 0x00 0x00 0x00 0x00
file size: 235162
erase 64kB sector at 0x000000..
erase 64kB sector at 0x010000..
erase 64kB sector at 0x020000..
erase 64kB sector at 0x030000..
programming..
reading..
Found difference between flash and file!
ABORT.
Makefile:40: recipe for target 'prog' failed
make: *** [prog] Error 3
I tried using iceprog directly with option as follows, and the output at this time was as follows.
$ iceprog -v -d i:0x0403:0x6014 bootloader_multi.bin
….
….
....
SR1: 0x00
- SPRL: unlocked
- SPM: Byte/Page Prog Mode
- EPE: Erase/Prog success
- SPM: ~WP asserted
- SWP: All sectors unprotected
- WEL: Not write enabled
- ~RDY: Ready
prog 0x039600 +0x09A..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 4b 9b 01 06 00
waiting..rrR
reading..
read 0x000000 +0x100..
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Found difference between flash and file!
ABORT.
I don't know what to do in this situation. I hope Bitcaze or someone can help me in this situation. I would like Bitcaze to create a simple lighthouse bootloder tutorial using an Adafruit FT232H Breakout or any FT232H device. This will help many users to use the Lighthouse bootloader more easily and proceed to the next step.