Giter Club home page Giter Club logo

platform-titiva's Introduction

TI TIVA: development platform for PlatformIO

Build Status

Texas Instruments TM4C12x MCUs offer the industrys most popular ARM Cortex-M4 core with scalable memory and package options, unparalleled connectivity peripherals, advanced application functions, industry-leading analog integration, and extensive software solutions.

  • Home (home page in the PlatformIO Registry)
  • Documentation (advanced usage, packages, boards, frameworks, etc.)

Usage

  1. Install PlatformIO
  2. Create PlatformIO project and configure a platform option in platformio.ini file:

Stable version

[env:stable]
platform = titiva
board = ...
...

Development version

[env:development]
platform = https://github.com/platformio/platform-titiva.git
board = ...
...

Project Examples

Configuration

Please navigate to documentation.

platform-titiva's People

Contributors

alighorab avatar ivankravets avatar themdev avatar valeros avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

platform-titiva's Issues

WARNING: board/ek-tm4c123gxl.cfg is deprecated

I get the following OpenOCD error when attempting upload on the tm4c123 board. I've tried both the stable and development versions. Any workaround would be appreciated.

Configuring upload protocol...
AVAILABLE: ti-icdi
CURRENT: upload_protocol = ti-icdi
Uploading .pio\build\lptm4c123gh6pm\firmware.bin
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-09:29)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

WARNING: board/ek-tm4c123gxl.cfg is deprecated, please switch to board/ti_ek-tm4c123gxl.cfg
Error: open failed
in procedure 'program'
** OpenOCD init failed **
shutdown command invoked

*** [upload] Error 1

This is my platformio.ini

[env:lptm4c123gh6pm]
platform = https://github.com/platformio/platform-titiva.git
board = lptm4c123gh6pm
framework = arduino
monitor_speed = 115200
debug_tool = ti-icdi
upload_protocol = ti-icdi

tool-openocd not being installed for upload

This package is not being automatically installed (when not present) when trying to upload to the TI LaunchPad (Tiva C) w/ tm4c123 (80MHz) - lptm4c1230c3pm - hence causing the upload to fail.

"tool-openocd": {
"type": "debugger",
"optional": true,
"version": "~2.1000.0"
}

with platformio.ini consisting of

[env:lptm4c1230c3pm]
platform = titiva
board = lptm4c1230c3pm
framework = energia

openocd is found after running platformio platform install titiva --with-package tool-openocd

Applies to stable and beta.

Forum reference: https://community.platformio.org/t/ti-launchpad-tiva-c-upload-error/8407

Upgrade Energia Version

Please can we upgrade Energia to at least 1.0.4 to address I2C bugs as discussed here: energia/tivac-core#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.

SRST Error & OpenOCD Warning

Hey yall,

I'm having a bit of an issue with flashing my TM4C123 board. The first is the warning from OpenOCD to switch to board/ti_ek-tm4c123gxl.cfg. Is there a way I can configure that in platformio? Or is that fixed in a newer release?

Second, I get a bunch of Error: SRST error but the board does get flashed. I can even launch the debugger and step through the code. Is this error something that can be easily fixed on my end?

platform.ini File

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:lptm4c1230c3pm]
platform = titiva
board = lptm4c1230c3pm
framework = libopencm3
debug_tool = ti-icdi
upload_protocol = ti-icdi

Terminal Output

> Executing task: pio run --target upload <

Processing lptm4c1230c3pm (platform: titiva; board: lptm4c1230c3pm; framework: libopencm3)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/titiva/lptm4c1230c3pm.html
PLATFORM: TI TIVA (3.0.0) > TI LaunchPad (Tiva C) w/ tm4c123 (80MHz)
HARDWARE: LPTM4C1230C3PM 80MHz, 32KB RAM, 256KB Flash
DEBUG: Current (ti-icdi) On-board (ti-icdi)
PACKAGES: 
 - framework-libopencm3 1.10000.200730 (1.0.0) 
 - tool-openocd 2.1000.200630 (10.0) 
 - toolchain-gccarmnoneeabi 1.40804.0 (4.8.4)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio/build/lptm4c1230c3pm/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 0 bytes from 32768 bytes)
