Jump to content
43oh

Rickta59

Members
  • Content Count

    1,135
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by Rickta59

  1. Here is a slightly modified version of the example blinky led program. The modifications accommodate the leds on my development board, they light up when the pin is low. // ################################################################################################# // # < Blinking LED example program > # // # ********************************************************************************************* # // # Displays an 8-bit counter on the high-active LEDs connected to the parallel output port. # // # *************
  2. For a long time, I have had an interest in FPGA development. You can find boards that come with a JTAG programmer on ebay for less than $20. The following ebay link shows a board similar to the one I had purchased http://www.ebay.com/itm/361568712810 I experimented with it a lot for a while and then I probably got distracted by some new TI toy Occasionally, I would pick it up and try different things with it. However, the cost and form factor of the chips discourages me from doing anything real with it. For me these things are more of an educational plaything. Yesterday, I noticed the ne
  3. man .. Let's use an external RTC you have to buy because I don't learn that anything about the msp430fr chips. Oh yeah and the ADS-7042 is a $45 booster pack. Oh yeah and the article links to the msp430g2 launchpad but his whole segment is about the msp430fr4133 ... hmm element14 must have a pile of msp430g2 boards they are trying to dump
  4. I tend to stay away from the Arduino distrubution directory. I created a directory in my Arduino sketch directory called "hardware" to store alternate cores. In my case on linux it ends up being ${HOME}/Arduino/hardware $ ls ${HOME}/Arduino/hardware alt_ti Arduino_STM32 grumpy $ ls /home/kimballr/Arduino/hardware/alt_ti/ tivac $ ls /home/kimballr/Arduino/hardware/alt_ti/tivac boards.txt extras platform.txt README.md tools cores libraries programmers.txt system variants I didn't have to change anything in platform.txt for this to work. The directory above sho
  5. Energia is really just arduino now with some custom TI cores. The Arduino IDE is really a couple of things, text editor + API + project building software. The arduino builder is responsible for finding all the required header files and the invoking the build process based on the platform.txt file along with the board.txt file. The platform.txt and board.txt are unique and specific for each custom core. Links: arduino builder - https://github.com/arduino/arduino-builder energia msp430 core - https://github.com/energia/msp430-lg-core
  6. You are asking how to create a custom core. Now that Energia has migrated to Arduino 1.6.x it is no longer an Energia specific question. pins_energia.h are stored with each "variant" The one you want to start with is: https://github.com/energia/msp430-lg-core/tree/master/variants/MSP-EXP430F5529LP This document describes how the Arduino directories are organized: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
  7. So .. for a 64 bit version there is still pile of things that are still 32 bit .. man .. bleh $ find . -type f -exec file {} \; | grep '32-bit' ./ccsv6/ccs_base/dvt_4.1.0.201608181627/Trace/bin/libJTrace.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=7986fda1cdb0fab1a4ceca59ef89359f24088d4e, not stripped ./ccsv6/ccs_base/scripting/examples/MSP430/EnergyTrace_Lab_5.out: ELF 32-bit LSB executable, TI msp430, version 1 (SYSV), statically linked, not stripped ./ccsv6/ccs_base/scripting/examples/C66/Stairstep_JTAGstop/Debug/Stairstep_JTAGstop.ou
  8. Well it looks like there is a 64 bit version. However, it seems the compiler code is still 32 bit. Some of the binaries are 64 bit but not all. $ file $(find ti64 -iname 'libmsp430.so') ti64/ccsv6/ccs_base/DebugServer/drivers/libmsp430.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=63da93010e1a9faee499af359f8b5480a74d5ed0, stripped $ file $(find ti64 -iname 'cl430') ti64/ccsv6/tools/compiler/msp430_15.12.3.LTS/bin/cl430: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.24, not stripped $ file $(fin
  9. Thanks .. I didn't notice that.
  10. I would just do this: $ cd /opt/energia-1.6.10E18/hardware/tools/DSLite $ cp MSP-EXP430FR6989.ccxml MSP-EXP430FR6989LP.ccxml
  11. More fun with gdb, try this with an MSP-EXP430G2 launchpad o Open 2 xterm or 2 command windows that have msp430-elf-gdb and mspdebug in your path o In the first xterm run: $ mspdebug rf2500 'gdb' o In the second xterm run an msp430-elf-gdb session $ msp430-elf-gdb -q -ex 'target remote :2000' Remote debugging using :2000 0x0000ffff in ?? () (gdb) printf "create convenience variables\n" create convenience variables (gdb) set $P1OUT=(unsigned char *)0x21 (gdb) set $P1DIR=(unsigned char *)0x22 (gdb) printf "set all the P1 pins low\n" set all the P1 pins low (gdb) set *$P1OUT=0 (
  12. The problem with using javascript it it doesn't know that your target environment is limited to 16 bit. Try a different example, add 0xffff + 0x0001 .. $ cat testme.js "use strict"; (function() { var BIT0 = 0x0001; var BIT5 = 0xffff; var test = (BIT0) + (BIT5); process.stdout.write('0x' +test.toString(16) + '\n'); })(); $ node testme.js 0x10000 $ Now try it with msp430-elf-gdb: $ msp430-elf-gdb -q (gdb) print/x 0xffff+0x0001 $1 = 0x0 (gdb) So the answer with javascript is '0x10000' and the answer with msp430-elf-gdb is '0'. However for the ms
  13. The best interactive calculator to do architecture specific math is gdb. For example: $ msp430-elf-gdb -q (gdb) set $BIT0=(1<<0) (gdb) set $BIT5=(1<<5) (gdb) print/x (~$BIT0) + (~$BIT5) $1 = 0xffdd (gdb) p/t (unsigned char)0xffdd $12 = 11011101 (gdb) p/t (unsigned char)~0xffdd $11 = 100010 In the msp430-elf-gdb session above I created a couple of convience variables ($BIT0 and $BIT5). You could also just use (1<<n) for any BITN. The print command will output decimal by default. However, you can change the base by providing /x (hex), or /d (decimal), or /t (binary).
  14. For what's it worth I rarely use CCS mainly because it is 32 bit under linux. However, it is nice to have CCS for those cases where the only example code is written for TI compilers. It is also a nice way to get the latest version of the TI supported msp430-elf-gcc compilers. I like to use the latest msp430-elf-g++ and arm-none-eabi-g++ compilers. I've learned the command line args to tweak to make it generate decent code and if I want to run the compilers on a Raspberry PI or a beaglebone black I can. I like that I can compile the compiler source code on whatever linux computer I happen
  15. The big deal? Ask any hobbyist that purchased a node locked CCS license at full price. I think most of them paid at least $500 and then a yearly fee for maintenance. The TI compilers for the msp430 and msp432 are better supported by the CCS project wizards. Also, TI support tends to pay more attention to problems and testing with TI compiler vs the included GCC versions. The CCS compilers tend to produce better optimized code compared to the GCC compilers. However, now that TI is maintaining the msp430-elf-gcc, the example code is often written to work with both the TI compilers and the GC
  16. NOT true! "Free Limited License: This license is enabled by default when you install CCS. CCS can be used for free with many of our community boards, LaunchPads, DSKs and EVMs (Evaluation Module) kits. For MSP devices this license is code size limited. The limit is 16KB for MSP430 and 32KB for MSP432. When using MSP432 you can use any class of debug probe (XDS1xx, XDS2xx, XDS5xx) but the code size limit will be in place. For all other devices the license is restricted to only work with the onboard emulation on the board, XDS100 debug probes, XDS110 debug probes as well as the XDS560v2 mez
  17. I sent an email to TI here is the response I got back: "This promo isn't too good to be true! It just looks like there were some code pushes that messed with orderable bundles of this nature. The TI store team has fixed this issue and it should be orderable now. :)" -enjoy
  18. Yes there is a page on the TI site to manage the node if you need to switch. I've switched 2 times in the last 4 years.
  19. I had seen the offer on this page: http://www.ti.com/tool/msp-exp430g2
  20. sorry .. I didn't actually try it. They are such teasers.
  21. [NOTE] Before you bother trying to find this deal, read this post: http://forum.43oh.com/topic/10050-ccs-70-will-be-available-without-license-requiremens/ and this TI web page: http://processors.wiki.ti.com/index.php/CCSv7_Changes "Licensing With the release of Code Composer Studio v7 TI is no longer charging for licenses. You can simply download the tool and start using it. Along with this the end user license agreement has changed to a simple TSPA compatible license." [/NOTE] I didn't see anyone else mention this offer so here it is. Use the link below to buy the promo vers
×
×
  • Create New...