Jump to content

Search the Community

Showing results for tags 'tiva-c'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 10 results

  1. Hello, Is it possible to use the XDS110 debug probe with Energia? And if so, how? Best regards, -C.
  2. This snippet does not give the expected results (and I know I should be checking the return code of sscanf()...), the string contains text like "60.0" when asked for a frequency. float request = 50.0f; sscanf(string, "%f", &request); // having trouble since energia version 1.6.10E18 with floats... Under version energia_0101E0015, request becomes whatever float value is in the string (say 60.0), but under energia_1.6.10E18 request remains at the initialized value. Same with this snippet: sprintf(timecodeBuffer, "f# %04d ft %.03f %02d:%02d:%02d.%02d.%03d Squid_%c_[%02d:%02d:%02d.%02d] delta:%.03f \n", frameNumber, frameTime, computeHours, computeMinutes, computeSeconds, computeFrames, computeMilliSecs & 0x0000ffff, live, timecodeHours, timecodeMinutes, timecodeSeconds, timecodeFrames, timeDiff); Under version energia_0101E0015 it prints everything fine, but under energia_1.6.10E18 the floats are printed as a blank space. Computing with float values is not a problem. My include section looks like this: #include <Ethernet.h> #include <EthernetUdp.h> #include "inc/hw_ints.h" // our TM4C1294NCPDT is in the SnowFlake interrupt class #include "inc/hw_memmap.h" #include "driverlib/pin_map.h" #include "driverlib/sysctl.h" #include "driverlib/pwm.h" #include <string.h> #include <stdio.h> #include "Wire.h" // using the I2C bus for display My setup: Tiva-C connected EK-TM4C1294XL, 120 MHz tmc129 I tried upgrading to version 1.6.10E18. I really like the new board chooser and it downloaded the appropriate drivers and build tool chain. I think however the problem originated with the different tool chain. My OS is Kubuntu 18.04 LTS (with 32 bit libraries licb6:i386 for the lm4f tool chain to work under 64-bit ubuntu)
  3. JStat60

    Noise in ADC

    Hi, I have a non-profit (Smoky Mountain Scientific, smokymtsci.com) that develops and sells low cost instruments for science education. One of our instruments incorporates a Tiva-C launchpad that outputs a pwm voltage and measures voltage and current passed in electrochemical reactions. I recently purchased a fairly large batch of Tiva launchpads from Mouser and I am having trouble with noise in the analog read channels for about 1/4th of the boards. We have been building and selling these instruments for a couple of years now and have never had this problem before. To test the boards, I send a pwm signal through a simple low pass filter (a resistor and a capacitor) then read the output on two channels (A11 and A8). The attached figures show examples of output from a good (file Board46) and a bad (file Board37) boards as displayed on our user interface. This seems to be a hardware problem and I dont know how to go about resolving it. Any recommendations? Thanks, Jack
  4. Hello, After installing E18, and getting the TivaC board package with packages manager, when I try to upload a program into the Tiva-C board I get the following error: fork/exec /home/can/.energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++: no such file or directory Error compiling for board LaunchPad (Tiva C) w/ tm4c123 (80MHz). If I go the the mentioned directory, I can see that the arm-none-eabi-g++ executable exists by: $ file arm-none-eabi-g++ arm-none-eabi-g++: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped I have no /lib/ld-linux.so.2 on my system. It used to be we needed to install a package named ia32libs on ubuntu systems. But unfortunately on ubuntu 16.04 64, I could not find this package. And here is my uname -a Linux daredevil 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Any ideas / recomendations / help greatly appreciated, Best, C.
  5. Hy, I worked on a source half a year ago with an older Energia (I do not know exactly which one.). I was able to acces UartIntHandler and UartIntHandler2() functions directly. As I remember I do not change the content of Energia under OSX. Now I try to modify 1-2 things for example in the startup_gcc.c or hardwareserial.c, but the are not working. Can you help me how could I reach the UART interrupt handlers from Energia? (The setup of UART module worked on CCS or IAR before.) Can I use something like attachinterrupt()?
  6. Hello All, Is there any sample program for using the CAN with Stellaris/Tiva-C with energia IDE ? I could see D:\energia-0101E0017\hardware\lm4f\cores\lm4f\driverlib can.c and can.h files. How to include this .h files and have a program which transmit some data Thanks for your support Dino
  7. I am attempting to construct a simple library for creating alarm objects, basically just the days of the week, an hour, and a minute packaged together in an object for easy management. I have attached a zip of the library, (feel free to use any code that might be useful!) but I am having an issue where toggling the days of the week alters the values of the integer hour and minute values. The days of the week are stored as an array of seven booleans, but I don't think that I am making a fencepost error somewhere... I tried the various days of the week, and figured out that days 0-3 (Sun-Wed) alter the hour value, while days 4-6 (Thur-Sat) alter the minute value. Based on that, and the way that the numbers change (roughly multiples of 8) I think that the array of booleans is being written right over the top of the integer values in memory (or vice versa). Am I configuring something in my library wrong, or instantiating the object incorrectly, maybe? I have also attached a zip of some code demonstrating the problem by printing the values through serial. MTAlarm.zip Zipped Library Code problem_demo.zip Zipped demo code (Note: toggling commands are commented out, so out of the box it should function roughly as anticipated.) Thanks in advance! Mike
  8. Hello, I managed to port the MPU9150Lib at https://github.com/richards-tech/MPU9150Lib to Energia. I had to make few changes in defines in dmp code, and the provided CalLib, and now it compiles for MSP430G2553, MSP430F5xx, Stellaris Launchpad, and the Tiva-C series (TM4C123) launchpad. CalLib writes to either flash or eeprom depending on architecture. It has failed for MSP430G2553, due to code size. It compiles for MSP430F5xx although I dont have a board yet to test. I have not tested the stellaris launchpad but I suspect it works, it does WORK on the Tiva-C series launchpad. Here is the picture of the setup: On one side I have an arduino nano v3 connected to a MPU9150 module (The cheap GY 9150) and on the other side I have a Tiva-C series launchpad with a sensorhub booster pack. (that contains a MPU9150 as well) and I have hooked up a usbee logic analyzer to i2c (sda, scl) of both mcus For some reason, it is running slow on the TM4C123 then the arduino. It is supposed to work much faster on the Tiva-C launchpad, but on the contrary it does not. I measured mpu.read() times, and on Energia it wont go less then 50ms, where on arduino I have tested up to 200hz sensor read rates with no problem. Here are two screenshots from the logic analyzer: The top two signals are from arduino sda scl, the bottom is the sda(3) scl(3) of the Tiva-C The MPU9150 is configured to update at 20Hz for both systems. however the i2c bus activity seems quite different. I am thinking there might be a problem with the i2c speed on Energia, or that it works different. And finally here is my code: MPU9150LibEnergia.rar I will be posting all the code on github later - for now I made a zip file for all. Best Regards, Can
  9. Hello! This is my first time posting, so please let me know if I missed anything! I am attempting to use the TivaWare library to modify the clock speed of my Tiva-C (EK-TM4C123GXL) microcontroller. Eventually I plan to use this to construct an alarm clock, with the timing based off of the accurate crystal on the Tiva-C. When I attempt to compile the following code (largely based off of a library written by Yannick and Graham Fountain) I receive a long list of errors, also included below. Code: #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "driverlib/timer.h" //INITIALIZE GLOBAL VARIABLES int RTCsec = 0; int RTCmin = 0; int RTChr = 0; void setup() { //INITIALIZE TIMER AND INTERRUPTS SysCtlClockFreqSet(SYSCTL_OSC_INT|SYSCTL_USE_PLL|SYSCTL_CFG_VCO_320, 40000000);//SET system clock to 40 MHz TimerIntRegister(TIMER0_BASE, TIMER_A, Timer0Isr); // Register ISR TimerIntEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT); //Enable ISR Serial.begin(9600); } void loop() { if (RTCsec >= 60) { RTCsec=0; RTCmin++; }; if (RTCmin >= 60) { RTCmin=0; RTChr++; }; if (RTChr >= 24) { RTChr=0; }; //WRITE TIME TO COMPUTER Serial.print("Hour:"); Serial.print(RTChr); Serial.print("\t\t"); Serial.print("Minute:"); Serial.print(RTCmin); Serial.print("\t"); Serial.print("Second:"); Serial.print(RTCsec); Serial.print("\n"); } void Timer0Isr(void) { TimerIntClear(TIMER0_BASE, TIMER_TIMA_TIMEOUT); // Clear the timer interrupt RTCsec++; }//END CODE Errors: ...(There is a long list of C:\... errors above this that I omitted for the sake of brevity)... C:\Users\Mike\General\Computer Manuals, tools, and files\energia-0101E0012-windows\energia-0101E0012\hardware\lm4f\cores\lm4f/driverlib/timer.h:278:30: error: variable or field 'TimerDMAEventSet' declared void C:\Users\Mike\General\Computer Manuals, tools, and files\energia-0101E0012-windows\energia-0101E0012\hardware\lm4f\cores\lm4f/driverlib/timer.h:278:30: error: 'uint32_t' was not declared in this scope C:\Users\Mike\General\Computer Manuals, tools, and files\energia-0101E0012-windows\energia-0101E0012\hardware\lm4f\cores\lm4f/driverlib/timer.h:278:49: error: 'uint32_t' was not declared in this scope InterruptTimerAttemptFail.ino: In function 'void setup()': InterruptTimerAttemptFail.ino:13:80: error: 'SysCtlClockFreqSet' was not declared in this scope InterruptTimerAttemptFail.ino:14:51: error: 'TimerIntRegister' was not declared in this scope InterruptTimerAttemptFail.ino:15:49: error: 'TimerIntEnable' was not declared in this scope InterruptTimerAttemptFail.ino: In function 'void Timer0Isr()': InterruptTimerAttemptFail.ino:46:48: error: 'TimerIntClear' was not declared in this scope END ERRORS I checked in my energia install folder, and all of the commands I used are listed in the .h file of the libraries I included. All help is appreciated, and thanks in advance!
  10. I solder on spare pcb a pcf8563 acording to diagram: PCF is connected to I2c 3 (PD_0 and PD_1). Tiva-C is flashed with code: #include <Wire.h> #include <RTClib.h> RTC_PCF8563 RTC; void setup () { Serial.begin(57600); Wire.setModule(3); Wire.begin(); RTC.begin(); // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } void loop () { DateTime now = RTC.now(); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.print(now.day(), DEC); Serial.print(' '); Serial.print(now.hour(), DEC); Serial.print(':'); Serial.print(now.minute(), DEC); Serial.print(':'); Serial.print(now.second(), DEC); Serial.println(); delay(3000); } In terminal I got: 2013/12/29 17:45:31 2013/12/29 17:45:34 2032/11/17 5:37:13 2013/12/29 17:45:40 2013/12/29 17:45:43 2052/1/17 5:46:13 2013/12/29 17:45:49 2052/11/17 5:52:13 2052/11/17 5:55:52 2052/19/17 5:58:52 2013/12/29 17:46:1 2013/12/29 17:46:4 2012/1/17 6:7:13 2013/12/29 17:46:10 2012/11/17 6:13:13 2012/11/17 6:16:12 2013/12/29 17:46:19 2013/12/29 17:46:22 2032/1/17 6:25:13 2032/9/17 6:28:32 2013/12/29 17:46:31 2013/12/29 17:46:34 2032/11/17 6:37:13 2013/12/29 17:46:40 2052/1/17 6:43:13 2013/12/29 17:46:46 What is the cause of such problems? PCF not keep proper time. The same PCB works on Arduino and the same code and libraries.
×
×
  • Create New...