znyul / stm32flash

Automatically exported from code.google.com/p/stm32flash
0 stars 1 forks source link

stm32f100xx not (properly) supported #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Boot STM32F100C8  into bootloader and connect via USB-2-TTL UART
2. run: stm32flash -c "/dev/tty.wch ch341 USB=>RS232 620" 

What is the expected output? What do you see instead?
-------------
-> Expected:
"stm32flash 0.3

http://stm32flash.googlecode.com/

Using Parser : Intel HEX
Serial Config: 57600 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0420 (STM32F100)
- RAM        : 20KiB  (4096b reserved by bootloader)
- Flash      : 64KiB (sector size: 4x1024)
- Option RAM : ??b
- System RAM : ??KiB

Wrote and verified address 0x080014f0 (100.00%) Done."

-------------
-> Real Output:
"stm32flash 0.3

http://stm32flash.googlecode.com/

Serial Config: 57600 8E1
Unexpected reply from device on command 0x00"

or

"stm32flash -c "/dev/tty.wch ch341 USB=>RS232 620" 
stm32flash 0.3

http://stm32flash.googlecode.com/

Serial Config: 57600 8E1
Failed to read byte: read_byte: Undefined error: 0"

What version of the product are you using? On what operating system?
Version 0.3 from this week sources checkout; OS is Mac OS X 10.9.4.

Please provide any additional information below.
Works with ST Flash Loader Demo in Windows XP/Virtual Machine.

Original issue reported on code.google.com by dmk...@gmail.com on 12 Sep 2014 at 9:18

GoogleCodeExporter commented 9 years ago
Thanks for the report. For comparison, is there something that does work for 
you? Other chip, other OS or previous stm32flash version? You are aware that 
you have to run without the -c option the first time after the chip is reset, 
right?

Original comment by lists.to...@gmail.com on 12 Sep 2014 at 10:11

GoogleCodeExporter commented 9 years ago
Thank you for the fast reply!

I just realized that the 32.768kHz oscillator space on the PCB was empty, so I 
soldered something in I had floating around. And now this works - I have to go 
down with the speed quite dramatically:

stm32flash -b 9600 "/dev/tty.wch ch341 USB=>RS232 620" 
stm32flash 0.3

http://stm32flash.googlecode.com/

Serial Config: 9600 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0420 (Medium-density VL)
- RAM        : 8KiB  (512b reserved by bootloader)
- Flash      : 128KiB (sector size: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB

Resetting device... done.

Everything else works fine out of the box (well, had to update for stm32f030f4) 
- STM32F103C8, F103RB, F051, F407, ...

Sorry for the misleading bug report; obviously that cheap development board has 
some issues.

Original comment by dmk...@gmail.com on 12 Sep 2014 at 10:16

GoogleCodeExporter commented 9 years ago
Thanks for clearing that up. The system bootloader uses the internal 8MHz 
oscillator (HSI), so I don't understand why the external 32kHz would make a 
difference.

Original comment by lists.to...@gmail.com on 12 Sep 2014 at 11:12