Tuesday , 27 October 2020
iten

Flashing new firmware example fails (CMD_GETID)


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10784
    Boondggler
    Participant

    Hi

    I raised this a while back in the forum and have had not been able to fix the issue and would really like to get to the bottom of this. I have purchased the full book, which I realise doesn’t give me online tech support, but someone must know the answer?

    I have successfully got the boot-loader (22.3 Developing a Custom Bootloader) example compiled and producing a .hex file (the binary also appears to run ok regarding if an app is present or not).

    For some reason when I come to upgrade my app code via the flasher.py script, it fails with the below message.

    C:\Users\me\Desktop\Project\Debug>python flasher.py com3 project.hex
    Traceback (most recent call last):
    File “flasher.py”, line 181, in <module>
    id = flasher.getID()
    File “flasher.py”, line 93, in getID
    raise ProgramModeError(“CMD_GETID failed”)
    __main__.ProgramModeError: CMD_GETID failed

    If I debug the boot-loader it appears to accept the GETID command and tries to send an ACK back.

    I have currently just commented out the offending code but this isn’t really a fix.

    I have tried on both Windows and Linux boxes with no success

    Any ideas?

    Boondoggler

    #13225
    aungtunlinn1992
    Participant

    Hi,
    I would like to know where I can get the flasher.py file? I cannot find the script in the Mastering STM32 book.
    I am interested in using an encrypted custom bootloader in one of my projects.
    Could you please tell me about where do you get this script?


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.