Jump to content
43oh

Rickta59

Members
  • Content Count

    1,135
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by Rickta59

  1. I was actually using an msp430g2533. I think is the same as a 2553 without a comparator. -rick
  2. Thanks bluehash! I couldn't get it to work with my SanDisk 1GB microSD card. However, with a few small tweaks to spi.c, I got it humming: /* Initialize and enable the SPI module */ void spi_initialize( void ) { P2DIR |= BIT0; // CS Line UCB0CTL1 |= UCSWRST; //UCB0CTL0 |= UCMSB | UCMST | UCMODE_0 | UCSYNC; UCB0CTL0 = UCCKPL + UCMSB + UCMST + UCMODE_0 + UCSYNC; UCB0CTL1 = UCSSEL_2 | UCSWRST; UCB0BR0 = 0x02; // 8MHz UCB0BR1 = 0x00; P1SEL |= BIT5 | BIT6 | BIT7; // P1.5, P1.6, P1.7 option select P1SEL2 |= BIT5 | BIT6 | BIT7; UCB0CTL1 &= ~UCSWRST; P2OUT |= BIT0;
  3. MIT created a great guide for students competing in the autonomous robot competitions in the 1990's. People here might find some useful information in the 6.270 Robot Builder's Guide, I found a copy of the 1992 version here: http://www.cs.uml.edu/~fredm/ml/6.270_robot_builders_guide.pdf Past competition page here: http://perspective.mit.edu/~6.270/contests/ -rick
  4. OK, so I went to the Post Office today and got a surprise. My SA 5529 board showed. It is white, very white. I like it. First step, solder on some male headers. Second step, cross fingers and plug it in. Great! it shows up as a usb device on linux: $ lsusb Bus 001 Device 048: ID 2047:0200 Texas Instruments MSP430 USB HID Bootstrap Loader I looked around for how to communicate with it on linux using mspdebug via the USB BSL. That didn't yield any results that jumped out at me on google. I quickly decided to give up on that tack and went looking for the test/reset/vcc/gn
  5. Great write-up here: http://www.43oh.com/forum/viewtopic.php?f=8&t=1152&p=7679#p7679 -rick
  6. Are you using a launchpad? If so, that should be: mspdebug rf2500 -rick
  7. I'm not sure what size SD/MMC card you are trying to support, however the FatFs Generic FAT File System Module might work on one of the msp430s that have > than 1k of RAM. You might look at the generic version of the code to get started. You can find more info here: http://elm-chan.org/fsw/ff/00index_e.html -rick
  8. Here is a couple of deals I'd like to see: $60 off the 28-pin TSSOP target board http://www.ti.com/tool/msp-ts430pw28a $60 off the 38-pin TSSOP target board http://www.ti.com/tool/msp-ts430da38 $85 off the 64-pin LQFP target board http://www.ti.com/tool/msp-ts430rgc64b ... here's hoping for the next deal ! -rick
  9. Great stuff! What program are you using to create the sound files that get uploaded?
  10. So I did a little debugging of naken430util. It looks the problem has something to do with the utll_context.end not being correct. If i run with my hex file and look at the value of util_context just before disasm_range() it shows: test.hex: util_context.start = 0xf800, end=0x10000 If I run with the elf file it is: test.elf: util_context.start = 0xf800, end=0xf800 If I hard code 0x10000 for the end value in the disam_range() call, it disassembles something but doesn't seem to be the right stuff. Thanks for your naken430 efforts. : ) As long as I can twist it to
  11. Great! That seems to work. Thanks bluehash! -rick
  12. I really don't want to bother the author with problems that are probably caused by using msp430-gcc. : ) -rick
  13. The data sheet seems to indicate 3 DMA channels. -rick http://www.ti.com/ds_dgm/images/fbd_slas639a.gif
  14. Rickta59

    SDIO

    I think it probably refers to a Secure Digital Input/Output card. Some mcu's have peripheral support built in. -rick
  15. I wish avnet carried these: http://www.ti.com/tool/msp-ts430pw28a
  16. This looks great SugarAddict. Can't wait to see how they work! -rick
  17. I've been having fun experimenting with msp430 assembly code and msp430-gcc. I realized pretty quickly that the key to writing fast code in asm is knowing how many instructions cycles each asm statement takes to execute. Unfortunately, I couldn't find any mps430-gcc command line argument that would show me that. You can hand count the instructions cycles and add them up, however doing this quickly gets tedious. There is a better solution. gnomad (aka rocket4kids) showed me a small standalone msp430 assembler called naken430asm http://www.mikekohn.net/micro/naken430asm_msp430_assembler.php
  18. @Peter Thanks for the clarification from the source! I have been avoiding all the older gcc releases as I'm only using the newly added value line chips and the FRAM chips. Are there any other nice features on the table for the next release of msp430-gcc? -rick
  19. Seems like this is a problem for ubuntu 11.10 users only. I was able to compile successfully by changing the link order in all the Makefiles: LDFLAGS=-L. -lstlink -lusb-1.0 -rick
  20. You can avoid overwriting the infoa segment, which is where most of the precalibrated values are stored by using: __attribute__((section(".infob"))) __attribute__((section(".infoc"))) __attribute__((section(".infod"))) each .infox section is 64 bytes. If you avoid .infoa you don't have to worry about what might be stored there. [EDIT] -rick
  21. Here is an msp430-gcc port of serial.S. Only some minor changes required: renamed from serial.asm to serial.S changed header inclusion, .cdecls to #include added ':' to all labels changed .bss directives to .lcomm changed .def directives to .global fixed argument registers CCS using R12-R15 for arg1-arg4, GCC uses R15-R12 for arg1-arg4 reworked temp registers because of argument register reorder changed OR asm statements to BIS statements ; serial.S - gcc port of serial.asm #include ;------------------------------------------------------------------------------- ; --- define
  22. I'm on linux at the moment so I don't remember the specifics, however you have to create a linked resource variable CurPath or something. The instructions are in the startup doc. -rick
  23. I spent some time and figured out how to make msp430-gcc compile and link the msp430g2xx3_ta_01.asm sample program from the msp430g2553 samples zip http://www.ti.com/litv/zip/slac485a. I had to modify the labels (added ':'s at the end ), changed some of the directives, and then passed a boatload of arguments to gcc. You can find the gory details in this gist: https://gist.github.com/1297504 You need the latest uniarch msp430gcc with the latest patches for this to work properly and latest mspdebug. To build and install just type in the directory where the source is: $ make c
×
×
  • Create New...