Flash: [          ]   0.3% (used 784 bytes from 262144 bytes)
Configuring upload protocol...
AVAILABLE: ti-icdi
CURRENT: upload_protocol = ti-icdi
Uploading .pio/build/lptm4c1230c3pm/firmware.bin
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-12:31)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

WARNING: board/ek-tm4c123gxl.cfg is deprecated, please switch to board/ti_ek-tm4c123gxl.cfg
Error: SRST error
Error: SRST error
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x0000078c msp: 0x20008000
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
Error: SRST error
shutdown command invoked

Upload error using EK-TM4C123GXL evaluation board

I have been trying the Blink LED example (libopencm3). I have modified the platformio.ini in order to have only the lptm4c1230c3pmenv, i.e. this file only has

[env:lptm4c1230c3pm]
platform = titiva
framework = libopencm3
board = lptm4c1230c3pm

The project builds OK. When upload is executed, I get this output in terminal:

> Executing task in folder libopencm3-blink: platformio run --target upload --target monitor --environment lptm4c1230c3pm <

Processing lptm4c1230c3pm (platform: titiva; framework: libopencm3; board: lptm4c1230c3pm)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/titiva/lptm4c1230c3pm.html
PLATFORM: TI TIVA (3.0.0) > TI LaunchPad (Tiva C) w/ tm4c123 (80MHz)
HARDWARE: LPTM4C1230C3PM 80MHz, 32KB RAM, 256KB Flash
DEBUG: Current (ti-icdi) On-board (ti-icdi)
PACKAGES: 
 - framework-libopencm3 1.10000.200730 (1.0.0) 
 - tool-openocd 2.1000.200630 (10.0) 
 - toolchain-gccarmnoneeabi 1.40804.0 (4.8.4)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio/build/lptm4c1230c3pm/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 12 bytes from 32768 bytes)
Flash: [          ]   0.9% (used 2340 bytes from 262144 bytes)
Configuring upload protocol...
Uploading .pio/build/lptm4c1230c3pm/firmware.bin
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-09:27)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
debug_level: 1

Error: SRST error
Error: SRST error
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000006d8 msp: 0x20008000
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
Error: SRST error
Error: memory read failed: 0x7
Error: memory write failed: 0x7
in procedure 'program'
*** [upload] Error 1
================================================================================= [FAILED] Took 1.31 seconds =================================================================================
The terminal process "platformio 'run', '--target', 'upload', '--target', 'monitor', '--environment', 'lptm4c1230c3pm'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

I don't known what the errors messages mean. The TM4C is flashed OK and the example program runs successfully (LED blinks on three colors).

Have I missed something? There is a workaround for this? Please let me know if you need something else. Thanks.

Compiling uses wrong linker script with libopencm3 framework

See thread: thread

This goes over my head, but when building, the compiler seems to be using the incorrect linker script. According to the board file, it should use

"ldscript": "lm4fcpp_blizzard.ld"

but in reality it uses:

"~/.platformio/packages/framework-libopencm3/lib/lm4f/libopencm3_lm4f.ld"

The issue is that libopencm3_lm4f.ld does not define memory regions. The compiler will build and upload the code, but the processor will go into a blocking handler and sit in a while(1) loop.

I fixed the issue by defining the memory regions in libopencm3_lm4f.ld.

I was told by PlatformIO's maxgerhardt to open an issue here.

undefined reference to `QEIFilterEnable'

HI.

I am using tm4c123 to develop a project with encoder function. I like to use platformIO very much. I chose the arduino framework in PlatformIO, but the compiler told me there was an error,

undefined reference to QEIFilterEnable

I checked the qei.h file and found that this function is not available, but my CCS IDE can compile normally,

I found that the driverlib version of platform-tiva is very low. I don't know whether the platform-tiva is still maintained. Can I upgrade the driverlib manually,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.