Jump to content
43oh

jscrane

Members
  • Content Count

    24
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    jscrane got a reaction from maxreddy in [Energia Library] Port of Adafruit_GFX and Adafruit_ST7735   
    Well there must be people out there without an LCD BoosterPack who are using Energia specifically because of its Arduino compatibility? (I know this describes me for one.)
     
    Surely for such people the existence of familiar Arduino libraries is beneficial so they can get started easily with their existing hardware and sketches?
     
    Steve
  2. Like
    jscrane got a reaction from maxreddy in [Energia Library] Port of Adafruit_GFX and Adafruit_ST7735   
    Hi everyone,
    I did a quick port of these two libraries to Energia on Stellaris.
     
    You can find them here:
    https://github.com/jscrane/Adafruit-ST7735-Library
    https://github.com/jscrane/Adafruit-GFX-Library
     
    Note that I used digitalWrite() rather than messing with port registers. The speed doesn't seem too bad all the same. At the moment, I have only tested with hardware SPI.
     
    If you inspect the changes I had to make for Energia, it might help with porting further libraries to Stellaris.
     
    Cheers,
    Steve
  3. Like
    jscrane got a reaction from bluehash in Compiler error with template parameter   
    Grrr: looks like N is #defined somewhere in the thicket of headers included by Energia!
     
    Changing it to something else worked under the old compiler. Oh well.
  4. Like
    jscrane got a reaction from tripwire in Compiler error with template parameter   
    Grrr: looks like N is #defined somewhere in the thicket of headers included by Energia!
     
    Changing it to something else worked under the old compiler. Oh well.
  5. Like
    jscrane got a reaction from p2baron in Interrupted: a library for low-power, low-latency sketches   
    Hi guys,
    I've been working on this for a while and I've written about it here: http://programmablehardware.blogspot.ie/search/label/interrupted
     
    Github is here: https://github.com/jscrane/Interrupted
     
    It now runs on Energia with msp430g2553.
     
    Feedback welcome!
    Steve
  6. Like
    jscrane got a reaction from bluehash in Interrupted: a library for low-power, low-latency sketches   
    Hi guys,
    I've been working on this for a while and I've written about it here: http://programmablehardware.blogspot.ie/search/label/interrupted
     
    Github is here: https://github.com/jscrane/Interrupted
     
    It now runs on Energia with msp430g2553.
     
    Feedback welcome!
    Steve
  7. Like
    jscrane got a reaction from spirilis in Interrupted: a library for low-power, low-latency sketches   
    Hi guys,
    I've been working on this for a while and I've written about it here: http://programmablehardware.blogspot.ie/search/label/interrupted
     
    Github is here: https://github.com/jscrane/Interrupted
     
    It now runs on Energia with msp430g2553.
     
    Feedback welcome!
    Steve
  8. Like
    jscrane got a reaction from Automate in Energia/Arduino Makefile   
    Hello world,
    If your project has outgrown the capabilities of the Energia IDE, why not try Gnu Make?
     
    I've put together a set of Makefile fragments which support Energia (msp430 and lm4f) and Arduino 1.0, here: https://github.com/jscrane/uC-Makefile. For most projects, a Makefile as simple as this suffices:
     
     
    Followed by:
     
    Cheers,
    Steve
  9. Like
    jscrane got a reaction from spirilis in Energia/Arduino Makefile   
    Hello world,
    If your project has outgrown the capabilities of the Energia IDE, why not try Gnu Make?
     
    I've put together a set of Makefile fragments which support Energia (msp430 and lm4f) and Arduino 1.0, here: https://github.com/jscrane/uC-Makefile. For most projects, a Makefile as simple as this suffices:
     
     
    Followed by:
     
    Cheers,
    Steve
  10. Like
    jscrane got a reaction from RobG in Ancient 8-bit computer emulator   
    What I did on my Summer Holidays:
     
    http://programmablehardware.blogspot.ie/2014/08/retrocomputer-resurrection.html
  11. Like
    jscrane got a reaction from reaper7 in Ancient 8-bit computer emulator   
    What I did on my Summer Holidays:
     
    http://programmablehardware.blogspot.ie/2014/08/retrocomputer-resurrection.html
  12. Like
    jscrane got a reaction from energia in [Energia Library] Port of UTFT library   
    Hi,
    I have ported Henning Karlsen's UTFT library to Energia on Stellaris. You can find the code here:
     
    https://github.com/jscrane/UTFT-Energia
     
    This code shows how to do reasonably fast graphics using GPIOPinWrite() instead of digitalWrite().
     
    It is a fork of the fine work done by Andresv, described on the 43oh forum here: http://forum.43oh.com/topic/3633-utft-library-utouch-henning-karlsen/
     
    Cheers,
    Steve
  13. Like
    jscrane got a reaction from M-atthias in Bit-Bang USB on MSP430G2452   
    Excellent work guys!
     
    I'd just like to add that I noticed the occasional communication failure from the uploader when it was breadboarded. Today I moved it to a piece of stripboard and haven't seen a single upload error since.
     

  14. Like
    jscrane got a reaction from Rickta59 in Adding new core to Energia?   
    Following rickta59's advice and that here: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification I created a platform.txt file for the boot430 board.
     
    As a side-effect, it also integrates all of the msp430-based launchpad boards into Arduino (using the Energia cores).
     
    Should anyone be interested in such an heresy, they can find it here: https://github.com/jscrane/energia
  15. Like
    jscrane reacted to Rickta59 in Adding new core to Energia?   
    Arduino version 1.5.x (which hasn't been released) has been changed to make it easier to support non avr chip architectures. It uses additional external config files to add toolchains and flash loaders without having to modify the IDE code written in java. The Arduino guys used it to add ARM chip support.

    I've tested it out to see how hard it would be to add the cc430f5137 with a custom gdb_bootloader I wrote. I didn't have to modify the java, I just created some config files for the uploader (msp430-gdb) and a new board description and core for the cc430. Was fairly simple. You do have to rearrange the directory structure somewhat to conform to the new scheme.
     
    https://github.com/arduino/Arduino/tree/ide-1.5.x git clone that cd build ant clean build run With Energia, you would create a new board in the config files. To deal with a different way to load the code you have a couple of choices. 1.) Modify the java source to invoke your loader or 2.) create a program / shell script / batch file that takes the same command line arguments as mspdebug and does usb boot loader stuff instead of mspdebug spy-bi-wire stuff.

    -rick
  16. Like
    jscrane got a reaction from Rickta59 in Bit-Bang USB on MSP430G2452   
    Excellent work guys!
     
    I'd just like to add that I noticed the occasional communication failure from the uploader when it was breadboarded. Today I moved it to a piece of stripboard and haven't seen a single upload error since.
     

  17. Like
    jscrane got a reaction from bluehash in Bit-Bang USB on MSP430G2452   
    Excellent work guys!
     
    I'd just like to add that I noticed the occasional communication failure from the uploader when it was breadboarded. Today I moved it to a piece of stripboard and haven't seen a single upload error since.
     

  18. Like
    jscrane got a reaction from L293D in [Energia Library] Port of UTFT library   
    If I had to add support for this board, I would do something like:
     
    * make a new config for HY28A, duplicating ILI9320 (in tft_drivers dir)
    * add a case statement for it to UTFT::UTFT setting display_transfer_mode=1
    * add a new transfer mode for hardware SPI (have a look at Adafruit's ST7735 library, I think this does both hardware and software SPI).
     
    The first two steps should give you a working setup in any case.
     
    Cheers,
    Steve
  19. Like
    jscrane got a reaction from L293D in [Energia Library] Port of UTFT library   
    Hi,
    I have ported Henning Karlsen's UTFT library to Energia on Stellaris. You can find the code here:
     
    https://github.com/jscrane/UTFT-Energia
     
    This code shows how to do reasonably fast graphics using GPIOPinWrite() instead of digitalWrite().
     
    It is a fork of the fine work done by Andresv, described on the 43oh forum here: http://forum.43oh.com/topic/3633-utft-library-utouch-henning-karlsen/
     
    Cheers,
    Steve
  20. Like
    jscrane got a reaction from reaper7 in [Energia Library] Port of UTFT library   
    Hi,
    I have ported Henning Karlsen's UTFT library to Energia on Stellaris. You can find the code here:
     
    https://github.com/jscrane/UTFT-Energia
     
    This code shows how to do reasonably fast graphics using GPIOPinWrite() instead of digitalWrite().
     
    It is a fork of the fine work done by Andresv, described on the 43oh forum here: http://forum.43oh.com/topic/3633-utft-library-utouch-henning-karlsen/
     
    Cheers,
    Steve
  21. Like
    jscrane got a reaction from bharath in Bit-Bang USB on MSP430G2452   
    Hi simpleavr
    I built the circuit from here: https://github.com/simpleavr/boot430. (I used 2x68R and 2x3.6v zeners on D+/D-.)
     
    When I connect it to USB, the LED flashes some number of times then goes solid on. However the host doesn't recognise the device:
     
     
    $ dmesg [97109.424130] usb 6-1: new low-speed USB device number 55 using uhci_hcd [97109.832103] usb 6-1: device not accepting address 55, error -71 [97109.832136] hub 6-0:1.0: unable to enumerate USB device on port 1    
     
    This is Ubuntu 12.04, btw.   Any ideas on how I can debug this?   Thanks, Steve
  22. Like
    jscrane reacted to simpleavr in Bit-Bang USB on MSP430G2452   
    i put in the led as heartbeat indication. the fact that it stays solid means the thing is deadlocked (may be in a loop). it means the receiver timing has been messed up, which is usaully caused by
     
    D+ D- levels not good or signal not clean. timing not right (clock not sync properly).  
    the fact that you are using zeners indicates that u may be using the wrong h/w setup
     
    take a look at the v-usb hardware consideration page. http://vusb.wikidot.com/hardware
     
    the zeners are for 5v circuits (like my vusbtiny avr programmer).
     
    u should hook it up as per "solution A" which is for 3.3/3.6v circuits.
     
    matthias had the voltage drop 2 x diode in series setup, it draws power from usb 5v and drop it to around 3.6v for the mcu. i.e (2 x 0.7v drop = 5v - 1.4v = around 3.6v).
     
    i had trouble doing the same when i started and matthias pointed out (back a few pages back in this thread) that it needs a led to stablize the v supply during power up.
     
    eventually i turn to using LDO. 1st w/ a 78L05 which works if i also draw power from the LP (as a programmer), otherwise it will fail simply because the 78L05 is not a LDO.
     
    now my setup is exactly like v-usb hardware "solution A" 1st diagram (w/ LDO). instead of the LE33 i am using a TI LM2950-33. it still have trouble initially if i power it from the usb cable. i had to adjust the firmware (already committed) to allow for more time in syncing the clock. I guess it's because the "starting" DCO values for 15Mhz is for 3.6v and we are having 3.3v.
     
    half of the time i spent on the bootloader project is getting the signals clean and right (so that the sync timing is good), so i guess u will also have to spend the time.
     
    i suggest you revise your h/w setup and if possible use an LDO, if not ready the beginning of the thread regarding matthias comments on his setup. AND do not remove power from the LP when doing initial tests. watch my video, i am getting power from the LP.
     
    the fact that you saw the heartbeat led blink a few times before locked solid indicates the firmware is running but once it receiving something, it got messed up.
     
     
     
     
     
     
×
×
  • Create New...