cancel
Showing results for 
Search instead for 
Did you mean: 

I am using the STM8AL3188 and am unable to read or write flash beyond 32K, even though the device has 64K flash. This occurs at address 0x10000 (flash starts at address 0x8000 making it exactly halfway). I am using IAR.

Steven Shenker
Associate
Posted on April 06, 2018 at 10:07

I am using the STM8AL3188 and am unable to read or write flash beyond 32K, even though the device has 64K flash. This occurs at address 0x10000 (flash starts at address 0x8000 making it exactly halfway). I am using IAR. I managed to fix the flash write issue by editing the stm8l15x_flash.h file and moving the &sharpif defined STM8AL31_L_MD to the high density section. This appears to be a bug in the HAL file library for this device. I am now having an issue where I cannot read the flash correctly after address 0x10000. I get random/garbage values and I am not sure what else to try? Any help appreciated!

#flash-error #stm8 #stm8al3188 #flash-read-and-write
2 REPLIES 2
Philipp Krause
Senior II

Did you try to write / read using different software, e.g. stm8flash?

Philipp

nestor
Associate II

What code model are you using?

Néstor