renode-infrastructure
renode-infrastructure copied to clipboard
added new stm32f4 Flash Interface Register
I added a new peripheral, the so called Flash Interface Register. I only implemented a few registers, in particular it supports:
- lock/unlock mechanism with keys
- sector erase mechanism

Hi @thegabriele97, thanks for your contribution. In the meantime we've added support for this model to upstream Renode, please take a look at: https://github.com/renode/renode-infrastructure/blob/master/src/Emulator/Peripherals/Peripherals/MTD/STM32F4_FlashController.cs.
I'm closing this PR, but feel free to open a new one if you want to contribute any missing functionality.
I've just noticed that we lack the erase functionality in the upstream model - we plan to add it.