Jump to content
43oh

RobG

Members
  • Content Count

    3,117
  • Joined

  • Last visited

  • Days Won

    249

Reputation Activity

  1. Like
    RobG got a reaction from Fmilburn in Nokia 5110 display   
    Yes, I am actually in the process of doing it.
     
    But going back to the problem, looks like compiler doesn't like when declaration is in the middle of statement block and there's no white space before the type. Moving declaration to the top of block or adding white space fixes the problem.
    void clearBank(unsigned char bank) { setAddr(0, bank); int c = 0; //<-- causes error while(c < PCD8544_HPIXELS) { ... void clearBank(unsigned char bank) { int c = 0; //<-- OK, declaration at the top setAddr(0, bank); while(c < PCD8544_HPIXELS) { ... void clearBank(unsigned char bank) { setAddr(0, bank); int c = 0; //<-- OK with white space (that's why formatted code works) while(c < PCD8544_HPIXELS) { ... You can reproduce it in new project like this:
    #include <msp430.h> /* * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer int c = 0; return 0; }
  2. Like
    RobG got a reaction from Fmilburn in Nokia 5110 display   
    @@veryalive, not sure what's going on, but I copy/pasted that code to new project in ccs6.1.3 and go the same exception (can't see any hidden chars, so it can't be it.)
    I then formatted code in main (shift-control-f) and all is good now.
    Attaching files just in case.
     
    main.cPCD8544.h
  3. Like
    RobG got a reaction from veryalive in Nokia 5110 display   
    @@veryalive, not sure what's going on, but I copy/pasted that code to new project in ccs6.1.3 and go the same exception (can't see any hidden chars, so it can't be it.)
    I then formatted code in main (shift-control-f) and all is good now.
    Attaching files just in case.
     
    main.cPCD8544.h
  4. Like
    RobG reacted to stoefel in Tiva Eagle Library   
    Hi RobG,
     
    thanks a lot for providing eagle library for tiva series.
     
  5. Like
    RobG got a reaction from bluehash in Howto send break signal on UART?   
    This is pretty much the way I am doing it in my code (non Energia.) 
    Change pin function from UART to I/O, set pin to low, wait, set pin high, change pin function back to UART, send data
    Not sure why you have problem with the start bit.
  6. Like
    RobG got a reaction from pine in Have feedback for TI? Please share here.   
    I am renewing my request for custom logic module.
     
    ...and TxyCCR1 CCIFG DMA triggers
  7. Like
    RobG reacted to froggy in TM4c1294 - Program over Ethernet with LM Flash Utility   
    Thanks for the starting point there. The calls to Swupdate don't seem to be working since the LM Flash Utility still hangs on the "trying to connect". Starting the MAC/PHY with the "SoftwareUpdateInit()" function, my callback function is called as expected. I get the same behavior with the Energia UDP/Ethernet libraries where I can see the "magic update packet". 
     
    I suspect that the issue is that I don't have the proper Ethernet Bootloader installed, but can't seem to find any information on how to install/build it. Any idea how I can install the Ethernet Bootloader/include it in my projects?
     
     
    Comment block from SoftwareUpdateBegin():
     
    //*****************************************************************************
    //
    //! Passes control to the bootloader and initiates a remote software update
    //! over Ethernet.
    //!
    //! This function passes control to the bootloader and initiates an update of
    //! the main application firmware image via BOOTP across Ethernet.  This
    //! function may only be used on parts supporting Ethernet and in cases where
    //! the Ethernet boot loader is in use alongside the main application image.
    //! It must not be called in interrupt context.
    //!
    //! Applications wishing to make use of this function must be built to
    //! operate with the bootloader.  If this function is called on a system
    //! which does not include the bootloader, the results are unpredictable.
    //!
    //! \note It is not safe to call this function from within the callback
    //! provided on the initial call to SoftwareUpdateInit().  The application
    //! must use the callback to signal a pending update (assuming the update is to
    //! be permitted) to some other code running in a non-interrupt context.
    //!
    //! \return Never returns.
     
    EDIT:
     
    I got the Ethernet update to work by making a few modifications to the SwUpdate.c file. For whatever reason (I didn't really bother looking into this part...), the defines aren't set to use the ROM based Ethernet bootloader in the SoftwareUpdateBegin function, and the ROM Ethernet functions aren't defined in Energia 017's "rom.h" file. The latest version of TivaWare (TivaWare_C_Series-2.1.2.111) does provide the proper definitions for it. I simply added the necessary defines to call the ROM_UpdateEMAC and forced the code to use that, instead of the flash bootloader based update system. It also seems to be important that the MAC address set by the Ethernet library matches the MAC address programmed into user registers (by default this is what is on the sticker on the board).
     
    Anyways, I've attached a working Energia example with support for updates over Ethernet. 
    EthSwupdate.zip
  8. Like
    RobG reacted to zeke in Have feedback for TI? Please share here.   
    I wished that TI had something like an ATtiny85 so I could make simple USB gizmos.
  9. Like
    RobG got a reaction from bluehash in Need a buck switching power supply design   
    How about LM2576? They are super simple and dirt cheap (~$1.25 for all parts,) used them in few projects.
    They are only 3A, but you could split your supply rail and use two of them.
     

  10. Like
    RobG got a reaction from zeke in Need a buck switching power supply design   
    How about LM2576? They are super simple and dirt cheap (~$1.25 for all parts,) used them in few projects.
    They are only 3A, but you could split your supply rail and use two of them.
     

  11. Like
    RobG reacted to spirilis in Have feedback for TI? Please share here.   
    It does sound like TI could use a European distributor to lower the cost of shipping.
  12. Like
    RobG got a reaction from pine in 30% off any new Eagle license (until April 30th 2016)   
    Spring offer - 30% off any new Eagle license.
    Valid from Arpil 18th - April 30th.
     
    EAGLE Make Personal (Layout + Schematic + Autorouter,) 99 schematic sheets, 6 signal layers, 160x100mm routing area, only $118.30 plus tax!
  13. Like
    RobG got a reaction from bluehash in 30% off any new Eagle license (until April 30th 2016)   
    Spring offer - 30% off any new Eagle license.
    Valid from Arpil 18th - April 30th.
     
    EAGLE Make Personal (Layout + Schematic + Autorouter,) 99 schematic sheets, 6 signal layers, 160x100mm routing area, only $118.30 plus tax!
  14. Thanks
    RobG got a reaction from flautzr in (Universal) Color LCD graphics library (2)   
    This is my new universal graphics library (original one is here.)
     
    Supported boards (this is out of the "box" support, but the library will work with any board after small changes.)
     
    TI's MSP430FR5969 LaunchPad (ugl16msp only for now)
    TI's MSP430F5529 LaunchPad
    TI's MSP430G2 LaunchPad with G2553 chip
    RobG's MSP430G2955 Dev Board
    RobG's MSP430F5172 Dev Board
    RobG's MSP430F5510 Dev Board
     
    Supported displays
     
    1.8" ST7735 based JD-T1800 - ugl8
    2.2" HX8340 based displays - ugl8
    2.2" ILI9225 based displays (touch panel) - ugl8
    2.2" ILI9341 based displays 320x240 pixels - ugl16
     
    Tiva versions are right here
     

     

     
     
    ugl8msp.zip (name change 4/18/14)
    ugl16msp.zip (updated 4/19/14)
  15. Like
    RobG got a reaction from agaelema in Graphics Library for MSP432   
    MSP432 version of my Universal Graphics Library.
    Works with my latest Color LCD BoosterPacks, 2.2" and 2.4" (320x240)
    Touch support will be added in late April.
     
    ugl432.zip
     

     
  16. Like
    RobG got a reaction from Luc in LED Animations / Effects   
    If you have any code or ideas, can you share them here?
     
    This should be animation/effect function only, no driver code. Pixel data could be calculated, come from array of constants, or both.
     
    For smaller number of LEDs, let's use a buffer, for example: char leds[] = { R0, G0, B0, R1, G1, B1, R2...} The function should update values in the buffer.
     
    For larger number of LEDs, the function should do a call to send(char R, char G, char or sendByte(char byte)
     
    LED arrangement, I guess strip, 4 x 4, 8 x 8, 16 x 16, etc.
     
     
    Let's get creative and see what we can come up with
     
    (I will be working on fire and snow.)
  17. Like
    RobG got a reaction from Luc in nanoPad - MSP430G target board   
    43oh Store link
    43oh Wiki link
     
    For my next project, I need a small control board. Since LaunchPad is too big and F2013 target board is not powerful enough, I decided to make own target board.
    Here's what I have so far, size 1" x 0.75", power LED, reset button, 0.05" programming header, and crystal. I intend to use it with 20 pin and 28 pin G2553, but other G series chips can be used as well.
    I was thinking of adding extra LEDs and a switch, similarly to LP's, but decided not to.
    Also, I am considering adding LDO and maybe getting rid of the crystal.
    Should I keep RST and TEST on the main header?
    Any thoughts?


  18. Like
    RobG got a reaction from WilliamCampolina in (Universal) Color LCD graphics library (2)   
    I will take a look once I find some time, but this could be caused by different default settings of the display driver (I am setting only few basic things in configuration function.)
    Should be an easy fix.
  19. Like
    RobG got a reaction from Fmilburn in Ethernet Booster Pack v3   
    Hey, sorry for the delay, lots of things going on in my life now.
     
    F5172 because I needed a lot of RAM to store pixel data. 
     
    G2553 was used just to prove it can be done! I would definitely switch to something larger (besides limited RAM, 2553 became too expensive.)
     
    I am not doing anything with WIZnet anymore, I switched to TM4C129 and CC3xxx
  20. Like
    RobG got a reaction from spirilis in Ethernet Booster Pack v3   
    Hey, sorry for the delay, lots of things going on in my life now.
     
    F5172 because I needed a lot of RAM to store pixel data. 
     
    G2553 was used just to prove it can be done! I would definitely switch to something larger (besides limited RAM, 2553 became too expensive.)
     
    I am not doing anything with WIZnet anymore, I switched to TM4C129 and CC3xxx
  21. Like
    RobG reacted to monsonite in SIMPL - A Tiny Language for MSP430   
    Hi All
     
    Back in May 2013, I came across a piece of development work by Ward Cunningham (wiki inventor) for a tiny interpreted language "Txtzyme" that ran on Arduino - or virtually any other micro that was supported by a C compiler.
     
    (The name Txtzyme comes from text and enzyme -  an enzyme being a biological catalyst - or a substance that causes (chemical) change to occur faster).
     
    I was intrigued how under 100 lines of C code formed such a useful and extendable language - that I quickly had it running on an Arduino, and was making my own modifications and improvements.  I have since built on Ward's work and called my project SIMPL - Serial Interpreted Microcontroller Language.
     
    (Link to Ward's original work is here  https://github.com/WardCunningham/Txtzyme )
     
    Ward had created a "nano interpreter" in just a few lines of C code, which formed the heart of an interactive language for controlling hardware.
     
    Through just a dozen commands it would allow port manipulation,  flashing LEDs,  musical tone generation, PWM, printing to screen and sensing analogue signals. The language communicated through a uart port to the PC.
     
    Originally Txtzyme offered just these commands - see Ward Cunningham's Read Me:

    a-f      Select an I/O port
    h        help - a summary of commands
    i         input
    k        a loop counter - which decrements each time around the loop  see {}
    m       millisecond delay
    o       output
    p       print the value of variable x followed by carriage return/line feed
    s       sample an ADC channel
    u       microsecond delay
    x       a 16 bit integer variable
    {}     code between these braces is repeated as a loop
    _ _    characters between the underscores are printed to the terminal
     
    Txtzyme was small, entensible and portable - it will run on almost any microcontroller.  The Txtzyme scripts were very small, human readable and easy to send from one device to another.
     
    One early application was for the Arduino to be used as an I/O controller board attached to a Raspberry Pi.  The Pi would send a simple command via it's uart and the Arduino would perform an I/O function, sequence or whatever.
     
    Some months later, I decided to try Txtzyme with the MSP430, as I had got a LaunchPad and Energia had just appeared on my radar. 
    So I took the original Txtzyme Arduino  sketch, loaded into Energia - and behold it worked first time.  Txtzyme was a universal "lingua franca" that could be used on any micro.
     
    If you want to try  arecent version of SIMPL that runs on a LaunchPad MSP430G2553 - here is the Github Gist
     
    https://gist.github.com/anonymous/034dd41f108263d09803
     
    Since then I have ported it to  AVR Cortex M3, M4,  and several soft-core processors running on FPGAs.
     
    Currently my aim is to reduce the SIMPL Kernel to approximately 2kbytes - so that it can become a "Smart Bootloader"  - residing on the microcontroller in the bootloader area, and being immediately available as an interactive toolkit for exercising hardware and performing small applications.
     
    I have written extensively about it in my blog  - starting here  from May 2013
     
    http://sustburbia.blogspot.co.uk/2013/05/txtzyme-minimal-interpreter-and.html
     
    I have also just this week started a wiki - so that all the new information can reside in 1 place.
     
    https://simplex1.wiki.zoho.com/HomePage.html
     
     
    Please get in touch if you would like to know more about SIMPL and my project aims.  
     
     
     
     
    Ken 
     
    London
     
     
     
     
     
     
  22. Like
    RobG reacted to agaelema in Products using MSP430   
    Teardown Tuesday: Kwikset SmartCode Lock
     
    http://www.allaboutcircuits.com/news/teardown-tuesday-kwikset-smartcode-lock/
     
     

  23. Like
    RobG got a reaction from xxx1 in Kester 979 flux   
    I will have gallon of Kester 979 flux, but that is way too much for me and I want to sell most of it at cost.
    979 is a replacement for 971, and is an awesome flux. It's VOC free, huge plus if you do your SMT work at home. 
     
    16oz(1 pint) is $5 plus shipping (US only,) which should be around $5 as well.
    I may also do 8oz, which should be ~$6 shipped (US only.)
  24. Like
    RobG got a reaction from JonnyBoats in SensorTag, practical use   
    SensorTag can be used not only for development
    I had to find the exact location when fixing problem with my subfloor, so I attached small magnet under the floor and used ST to locate it.
     

  25. Like
    RobG got a reaction from spirilis in How to protect your free code from companies predating on it ?   
    There's no way you can stop it, you can only make it difficult. I have seen people taking my code (or parts of it) and then claiming it as theirs. Even my board designs were "borrowed." If my code is simple and not unique, I don't mind when other's are using it. If I spend many hours writing the code, reading data sheets, and researching, that's another story.
     
    Oh, and if you don't like when companies steal software, then you should stop using Android  
×
×
  • Create New...