Implementing EEPROM emulation to STM32H743ZI2 nucleo board. To sum up, I want to program my FLASH memory by halfword(16-bit) chunk. Please click for further details.
I am trying to program my flash halfword per halfword. There is no HAL library to achieve this work so I am working with registers.
After erasing the specific sector that I want to write, I am trying to change the control register 1 with below code.
Which is 0101 0010 in binary (You can check The CR1 register from the ref manual for further details).
While debugging, I can see that FLASH->CR1 register goes 0x12 in HEX, 0001 0010 in binary. I cant set 6th bit for a reason that I can not understand. I tried to change bits one by one too. Still cant set the FW1(6th) bit. Thats what I am asking. I cant program my flash with halfword chunks. Any application code, any help will be appreciated.
I can write with hal library(256 bits). I am trying to say here that there is no problem except mentioned situation above.
eymen
