From 080776057cdcc107b2cd971a39479877b6164516 Mon Sep 17 00:00:00 2001 From: Thales Fragoso Date: Wed, 19 May 2021 22:42:10 -0300 Subject: [PATCH] Add FLASH to parse.py --- parse.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/parse.py b/parse.py index 408119a..e238b70 100644 --- a/parse.py +++ b/parse.py @@ -422,6 +422,13 @@ def parse_chips(): 'block': 'exti_v1/EXTI', }) + # FLASH is not in the cubedb XMLs + if addr := h['defines'].get('FLASH_R_BASE'): + peris['FLASH'] = OrderedDict({ + 'address': addr, + 'kind': 'FLASH:' + chip_name[:7] + '_flash_v1_0', + }) + chip['peripherals'] = peris with open('data/chips/'+chip_name+'.yaml', 'w') as f: