Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New SDCC version #13

Closed
ludiazv opened this issue Sep 13, 2019 · 5 comments
Closed

New SDCC version #13

ludiazv opened this issue Sep 13, 2019 · 5 comments

Comments

@ludiazv
Copy link

ludiazv commented Sep 13, 2019

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
Copy link
Contributor

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
Copy link
Contributor

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

@gicking
Copy link

gicking commented Mar 6, 2021

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

@gicking
Copy link

gicking commented Mar 8, 2021

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:

  • New z80n port for the Spectrum Next CPU (a Z80 variant).
  • Much better register allocation in the gbz80 backend.
  • Workarounds for Rabbit wait state bugs in the r2k backend
  • New r2ka port to better support Rabbit 2000A, 2000B, 2000C, 3000.
  • Default crt0 and --data-loc for Rabbits suitable for typical Rabbit hardware configurations, such as the RCMs.
  • Many improvements in code generation for z80 and related ports.
  • Rabbit register definition headers for Rabbit 2000, 2000A, 2000B, 2000C, 3000, 3000A.
  • C23 digit separators.

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
Copy link
Member

valeros commented Mar 23, 2021

Resolved in 4725bcd. Please retest with the upstream version:

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

@valeros valeros closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants