pavelrevak / pystlink

Python tool for flashing and debugging STM32 devices using ST-LINK/V2
MIT License
218 stars 59 forks source link

getting I/O error(13): Permission denied while flashing the new credentials into mcu through python #15

Closed eronenergy closed 4 years ago

eronenergy commented 5 years ago

Hi

I am facing issue with flashing the mcu with new credentials using sigfox flasher and st link 32 utility with python(py charm) but i am able to do it manually with the command prompt but getting the error while executing with py-charm. Below is the error mentioned:

I/O error(13): Permission denied

FYI: I am running this command using command promt as administrator and also running py charm with administrator rights.

below is the command i am using :

SIGFOX_FLASHER"FEDCBA98;0102030405060708;0123456789ABCDEF0123456789ABCDEF;1;-1740;0;0" -e fixed -k 995511775533664400AABBCCDDEEFF00 -f D:\nishant\ID_PACK_Key.bin -w

output on command promt.

Encryption succeeded. STM32L0 found. Programming... Programming completed.

flashing_credentials

Please help me as i am struggling with this since very long time and not getting any solution.