platformio / platform-ststm8

ST STM8: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm8
Apache License 2.0
41 stars 26 forks source link

New SDCC version #13

Closed ludiazv closed 3 years ago

ludiazv commented 5 years ago

Some months ago SDCC team realeased a new version 3.9 that include serveral improvements for stm8 platform. Here are the release notes: https://sourceforge.net/p/sdcc/news/2019/04/small-device-c-compiler-390-released/

Pio now uses 3.8 version. I think it could be a good idea to update the platform with this new version.

Regerds,

maxgerhardt commented 3 years ago

Update: There's now SDCC v4.0 and it even reduces firmware sizes in the SPL and Blinky firmwares :)

Also some users reported that it doesn't work without the SDCC v4.0 toolchain (https://community.platformio.org/t/error-309-arduino-fade-all-pins-for-the-platform-st-stm8/13690/20?u=maxgerhardt).

nerocide commented 3 years ago

I can confirm, i had to use sdcc 4.0 ;) thanks @maxgerhardt

gicking commented 3 years ago

AFAIK the 4.1 release is already in release candidate status. Maybe you should wait a few more days...

gicking commented 3 years ago

Update 2020-03-08: information from the SDCC project

The official release for SDCC 4.1.0 is available in our SourceForge File release system: https://sourceforge.net/projects/sdcc/files/

In addition to the source package, binaries are available for 32- and 64-bit Windows, 64-bit macOS, and x86_64 GNU/Linux.

In addition to various bug fixes, notable features added since the 4.0.0 release are:

A full list of changes can be found in the ChangeLog: https://sourceforge.net/p/sdcc/code/HEAD/tree/tags/sdcc-4.1.0/sdcc/ChangeLog

valeros commented 3 years ago

Resolved in https://github.com/platformio/platform-ststm8/commit/4725bcd8908649cffcbe052e03a4ffaacc3d6764. Please retest with the upstream version:

[env:test]
platform = https://github.com/platformio/platform-ststm8.git
framework = ...
board = ...