pavelrevak / pystlink

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

Support for STM32G0B1RET6 #27

Open ksbboxx opened 2 years ago

ksbboxx commented 2 years ago

Hi, I have added the following lines in the DEVICES array in stm32devices.py under 'part_no': 0xc60 for the STM32G0B1RET6 support and it seems that it is working for me. I am not quite sure about the settings I choose for this part number, could you please double-check and let me know if I missed anything? Specifically, I cannot find information about the flash size register address (0x1fff75e0), the flash driver STM32L4 and the erase sizes:

'part_no': 0xc60, 'core': 'CortexM0+', 'idcode_reg': 0x40015800, 'devices': [ { 'dev_id': 0x467, 'flash_size_reg': 0x1fff75e0, 'flash_driver': 'STM32L4', 'erase_sizes': (2 * 1024, ), 'devices': [ {'type': 'STM32G0B1', 'flash_size': 512, 'sram_size': 144, 'eeprom_size': 0, 'freq': 64}, ], }, ],