You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In above case payload_NUCLEO_L073RZ.hex file does not exists in given folder so assuming cli API would return with proper error message. Now behaviour are totally unexpected because there is no any mention about missing file.
$ pyocd flash --pack ~/Downloads/Keil.STM32L0xx_DFP.2.0.1.pack -t stm32l073rz ../bin/payload_NUCLEO_L073RZ.hex
0000707:INFO:pack_target:Loading CMSIS-Pack: /Users/jusvat01/Downloads/Keil.STM32L0xx_DFP.2.0.1.pack
0000969:ERROR:__main__:uncaught exception: local variable 'file_obj' referenced before assignment
Traceback (most recent call last):
File /lib/python2.7/site-packages/pyocd/__main__.py", line 304, in run
self._commands[self._args.cmd]()
File "/lib/python2.7/site-packages/pyocd/__main__.py", line 379, in do_flash
file_format=self._args.format)
File "/lib/python2.7/site-packages/pyocd/flash/loader.py", line 138, in program
file_obj.close()
UnboundLocalError: local variable 'file_obj' referenced before assignment
The text was updated successfully, but these errors were encountered:
In above case
payload_NUCLEO_L073RZ.hex
file does not exists in given folder so assuming cli API would return with proper error message. Now behaviour are totally unexpected because there is no any mention about missing file.The text was updated successfully, but these errors were encountered: