xForth icon indicating copy to clipboard operation
xForth copied to clipboard

Test STM8S207RBT6

Open larsbrinkhoff opened this issue 6 years ago • 5 comments

I got a STM8S207RBT6 board. It was recommended by @TG9541, thanks! It's a performance STM8S with plenty of room: 128K flash, 6K RAM, and 2K EEPROM.

larsbrinkhoff avatar Nov 28 '19 06:11 larsbrinkhoff

Start by checking the old STM8S103 test program. There was some bit rot. With that fixed, I can program the device and get a blinking LED.

However, with the 207 part, I get this from stm8flash. It's likely some addresses have to be adjusted.

Determine FLASH area
Writing Intel hex file 562 bytes at 0x8000... Tries exceeded

larsbrinkhoff avatar Nov 28 '19 07:11 larsbrinkhoff

Reading the flash contents seems to work fine though. Memory protection?

https://github.com/TG9541/stm8ef/wiki/STM8S-Programming#resetting-stm8s-devices-to-factory-defaults

larsbrinkhoff avatar Nov 28 '19 07:11 larsbrinkhoff

I read out the option bytes and they are all 00 which ought to be good.

larsbrinkhoff avatar Nov 28 '19 07:11 larsbrinkhoff

Tested writing "00 00 ff 00 ff 00 ff 00 ff 00 ff" to option bytes as pointed out in URL above and elsewhere, and now I can write to flash.

larsbrinkhoff avatar Nov 28 '19 21:11 larsbrinkhoff

Hi Lars, just noticed the @ - good that it works!

TG9541 avatar Nov 30 '19 18:11 TG9541