Andy4495 / TI_Platform_Cores_For_Arduino

Replace Energia with Arduino. Use the Arduino IDE or CLI with Texas Instruments processors in the MSP430, MSP432, and Tiva families using the Arduino Boards Manager.
Other
22 stars 5 forks source link

Usage in PlatformIO #3

Closed chemmex closed 10 months ago

chemmex commented 11 months ago

Can these cores be used with Platformio?

Andy4495 commented 11 months ago

I don't know; I don't use platformIO and haven't tested them. However, if platformIO uses other cores unmodified, then these should also work.

You can always try to load them and see. If you do, let me know and I'll update the README.

rei-vilo commented 11 months ago

Platformio already supports the TivaC TM4C123 and TM4C129.

See https://registry.platformio.org/platforms/platformio/titiva

About the MSP432 family, see my comment at https://github.com/energia/msp432r-core/issues/25#issuecomment-1676268211

chemmex commented 11 months ago

Thanks for your comments. Actually, I just meant using msp430_elf_GCC package in the Platformio as I prefer it over Arduino/Energia IDE. Eventually I found out that simple sketch for MSP430G2553 which uses standard SoftSerial lib cannot fit 512 bytes of RAM when compiled with msp430_elf_GCC, so I will revert to the old compiler and try to adjust the lib I use.

rei-vilo commented 10 months ago

Platformio lists all these TI MSP430 boards but I don't know which tool-chain there are using.

For a very compact binary code, I am still using [Energia release 0101E0012](https://[energia.nu/download/](https://energia.nu/download/).

Obviously, I am not using the Arduino / Energia IDE, but Visual Studio Code with emCode.

Andy4495 commented 10 months ago

Since my focus is on Arduino compatibility and it appears that you are taking an alternate route on the original request, I am going to close this.

chemmex commented 10 months ago

I have found a possible way to use msp430-elf-gcc 9.2.0.50 compler and MSP430 2.0.12 board package with Platformio on a per-project basis: I had to download the toolchain and board packages using links from this file, unpack them and add respective package.json files (I used platformio files of standard packages as an example).

Then I added the platform_packages = option into the project's platformio.ini file with links to local files:

[env:lpmsp430fr5969]
platform = timsp430
board = lpmsp430fr5969
framework = arduino
platform_packages = 
            framework-energiamsp430-elf@file:///home/chemmex/Downloads/framework-energiamsp430-elf
            toolchain-timsp430-elf@file:///home/chemmex/Downloads/toolchain-timsp430-elf
lib_deps = 
            https://github.com/adafruit/Adafruit_NeoPixel

Then Platformio compiled the project using msp430-elf-gcc.

More info can be found here

Andy4495 commented 10 months ago

Great - I'm glad you were able to get this working. I added a note in my README with this info in case somebody else comes across this. Thanks.