I'm trying to flash my GFMPW-1 chip sent to me las...
# gf180mcu
g
I'm trying to flash my GFMPW-1 chip sent to me last week. First, it nearly worked:
Copy code
gonsolo blink:sudo make flash
python3 ../util/caravel_hkflash.py blink.hex
Success: Found one matching FTDI device at <ftdi://ftdi:232>h:5:3/1
Caravel data:
   mfg        = 0456
   product    = 20
   project ID = 1801a030
After playing around a bit this happens:
Copy code
gonsolo blink:sudo make flash
python3 ../util/caravel_hkflash.py blink.hex
Success: Found one matching FTDI device at <ftdi://ftdi:232>h:5:3/1
Caravel data:
   mfg        = 0000
   product    = 00
   project ID = 00000000
Incorrect MFG value, expected 0x0456.
What happened? And is there anything I can do?
t
This is the standard issue where if you flash a program that reconfigures GPIOs 1 to 4, then you can no longer access the housekeeping SPI once the program has started. The trick is to prevent the program from starting. Hold down the reset button, then power cycle the board while still holding down the reset button, then run "make flash". After the script says that the flash chip is being erased, you can let go of the reset button.
If your program keeps GPIOs 1 to 4 in their original configuration that is compatible with the housekeeping SPI operation, then you won't have this problem. If your project requires use of GPIO 1 to 4, then this becomes a necessary inconvenience every time you want to flash a new program.
g
Ok, thank you. And should I use "make flash" in firmware/chipignite/blink or firmware/gf180/blink to test? (I guess the latter, just to be sure.)
I power cycled and flash gf180 and it seems to work. Thanks.
t
Good to know you got it working!