platformio / platform-titiva

TI TIVA: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/titiva
Apache License 2.0
10 stars 10 forks source link

Upgrade Energia Version #13

Open geniass opened 3 years ago

geniass commented 3 years ago

Please can we upgrade Energia to at least 1.0.4 to address I2C bugs as discussed here: https://github.com/energia/tivac-core/issues/41

I haven't been able to figure out how to do this exactly since the energia git repo obviously does not include a package.json file.

maxgerhardt commented 3 years ago

I've forked the core (master branch) and added PlatformIO's package.json to it with the version upgrade. You can use a platformio.ini along the lines of

[env:lptm4c1230c3pm]
platform = titiva
board = lptm4c1230c3pm
framework = arduino
; upgrade packages
platform_packages =
        framework-energiativa@https://github.com/maxgerhardt/tivac-core.git
        platformio/toolchain-gccarmnoneeabi@~1.80301.0

to get the core and toolchain upgrade.

A use case is e.g. per community topic.

geniass commented 3 years ago

I got something similar working, also figured out that the gcc version is being restricted to v4 for some reason - not sure what this change would break).

My problem now is hanging on this line in TwoWire::sendTxData:

    while(!(HWREG(MASTER_BASE + I2C_O_MRIS) & I2C_MRIS_RIS));

Will have to investigate some more at some point.

Also does anyone have any idea how to get framework-energiativa upgraded (instead of having to fork the repo and add the package.json file)?