revoxhere / duino-coin

ᕲ Duino-Coin is a coin that can be mined with almost everything, including Arduino boards.
https://duinocoin.com
MIT License
1.08k stars 512 forks source link

STM8S support #1183

Closed fallen90 closed 2 years ago

fallen90 commented 2 years ago

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.

BBS215 commented 2 years ago

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

LDarki commented 2 years ago

I`ll close this issue