adafruit / Adafruit_Adalink

Python wrapper for Segger's J-Link Commander & STMicro STLink V2 to flash various ARM MCUs
MIT License
125 stars 33 forks source link

Error: Invalid value for "-h" / "--program-hex": Path "..." does not exist #25

Closed glydrfreak closed 6 years ago

glydrfreak commented 6 years ago

Windows 64-bit

Trying to flash an empty Bluefruit module using the release of Adalink:

C:\Users\Braedin Butler>adalink nrf51822 --programmer jlink --wipe --program-hex bootloader_0002.hex --program-hex s110_nrf51_8.0.0_softdevice.hex --program-hex blespifriend_s110_xxac_0_8_0_170925_blespifriend.hex --program-hex blespifriend_s110_xxac_0_8_0_170925_blespifriend_signature.hex Usage: adalink nrf51822 [OPTIONS]

Error: Invalid value for "-h" / "--program-hex": Path "bootloader_0002.hex" does not exist.

Please correct me if I'm wrong, but I would assume these are the hex files I should use as the parameters:

I found them in the following repository: https://github.com/adafruit/Adafruit_BluefruitLE_Firmware

I made sure the .hex files were in the system path and restarted command prompt and still no luck. Am I missing something, or is there an issue with the 2.2.0/2.3.0 version of Adalink ?

glydrfreak commented 6 years ago

Duh... I just needed to change the directory to: cd\Users\Braedin Butler\Downloads\Adafruit_Adalink-master\Adafruit_Adalink-master