Jump to content
43oh

jsolarski

Members
  • Content Count

    568
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Like
    jsolarski reacted to squalyl in Linux Tool Chain Options   
    Based on the makefile from the github project above, I could build a native "vanilla" toolchain from official sources, with just two little glitches:
     
    -I have to manually create a $PREFIX/arm-none-eabi/usr/include folder before building gcc the second time, or it won't build! (but nothing gets installed there) I get a pretty message: "the directory that should contain system headers does not exist", but no one on the intarwebs seems to have a satisfying solution. I don't want to patch sources, the goal is to build from official tarballs.
     
    -ld cannot find crt0.o when running arm-none-eabi-gcc trivial.c (with an empty main function), but gcc -c does work. That may not be required for our platform.
     
    I used:
    binutils 2.22
    gcc 4.7.2 (dependencies gmp 5.0.0 and mpfr 3.1.1)
    newlib 1.20.0
     
    I will retry the build in a clean VM in an attempt to reproduce the issues, then attempt to cross build the toolchain for mingw. I did that before for cegcc.
  2. Like
    jsolarski reacted to ntfreak in ICDI support in OpenOCD   
    TI have released some info on the ICDI interface - i have uploaded here for all to access:
    https://docs.google.com/uc?export=download&id=0Bzv7UpKpOQhnWDFfSENySkJfdW8
     
    Also checlout the following project that supports the ICDI:
    https://github.com/utzig/lm4tools
     
    I am still working on OpenOCD support, the above projects are standalone.
     
    Cheers
    Spen
  3. Like
    jsolarski reacted to bluehash in Look what TI sent over to review...   
    Thanks TI!
    This shows they are really interested in the community. Feel free to ask me questions. I'll be reviewing the board this weekend.
     

  4. Like
    jsolarski reacted to abecedarian in Interesting item on ebay   
    http://www.ebay.com/...utorefresh=true
     
    "You will get a factory NEW HP Vantera E3232B Analog/Discrete I/O node module. This module was over $1000 new. Perfect for hacking with your Arduino or Basic Stamp."
     
    US $14.99 + 4.99 shipping.
     
     
    Might be good for parts / projects. Google didn't find much information about it though.
     
     
    * Stupid me should have placed this in the general electronics forum. sorry.
  5. Like
    jsolarski reacted to scompo in Stellaris gcc compile on linux.   
    Hi, I don't know if this is the right place to put this, if it isn't please let me know..
     
    I've managed to get a working complier with the arm-none-eabi lite toolchain from codesourcery.
    Stellarisware examples are compiling just fine on linux.
    The right toolchain it's chosen automatically by the makedefs definitions.
    I've managed to get a simple project compiling on gcc and verified it runs correctly in a windows pc with the LMLoader program.
     
    Basically I created another folder in the boards directory, copied an existing example from the lm4f120x folder, edited the file names and changed the recurrency of the names in the makefile. I deleted the existing code and added mine in the main.c file.
    The files needed (from the uart_echo example) are:
    uart_echo.c
    startup_gcc.c
    uart_echo.ld
    Makefile

    If you are interested you could find all the infos here.
     
    Sorry for the poor code, but it was only a test!
     
    A nice thing would be using openocd and gdb to program, run and debug the bin file in the target but with the ICDI interface it's not possible for now without CCS5 and a some headaches to get it working as this post found out!
  6. Like
    jsolarski reacted to bluehash in Checking in from Philly   
    Link
  7. Like
    jsolarski reacted to The_YongGrand in Very Basic HD44780 driver for Stellaris LaunchPad   
    Here's a very basic HD44780 driver for Stellaris Launchpad.
     
    Supports up to 20x4 LCD and a full PORTB register is used. Due to the nature of the GPIOPinWrite function which uses masking and whatnots, extra code on the driver will be written in the future to accomodate such functions.
     
    Uses two files: hd44780_lp.c and hd44780_lp.h
     
    An example is in the attachment. It's called "lab2" because I fooled around with the Stellaris Launchpad Workbook earlier.
     
    Note: Please refer to online tutorials on the HD44780 connections.
     
    Comments are greatly appreciated!
     

    lab2_revised.zip
  8. Like
    jsolarski reacted to MattTheGeek in Stellaris Launchpad shipping details   
  9. Like
    jsolarski got a reaction from pine in Launchpad v1.5 + M430G2553 serial communication on Linux   
    great advice, pasky, but another thing would be to use a button to start the comms if you can spare the pin.
  10. Like
    jsolarski got a reaction from TomKraut in Extending a USB debugger   
    If you're only using to debug then maybe using git or svn or a shared network drive with mspdebug and gdb, with other standalone programmers for avr , just to debug on the local machine then using remote.desktop to make the changes to code.and compile, then use mspdebug to reload the code to your target.
     
    at least thats what i would do....
  11. Like
    jsolarski got a reaction from pine in Question of optocouplers in relay switch board   
    to isolate your uC from an inductive load is my guess.
  12. Like
    jsolarski got a reaction from pine in Dead rechargeable battery   
    I use to buy aa and aaaa and they died about a year after purchase...... I think thats the normal usagevfor them.
    so now i have to go and buy a few more for some solar projects that im doing.
  13. Like
    jsolarski got a reaction from pine in Launchpad driver for ubuntu on beagleboard   
    ok got the same message....but.only after changing settings or connecting it and disconnecting it to fast. try resetting it and re connecting .... it worked for me just now lol
  14. Like
    jsolarski got a reaction from pine in Launchpad driver for ubuntu on beagleboard   
    install the mspdebug package if you havent and use 'mspdebug rf2500' to connect. if all is good.you should see it connect.
  15. Like
    jsolarski got a reaction from Kman in Hi! From Houston   
    lol I wouldn't say full of yourself, but confident in your knowledge.
    Its always nice to have another engineer here, because some of us hackers lack on some information in electronics.
     
    Welcome to the forums.
  16. Like
    jsolarski got a reaction from thomasss in Convert 2 analog signals into 1 with the msp430   
    I have used the F2013 with the launchpad. and the differential inputs are great, and the 16bit SDA has moe then enough resolution.
  17. Like
    jsolarski got a reaction from xv4y in TIMER A0 and Digital I/O on P1   
    sounds like you may have a pin conflict in the code or some other error. could you please post your code?
  18. Like
    jsolarski reacted to zeke in I will back back soon   
    This is what I've been doing. I recommend it.
     
    Last year about this time, I started figuring out the Dallas One Wire temperature sensor stuff. A friend of mine told a company about it. They are the world's largest user of Dallas One wire temp sensors. That company contacted me and hired me to do a couple of non-one-wire projects for them. I got a chance to earn some badly need money and a chance to prove to them that I was a trustworthy EE.
     
    Today, I am working a full time contract with them doing all of their EE hardware design and the possibility of full time employment is very real.
     
    I wholeheartedly recommend that you pour yourself into yourself. Make anything and everything you personally want to do. Develop new skills and cultivate new experiences so that you're ready to pounce on work when it comes.
     
    If possible, make your own product and sell it. Start small. Make something that you want and need. If you're passionate about it then someone else will be as well.
     
    When you complete your design then you will have a trophy that you can remind yourself "Hey! I did it. I made this myself. I AM AWESOME! Here's the proof!"
     
    If you need some concrete steps in this process then just ask. My door is open.
  19. Like
    jsolarski got a reaction from Rickta59 in I will back back soon   
    No Job yet but I think I have some of my spark back
     
     
    Starting a New MSP430 based robot with differential steering and pingpong balls for cheap casters lol.....

     
     
    @RobG I wish I was better at java, but PHP is my strong point. Thanks for the offer
     
     
     
    I do have to thank this forum for bing so great!
    Now time to catch up on about 26 pages of new posts lol
  20. Like
    jsolarski got a reaction from oPossum in I will back back soon   
    No Job yet but I think I have some of my spark back
     
     
    Starting a New MSP430 based robot with differential steering and pingpong balls for cheap casters lol.....

     
     
    @RobG I wish I was better at java, but PHP is my strong point. Thanks for the offer
     
     
     
    I do have to thank this forum for bing so great!
    Now time to catch up on about 26 pages of new posts lol
  21. Like
    jsolarski reacted to krzyk2 in Useful bit and performance tips   
    I found this on Hacker News, looks like at least some of those could be used in MSP430 to speed things up when dealing with ints and bits.
    http://www.graphics.stanford.edu/~seander/bithacks.html
     
    The other one is msp430-gcc specific performance tips and already appeared on the forum, but probably now everyone is aware of it so.
    http://mspgcc.sourceforge.net/manual/c1408.html
  22. Like
    jsolarski reacted to larsie in Simple bot (rover) based on MSP430   
    Here's a simple MSP430 based robot I made:
     
    http://lars.roland.bz/servobot/
     

  23. Like
    jsolarski got a reaction from nuetron in I will back back soon   
    No Job yet but I think I have some of my spark back
     
     
    Starting a New MSP430 based robot with differential steering and pingpong balls for cheap casters lol.....

     
     
    @RobG I wish I was better at java, but PHP is my strong point. Thanks for the offer
     
     
     
    I do have to thank this forum for bing so great!
    Now time to catch up on about 26 pages of new posts lol
  24. Like
    jsolarski reacted to DrMag in Flashing the missing DCO calibration constants   
    For anyone who is interested, I've completed the (3) tutorials on my blog about calibrating the DCO and writing to flash. I've done it in Segment B instead of Segment A and for a non-standard DCO of 7.3728 MHz (for UART). It also includes some information on the TLV formatting TI uses and the correct way to deal with the checksum.
     
    Hope these are helpful!
  25. Like
    jsolarski reacted to oPossum in TV-B-Gone using Launchpad   
    This is a reimplementation of adafruit's TV-B-Gone kit. It has been written from scratch to be more efficient and more precise than the AVR version. Assembly code is used for the critical timing, everything else is in C. Clock is 1 MHz (vs. 8 MHz for AVR).
     
    This code is small enough to fit in a G2231 (2K flash, 128 RAM) that comes with the launchpad. There are only 39 codes due to limited flash capacity. Obviously larger parts like the G2553 could be used to fit all codes and add additional features.
     
    main code (excerpt)

    void send_code(TIRCODE * const ic) { const uint8_t *code_byte; unsigned code_bitmask; static uint8_t idx[100]; // static so it is not on the stack unsigned n, j; uint8_t *p; // Make sure there is room for all indicies if(ic->pair_count > sizeof(idx)) return; // Convert variable bit count to uint8_t n = ic->pair_count; code_byte = ic->bitstream; code_bitmask = 0x80; p = idx; // Iterate indicies while(n--) { *p = 0; j = ic->bits_per_index; // Iterate bits while(j--) { *p <<= 1; if(*code_byte & code_bitmask) *p |= 4; code_bitmask >>= 1; if(!code_bitmask) ++code_byte, code_bitmask = 0x80; } ++p; } if(ic->carrier_period) { TACCR0 = ic->carrier_period; TACCR1 = ic->carrier_period >> 1; tx_ir_carrier(ic->pair_count, idx, ic->durations); } else { tx_ir_pulse(ic->pair_count, idx, ic->durations); } } void main(void) { unsigned n; WDTCTL = WDTPW + WDTHOLD; // Disable watchdog // DCOCTL = 0; // Use 1 MHz calibration BCSCTL1 = CALBC1_1MHZ; // DCOCTL = CALDCO_1MHZ; // // // See chart for I/O assignment P1OUT = 0x0E; // Txd, Rxd, S2 high P1REN = 0x0C; // Rxd / S2 pullup enabled P1DIR = 0xF3; // Rxd / S2 in, all others out P1SEL = 0x50; // Timer A T0.1 / SMCLK TACTL = TASSEL_2 | MC_1; // Clock = SMCLK, Mode = UP // do { // /// todo: Sleep while waiting for S2 press // while(P1IN & 8); // Wait for S2 press // for(n = 0; n < code_count; ++n) { // P1OUT |= 0x01; // LED on delay10us(450 * 100u); // Wait 450 ms P1OUT &= ~0x01; // LED off send_code(CodeList[n]); // Send code } // } while(1); // }
     
    ir transmission code (excerpt)

    tx_ir_carrier ; void tx_ir_carrier(unsigned n, uint8_t *i, TDUR *d) ; R12 Duration pair count ; R13 Pointer to duration indicies ; R14 Pointer to durations ; mov #OUTMOD_7, R10 ; IR Carrier On (reset/set output mode) mov #OUTMOD_5, R11 ; IR Carrier Off (reset output mode) ; ir_tx_loop mov.b @R13, R15 ; Get duration index add R14, R15 ; Add duration pointer mov @R15, R15 ; Get duration ; mov R10, &TACCTL1 ; Turn on IR call #delay ; Wait for on duration ; nop2 ; Precise timing ; mov.b @R13+, R15 ; Get duration index and increment pointer incd R15 ; Adjust for off duration add R14, R15 ; Add duration pointer mov @R15, R15 ; Get duration ; mov R11, &TACCTL1 ; Turn off IR call #delay ; Wait for off duration ; dec R12 ; Decrement pair count jne ir_tx_loop ; Do next duration pair... ; ret ; Return ; ; ; ; - Delay in units of 10 cycles (10 us at 1 MHz) delay cmp #4, R15 ; Compare to minimum jlo dlyret ; Below minimum, return... sub #2, R15 ; Adjust loop count for overhead jmp eloop ; Make the first iteration shorter ; delay10us mov R12, R15 ; C callable ; dloop nop2 ; 7 cycles of nop nop2 ; nop2 ; eloop nop ; dec R15 ; Decrement loop count - 1 cycle jne dloop ; Loop if not zero - 2 cycles ; dlyret ret ;
     
    Complete code attached
    tvbg_lp.zip
×
×
  • Create New...