Jump to content

elpaso

Members
  • Content Count

    66
  • Joined

  • Last visited

  • Days Won

    1

elpaso last won the day on October 27 2013

elpaso had the most liked content!

About elpaso

  • Rank
    Level 1

Contact Methods

  • Website URL
    http://www.itopen.it

Profile Information

  • Gender
    Not Telling
  • Location
    Italy, somewhere in the mountains near Turin
  • Interests
    Linux, MCUs
  • Github
    https://github.com/elpaso/energia-makefile

Recent Profile Visitors

343 profile views
  1. elpaso

    Quadcopter BoosterPack

    If it's compatible with MSP430 or Stellaris LPs, and if shipped to Italy I'll get one!
  2. elpaso

    Wolverine Launchpad

    Wonderful, it's also possible to use the debugger from within eclipse...
  3. elpaso

    Wolverine Launchpad

    It works! The people on this forum is great! Thank you all! So far: I've compiled and loaded the example in MSP-EXP430FR5969/Software/430BOOST-SHARP96_GrlibDisplay This is what I've changed: touch grlib/assert.h echo "#define assert(x)" > grlib/assert.h then I had to rewrite an asm function, the __reverse did not work (help needed) but the first works: cat LcdDriver/Sharp96x96utils.h /* --COPYRIGHT--,BSD * Copyright (c) 2013, Texas Instruments Incorporated * All rights reserved. [.....] * --/COPYRIGHT--*/ //***************************************************************************** // // Sharp400x240utils.h // // //***************************************************************************** #ifndef SHARP96X96UTILS_H_ #define SHARP96X96UTILS_H_ unsigned char reverse(unsigned char { unsigned char tmp = 0; unsigned char i=0; for( i=0; i<8; i++ ) { __asm__ ( " rrc.b %[b] \n" " rlc.b %[tmp] \n" : [tmp] "+r"(tmp) : [b] "r"(); } return tmp; } // THIS DOES NOT WORK (endless loop) unsigned char __reverse(unsigned char x) { __asm__ ( " mov.b R12, R13 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " rlc.b R13 \n" " rrc.b R12 \n" " reta \n" : // no output : [x] "r" (x) // input : // no memory clobber ); } #endif /* SHARP96X96UTILS_H_ */ Using the makefile corrected by @@pabigot everything works. I was also able to debug with gdb to find out the reverse problem.
  4. elpaso

    Wolverine Launchpad

    Thanks! I'm not an expert in Makefiles so I've probably done a lot of mistakes (I've posted a link to the makefile I'm using in a previous message: http://forum.43oh.com/topic/5011-wolverine-launchpad/page-2#entry44970 ). I'm only using free (as in speech) software so if I can't use mspgcc I feel I have no other options. Please let me know if yout tests are successfull. Here is the memory map, if anybody can read this http://dpaste.com/hold/1662533/
  5. elpaso

    Wolverine Launchpad

    Yes, I took the example from an introductory pdf (slap133.pdf): #include <msp430.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer. This line of code is needed at the beginning of most MSP430 projects //This turns off the watchdog timer, which can reset the device after a certain period of time // Configure GPIO P1DIR |= 0x01; // P1DIR is a register that configures the direction (DIR) or a port pin as an output or an input // To set a specific pin as output or input, we write a '1' or '0' on the appropriate bit of the register. // P1DIR = <PIN7><PIN6><PIN5><PIN4><PIN3><PIN2><PIN1><PIN0> // Since we want to blink the LED2, we want to set the direction of Port 1, Pin 0 (P1.0) as an output // We do that by writing a 1 on the PIN0 bit of the P1DIR register // P1DIR = <PIN7><PIN6><PIN5><PIN4><PIN3><PIN2><PIN1><PIN0> // P1DIR = 0000 0001 // P1DIR = 0x01 <?? this is the hexadecimal conversion of 0000 0001 // The OR command (|) will always set a bit // P1DIR|= 0x01 is equivalent to P1DIR = P1DIR | 0x01 // Regardless of value in P1DIR, this OR operation will set Bit0 (or Pin0) to 1?> (1|0 = 1, 1|1 = 1) PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power?on default high?impedance mode to activate previously configured port settings while(1) // This while(1) loop will cause the lines of code inside it to loop infinitely { P1OUT ^= 0x01; // Toggle P1.0 using exclusive?OR operation (^) // P1OUT is another register which holds the status of the LED. // '1' specifies that it's ON or HIGH, while '0' specifies that it's OFF or LOW // Since our LED is tied to P1.0, we will toggle the 0 bit of the P1OUT register // The exclusive?OR command (^) will always toggle a bit at a certain position // P1OUT^= 0x01 is equivalent to P1DIR = P1DIR | 0x01 // Regardless of value in P1OUT, this OR operation will toggle Bit0 (or Pin0) (1^0 = 1, 1^1 = 0) __delay_cycles(1000000); } } This compiles just fine with msp430-gcc and mspdebug tilib uploaded it perfectly (I'm on ubuntu LTS 64 bit and using latest energia binaries).
  6. elpaso

    Wolverine Launchpad

    Thanks, I will not loose my time on it then. BTW a simple blink.c was built and uploaded without a glitch.
  7. elpaso

    Wolverine Launchpad

    Just a quick update: I've upgraded the binaries to latest energia release 0101E0011, same output. I've tested the compiler with blink.c and it works just fine. Here is the makefile: https://gist.github.com/elpaso/9227591
  8. elpaso

    Wolverine Launchpad

    Hi, I'm using energia build of msp430gcc (it was working fine with all LP until F5529), here are some infos: # output of "locate" ~/energia-0101E0010/hardware/tools/msp430/msp430/include/msp430fr5969.h ~/energia-0101E0010/hardware/tools/msp430/msp430/lib/ldscripts/msp430fr5969/periph.x ~/energia-0101E0010/hardware/tools/msp430/msp430/lib/ldscripts/msp430fr5969/memory.x ~/energia-0101E0010/hardware/tools/msp430/bin/msp430-gcc --version msp430-gcc (MSPGCC 20120406 (With patches: sf3540953 sf3559978)) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
  9. elpaso

    Wolverine Launchpad

    Hi, Just got mine today. I've downloaded slac645.zip that contains driverlib and examples. I'm trying to compile the GrlibDisplay example with gcc, I've patched a few things but there are still error: ~/energia-0101E0010/hardware/tools/msp430/bin/msp430-gcc -mmcu=msp430fr5969 -g -Os -Wall -Wunused -I ~/energia-0101E0010/hardware/tools/msp430/msp430/include/ -I ~/Texas_Instruments/MSP-EXP430FR5969/Software/430BOOST-SHARP96_GrlibDisplay/grlib/ -I ~/Texas_Instruments/MSP-EXP430FR5969/Software/430BOOST-SHARP96_GrlibDisplay/driverlib/MSP430FR5xx_6xx/ -MMD -MP -MF .dep/main.c.dep -o main.o main.c .lib/lib.a main.c:55:6: warning: return type of 'main' is not 'int' [-Wmain] Linking main.elf ~/energia-0101E0010/hardware/tools/msp430/bin/msp430-gcc -mmcu=msp430fr5969 -Wl,-Map=main.map main.o .lib/lib.a -o main.elf main.o:(.vectors+0x0): multiple definition of `__ivtbl_64' ~/energia-0101E0010/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/mcpu-430x/mmpy-16/crt0ivtbl64.o:(.vectors+0x0): first defined here ~/energia-0101E0010/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: main.elf section `.vectors' will not fit in region `vectors' ~energia-0101E0010/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `vectors' overflowed by 128 bytes collect2: ld returned 1 exit status make: *** [main.elf] Errore 1 Any idea? Anybody tried to compile driverlib with gcc?
  10. @@simpleavr you're a genius! I really like the minimalistic approach, this is pure art. Thanks for this nice project.
  11. elpaso

    Christmas PCB

    Yes, please post some images, I'm a Kicad user, I've installed Eagle and tried to open your attachments but I'm on Ubuntu 12.04 and it probably ships with an older version of Eagle and I couldn't open your files. An hi-res picture of the assembled board would also help, my idea was to let my 10 years old son to assemble the board by himself, but he needd good instructions for that.
  12. elpaso

    Christmas PCB

    Hi, I've received the kit, does anybody knows where I can find build instructions, schematics and code for msp430-gcc ?
  13. elpaso

    MSP430G2211 kicad libraries

    Forget it, I've found the msp430 libs in the standard kicad distribution.
  14. elpaso

    MSP430G2211 kicad libraries

    Hi, I'm using kicad for my designs, I've found a kicad library on http://processors.wiki.ti.com/index.php/MCU_KiCad_Library but it doesn't seem to contain the standard DIP 14pin packages, does anybody know where to find a kicad library for MSP430G2211 and friends?
  15. elpaso

    Chronos: (open) where to start?

    Thanks! This explains why my site was so slow yesterday ;-) BTW, In the meantime I've also added a short Hello World tutorial: http://www.itopen.it/2013/11/29/openchronos-hello-world-tutorial/
×