Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #4

Open
cptX opened this issue Jul 26, 2022 · 1 comment
Open

Doesn't work #4

cptX opened this issue Jul 26, 2022 · 1 comment

Comments

@cptX
Copy link

cptX commented Jul 26, 2022

On a Mi3 controller I'm trying to run the code both in linux and windows and I get the following errors:

~/codes/python/M365_DRV_STLINK-master $ ./flash_m365_1S.py

unsecuring device...
done
reading UUID
Traceback (most recent call last):
File "./flash_m365_1S.py", line 58, in
UUID = oocd.read_memory(0x1FFFF7E8,3)
File "/home/xxxxx/codes/python/M365_DRV_STLINK-master/openocd.py", line 120, in read_memory
order = [int(raw[2 * i]) for i in range(len(raw) // 2)]
File "/home/xxxxx/codes/python/M365_DRV_STLINK-master/openocd.py", line 120, in
order = [int(raw[2 * i]) for i in range(len(raw) // 2)]
ValueError: invalid literal for int() with base 10: 'embedded:startup.tcl:449:'

Can anybody tell me what is wrong here?

In windows by using the m365rec.exe it works but using this code here either in linux or windows with python 3.8.10 throws the above error!

@ditrics
Copy link

ditrics commented Jul 28, 2022

Same here with m365 classic:

C:\Users\anvert iroda\Downloads\M365_DRV_STLINK-master>python flash_m365_classic.py unsecuring device... done reading UUID done: 0673ff35 34315653 51184954 preparing sooter data... flashing... done Traceback (most recent call last): File "flash_m365_classic.py", line 77, in <module> UUID2 = oocd.read_memory(0x0800F9B4,3) File "C:\Users\anvert iroda\Downloads\M365_DRV_STLINK-master\openocd.py", line 120, in read_memory order = [int(raw[2 * i]) for i in range(len(raw) // 2)] File "C:\Users\anvert iroda\Downloads\M365_DRV_STLINK-master\openocd.py", line 120, in <listcomp> order = [int(raw[2 * i]) for i in range(len(raw) // 2)] ValueError: invalid literal for int() with base 10: 'embedded:startup.tcl:476:'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants