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

unable to load firmware to stm32f103C #8

Open
shirish47 opened this issue Feb 2, 2018 · 2 comments
Open

unable to load firmware to stm32f103C #8

shirish47 opened this issue Feb 2, 2018 · 2 comments

Comments

@shirish47
Copy link

I have setup stm32 board properly with boot0 set to 1 and boot1 set to 0 and connecting RX and TX to arduino uno board removing mcu from it.
I get this error ..

 python ./stm32loader.py -p /dev/cu.usbmodem1421 -w ~/Downloads/generic_boot20_pc13.bin
Can't init. Ensure that BOOT0 is enabled and reset device
Traceback (most recent call last):
  File "./stm32loader.py", line 436, in <module>
    bootversion = cmd.cmdGet()
  File "./stm32loader.py", line 118, in cmdGet
    if self.cmdGeneric(0x00):
  File "./stm32loader.py", line 115, in cmdGeneric
    return self._wait_for_ask(hex(cmd))
  File "./stm32loader.py", line 91, in _wait_for_ask
    raise CmdException("Unknown response. "+info+": "+hex(ask))
__main__.CmdException: Unknown response. 0x0: 0xf8

whats the problem I can't upload the firmware. :(

@shirish47
Copy link
Author

on multiple trials I was able to do it .. but then I saw it was not showing in USB.
So I added verify flag in command I got

Verification FAILED
21140 vs 21140
0x1: 0x50 vs 0x4
0x4: 0xf1 vs 0x45
0x5: 0x0 vs 0x1
0x8: 0x31 vs 0xe7
0x9: 0x1 vs 0x2
0xc: 0x31 vs 0xdf
0xd: 0x1 vs 0x2

@shirish47
Copy link
Author

Ok so I ran that command with erase flag and it worked I suppose there was some other code on it.

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

1 participant