Code Monkey home page Code Monkey logo

tiva-c's Introduction

Tiva C

A ready-made repository for writing, compiling and flashing code for the TI Tiva C.

Should work on most Linux and Mac environments.

Requirements

Usage

Assuming you're using the Tiva C Connected Launchpad dev board (ek-tm4c1294xl):

$ cd boards/ek-tm4c1294xl/blinky
$ make
$ lm4flash gcc/blinky.bin
# Great success!

tiva-c's People

Contributors

yuvadm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiva-c's Issues

Not able to use assembly inline functions of usb_stick_updater.c in Keil

I have implemented the usb_stick_updater.c example for tm4c1294kcpdt using Keil. The new application seems to be updated successfully in the flash at another location. But the inline assembly code is not working.
__asm void CallApplication(uint_fast32_t ui32StartAddr)
{
//
// Set the vector table address to the beginning of the application.
//
ldr r1, =0xe000ed08
str r0, [r1]

//
// Load the stack pointer from the application's vector table.
//
ldr     r1, [r0]
mov     sp, r1

//
// Load the initial PC from the application's vector table and branch to
// the application's entry point.
//
ldr     r0, [r0, #4]
bx      r0

}
When CallApplication() is called. It again jumps to this bootloader instead of going to the new application. Does it require to jump to privileged mode before changing values of sp and pc?

tHIDInstance

the tHIDInstance is defined totaly diffrent in usbdhid.h and in usbhhid.h
how do you resolve it?
I have a project that use both device and host.

using TIVA C tm4c123gh6pm ADC with Comparator and uDMA

I have one pulse as shown in fig. Pulse width is 10 to 25 us. But next pulse will come after 100 ms.

I need to find peak of each pulse. I have reference peak value. I need to generate error send to DAC module.
1

In my current code,

If I take one sample and check whether peak or not, and calculate error send to DAC,

this code takes 35 us time.That means pulse is gone.

How should I tackle this situation

2

I have one solution, I want suggestion from you , whether it is feasible or not??

ADC0 and ADC1- same pulse as input

ADC0-Comparator

ADC1-uDMA module

I will configure my ADC0 module for digital comparator for HIGH band in always mode.

I will start my uDMA module to store ADC1 samples until my comparator output is High.

Once comparator output is LOW, I will start find peak out of stored samples & generate error send to DAC module.

C++ support

How can I add .cpp files support? That would be awesome. :)

Add more boards

Support for other Tiva models is available as well (including with addon shields), but for simplicity's sake they are not included in the repository. They can be added upon request.

How to create a project with Code Composer Studio on Ubuntu

Hi,

these are my first steps with the Tiva™ C Series Connected Launchpad (EK-TM4C1294XL) and ARM generally. I can build the blinky example and flash it to the board and it works great. But I had problems to create a new project in CCS with the GNU Toolchain and your library as include. I think CCS does no create the makefile correctly. If I use your Makefile and modify it it works, but it is difficult to find the right files for the linker and so on. Is there a How To for creating a new project in a workspace different from the examples folder of your library and automatically creating a correct Makefile? And how can I use the debugger?

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.