Skip to main content
brendon
Visitor II
February 29, 2012
Question

Error: Cannot get available commands

  • February 29, 2012
  • 4 replies
  • 1209 views
Posted on February 29, 2012 at 22:05

I get an error when trying to program an STM32F100C8 using the serial bootloader demo. It has been working fine for about a week then this morning I get this error.

Cannot get available commands,

Please, Try to change Echo selection

Reset your device then try again

I have tried using all the echo options but nothing works.

The settings I'm using at the moment are

Baud Rate 115200

Parity Even

Echo Disabled

Timeout(s) 5

Flow control OFF

Any help would be greatly appreciated.
    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    March 1, 2012
    Posted on March 01, 2012 at 13:29

    Check the BOOTx pins

    Check the Serial connection

    Disconnect all power, and disconnect all external cabling, disconnect USB cable from USB-to-serial adapters, before reconnecting. ie remove all parasitic power sources.

    The STM32 auto-bauds based on the 0x7F data pattern sent, if it flubs that all further communication is pointless, and thus the reset, or power cycle.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    urasinov
    Associate II
    September 18, 2015
    Posted on September 18, 2015 at 14:52

    I have same problem ''

    Cannot get available commands

    ''.

    Flash loader version 2.8.0

    MCU STM32F100C4

    UART logs:

    PC sends: 7F

    MCU sends: 79

    PC sends: 00 FF

    MCU sends: 79 0b 22 00 01 02 11 21 31 43 63 73 82 92 79

    Tesla DeLorean
    Guru
    September 18, 2015
    Posted on September 18, 2015 at 15:07

    Perhaps the connection is unreliable.

    Double check the serial port settings (try 9600 8E1), try a different serial port, ideally a motherboard mounted one rather than a USB one.

    Provide more information about your board/system/connectivity

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    urasinov
    Associate II
    September 21, 2015
    Posted on September 21, 2015 at 11:36

    It's my custom board. It works on HSI only.

    I am using CP2103 USB-UART converter.

    It's impossible to use hardware RS232, it's problem to find these days.

    UART1 and USB-UART is 100% working.

    Because I used them for firmware developing.

    MCU sends and receives a lot of data through this UART at 115200 from PC through same USB-UART.

    I don't make changes in connection when I try to use bootloader.

    I almost complete developing firmware, I used SWD for debugging.

    And you think that connection is unreliable.

    Data logs which I mentioned are incorrect?

    Just now at writing I understand where can be problem.

    Flash Loader is working incorrect in Windows 8.1 64 bit. 

    I have on my PC windows 7 32 bit under virtual machine.

    From virtual machine flash loader works fine with my board.