pavelrevak / pystlink

Python tool for flashing and debugging STM32 devices using ST-LINK/V2
MIT License
218 stars 59 forks source link

Features #13

Closed UweBonnes closed 5 years ago

UweBonnes commented 5 years ago
UweBonnes commented 5 years ago

Pavel Revak writes:

L0 or G0 ?

This is really STM32G0.

  • 'erase_sizes': (2*1024, ),

spaces around *

Done. Many mor entries miss that space!

do not use backslash . put right side into brackets instead. Done.

Cheers. -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

pavelrevak commented 5 years ago

if I trying to flash 2MB .bin file at once:

./pystlink flash:erase:verify:test.bin 
DEVICE: ST-Link/V2-1 V2J29M18
SUPPLY: 3.24V
CORE:   CortexM7
MCU:    STM32H743xI/STM32H753xI
FLASH:  2048KB
SRAM:   1024KB
Loaded 2097152 Bytes from test.bin file
*** Parameter error: name 'clear_sr' is not defined ***
UweBonnes commented 5 years ago

I removed all "\n" from exceptions . Now I use brackets instead of line continuation. clear_sr() is now self.clear_sr()

On first programming H7, I see the error status register error 0x2010001 meaning Bit 25 SNECCERR1: Bank 1 single correction error flag I do not see it with next flashing. Maybe some artefact from factory testing?

pavelrevak commented 5 years ago

Ok, I taking your PR, it has very important features, I will fix them later, thanks a lot, great job!

UweBonnes commented 5 years ago

What still needs fixing?