8000 Chip read CheckSum as command · Issue #4 · jsnyder/stm32ld · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Chip read CheckSum as command #4
Open
@yangm379

Description

@yangm379

Hello,

I like this tool very much any tested it on my stm32f103c8t6 in Windows. I found that when my PC send "GetVersion" command as "00 FF", the chip did nothing but waiting for the CheckSum byte. If I send a "FF" followed with "00 FF", chip send my reply after that.
Thus I modified the stm32h_send_command() function in stm32ld.c, added 100ms delay between the command and ChechSum data:
////////////////////////////////////////////////////
static int stm32h_send_command( u8 cmd )
{
ser_write_byte( stm32_ser_id, cmd );
sleep(100);
ser_write_byte( stm32_ser_id, ~cmd );
}
////////////////////////////////////////////////////
Then every thing goes well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0