duino-coin icon indicating copy to clipboard operation
duino-coin copied to clipboard

STM8S support

Open fallen90 opened this issue 4 years ago • 2 comments

I've been wondering if it's possible to have support for STM8S boards since STM32 is already supported. Not sure what would be the problem on supporting these boards.

I had tried using the existing STM32 code but had some problems with ArduinoUniqueId, then I had removed the code for it (just returns some static uniqueId when called) but had ran to issues with compiled code is too large for the 8KB flash, I could have refactored the code to use the existing sha1 implementation that exists on the board, but had some problems coding in SDCC.

fallen90 avatar Dec 28 '21 06:12 fallen90

Besides the large size of the firmware, there is also a problem with the byte order. AVR and STM32 use little endian, and STM8 - big endian. Take a look here: https://github.com/BBS215/STM8_DUCO_miner

BBS215 avatar Jan 03 '22 16:01 BBS215

I`ll close this issue

LDarki avatar Jan 29 '22 19:01 LDarki