Jump to content

Rhys

Members
  • Content Count

    74
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Rhys got a reaction from spirilis in Energia Tiva USB support   
    I should be able to knock out the wrapper in a few weeks (if I get time to work on it) along with instructions for how to integrate it and usblib into Energia until such time as TI decides to move the usblib to a BSD license.  TI's usblib is relatively feature complete as far as I'm concerned.  It's not even all that terribly difficult to use if you want pretty decent controls over your device.  However, definitely not friendly to use for the Arduino type crowd.  I just didn't see the point in reinventing the entire wheel when I could just put training wheels on it lol....  I have a reasonable understanding of the USB HID portion of usblib, and a couple of new examples in the latest Tivaware release helped fill in a few gaps.  CDC I haven't used yet, but looks pretty straight forward.  I should be able to cherry pick the bits I need out of the USB_CDC example code.  Mass Storage is a shot in the dark if I decide to even look at it.  I may leave that for some other enterprising individual who has use for it to implement.
     
    The partial header file I posted was all I've had time for yet lol....  Although that does allow me solicit comments and suggestions on the user end of the library and adjust things before starting on actual code.  I find it best if I start at the top and work my way down
     
    BTW, I like the current library call names I decided on, but the internal variable names are simply place holders for readabilities sake and are by no means what I plan on using....  Once I get the header a little more polished, I'll start a new github repo for it and anyone else who cares to chime in and help can submit pulls requests to the repo.
  2. Like
    Rhys got a reaction from spirilis in Energia Tiva USB support   
    I know nothing about MTP, and I don't believe I've seen any reference to it in the TI usblib (may have just missed it).  Not really something I'm looking to do at this time.  I'm not entirely positive if I am even going to bother with Mass Storage mode at this point anyways.  Not something I need for any projects I'm working on.  If someone else wants to add it, they are welcome to do so.  I'm putting the prototype in place as a placeholder at this point.  All I'm looking to do is USB HID and CDC.  This is just a start on the header file for a library wrapper to get some semblance of USB support for the Tiva chips, and being to distribute it included with Energia will be dependent on TI opening up the usblib to a BSD license anyways.  I came to the conclusion I have neither the time nor the skill to write the whole USB stack from scratch....
  3. Like
    Rhys got a reaction from igor in Big LCD display   
    If you want to natively drive an LVDS LCD, your best bet is to take a look at some of the ARM Linux single board computers, ie. cubieboard, o-linuxino, or iTeaduino Plus.  I just got an iTeaduino Plus A20 a few days ago, with the intention of using it with an old laptop LCD.  I have a ways to go to figure out custom kernels, drivers, and interface, but it is very doable.  The AllWinner A10/20 and i.MX6 based SBCs all have native LVDS display functionality built in if you can figure out how to use it.  Right now I'm stuck at either needing a custom LVDS cable, or trying to find a supplier for the connector HP uses on the old DV series laptops to attach the LCD.  Unfortunately, the connector is not standard, and is only made by one company out of China and I have had no luck finding a supplier for it short of contacting their US office in Austin and seeing if I can get some samples.
  4. Like
    Rhys got a reaction from bluehash in CCS on Linux, post-compile error   
    Can anyone tell me how to fix this error?  I've gotten all the other kinks worked out moving from Windows to Linux except this last one....
    /opt/ti/ccsv5/utils/tiobj2bin/tiobj2bin: 52: /opt/ti/ccsv5/utils/tiobj2bin/tiobj2bin: Syntax error: "(" unexpected Thanks!
     
     - Never mind, I figured it out.  Apparently the tiobj2bin shell script doesn't work in SH on Ubuntu 13.10.  I edited the script to use BASH instead and it works fine
     
    So, there's the fix if anyone else runs into this problem!
  5. Like
    Rhys got a reaction from bluehash in Getting ADC working on the Tiva LaunchPad   
    For the sampling, you should be using a timer interrupt to ensure that the samples are taken at a regular interval.  The UART and such introduce randomness to the sample frequency if you don't use a timer interrupt to force the micro to sample the ADC at a specified interval.  And you need to set the timer interrupts priority higher than the UART and other interrupts so that it will interrupt them as well as whatever else the micro is doing.  You can't have much variance in the sample rate at the sample frequencies needed for audio work (+/- a few microseconds per sample will wreak havoc on your data).
  6. Like
    Rhys got a reaction from Remixed123 in Getting ADC working on the Tiva LaunchPad   
    For the sampling, you should be using a timer interrupt to ensure that the samples are taken at a regular interval.  The UART and such introduce randomness to the sample frequency if you don't use a timer interrupt to force the micro to sample the ADC at a specified interval.  And you need to set the timer interrupts priority higher than the UART and other interrupts so that it will interrupt them as well as whatever else the micro is doing.  You can't have much variance in the sample rate at the sample frequencies needed for audio work (+/- a few microseconds per sample will wreak havoc on your data).
  7. Like
    Rhys got a reaction from kkrambo in Launchpad USB example and documentation additions/labs   
    Single cable.  There is a switch between the two ports the switches which USB port is used for power.  By default the device ships with the switch set to debug.  Switch it the other way and it will pull power from the device port instead so you only need one cable for power and device interface.
  8. Like
    Rhys got a reaction from bluehash in Tiva Launchpad Mame Controller   
    I have (I think) completed my Mame controller firmware for the Tiva Launchpad.  It supports a total of 30 switches and one trackball or two spinners.  It appears as two USB gamepads (one 12 button, one 8 button) and one two button mouse device.  I'm using just about every possible GPIO pin on the board that is practical, including the JTAG and serial RX/TX pins.  The left button switches the board back into programming mode temporarily (re-enables the JTAG interface) so it doesn't have to be manually reset from LM Flash Programmer.  R9 and R10 need to be removed to prevent ghosting of those four pins.  Check it out if your interested and let me know if you have any comments, suggestions, or bug reports.
     
    I'm also working on a keyboard encoder version as well, it will go up on Github as well when it's complete. 
     
    https://github.com/Rhys79/Launchpad-Mame-Control
     
    Enjoy!
  9. Like
    Rhys got a reaction from PTB in Using pins PF1, PF2 and PF3   
    According to the schematic, in order to access PF0-PF4, you would need to remove R1, R2, R11, R12, and R13.
     
    PF0 - R1
    PF1 - R2
    PF2 - R11
    PF3 - R12
    PF4 - R13
     
    That would disconnect those pins from the onboard LEDs and buttons.
     
    R9 and R10 separate PD0/1 from PB6/7 as you indicated.
  10. Like
    Rhys got a reaction from astobiabism in Tivaware errors in CCS5   
    Having trouble getting Tivaware setup in CCS5.  It appears that TI didn't bother to actually rework any of the examples for the new Tiva part numbers.  Here are the two errors I am getting.  I've figure out how to fix the second one by adjusting the project properties for the correct part number, however the first one I can't find an equivalent replacement file for.
     
    These two errors show up before before even attempting to compile the code.  When I attempt to compile it, I get this error
     
     
    Here is the contents of target_config.ccxml where the first error is being generated.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?> <configurations XML_version="1.2" id="configurations_0"> <configuration XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0"> <instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface_0" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface_0" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/> <connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0"> <instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/> <instance XML_version="1.2" href="drivers/stellaris_cortex_m4.xml" id="drivers" xml="stellaris_cortex_m4.xml" xmlpath="drivers"/> <platform XML_version="1.2" id="platform_0"> <instance XML_version="1.2" desc="Stellaris LM4F120H5QR_0" href="devices/lm4f120h5qr.xml" id="Stellaris LM4F120H5QR_0" xml="lm4f120h5qr.xml" xmlpath="devices"/> </platform> </connection> </configuration> </configurations> I have yet to find an equivalent to the XML file anywhere in the Tivaware folders.  If I delete the entire target_config file and adjust the project properties for the correct MCU, it will build without complaints and seems to work fine.
     
    Is this the correct way to get the examples working?  Was TI being lazy and just dumped the Stellariesware examples into new folders for Tivaware?
     
    Overall, I'm getting a bit frustrated.  The chip appears to be exactly what I need as far as the hardware goes, but the software ecosystem doesn't seem to have hit the maturity level that is needed for the hobbyist community.  I would love to use Energia rather than CCS, as I've spent a fair amount of time with the Arduino IDE, but it doesn't seem like it's being maintained, and is pretty useless to me as it currently exists.

     
  11. Like
    Rhys reacted to spirilis in Tiva-C shipping times   
    fyi- Rick posted this link in #43oh IRC yesterday, something to look at when migrating from Stellaris to Tiva.
     
    http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=spma050a&fileType=pdf
    Migrating Software Projects from StellarisWare® to TivaWare™
×
×
  • Create New...