Jump to content

Keepcool

Members
  • Content Count

    12
  • Joined

  • Last visited

  1. One workaround for the old packages in ubuntu is to install the .deb directly from the Debian site, they where at the most recent msp-gcc version, and its just a simply click in the link and choose open with Package Manager.
  2. Thats right, start with the code, and if you have doubts keep posting. If there is no ambition there is no motivation to work and learn
  3. To read rpm,the easy way is to use an external interrupt, and count how many pulses the micro receives in a know time base(this requires a timer) and then divide the pulses number by the time base, for example, set a timer to overflow every 100ms, the code in the timer ISR would be something like this: rpmVal = intCount *600; intCount = 0; The intCount var is the variable that stores how many interrupts have passed, and as the time base is 100ms to have rpm you just need to multiply by 600 ( 0.1s * 600 = 60s).
  4. Pcb design is an art, you start slowly with simple projects, even something as simple as a voltage regulator(a typical LM7805) and a couple of capacitors, them you start dwelving into larger schematics, bigger and more complex projects and it starts to flow naturally how you route the pcb's and you start to do it better and faster, for me pcb design is an excellent mental exercise and a nice way to spend an afternoon or to pull an all nighter when time is a constrain, I recommend you to start with Cadsoft Eagle, and to read this nice Sparkfun tutorial that also provided you with their library that has a lot of usual parts all in one place: http://www.sparkfun.com/tutorials/108 And if you like, you can also watch this small series: just follow all the lessons and you will be a pcb expert in no time.
  5. A big thanks to everybody! Some more tweaking around the udev files got it working, it was all due wrong chars being used in the udev file. The code provided by mr Barr is now running perfectly, so so happy to see this working, now I will learn how to use this new critters. Thanks for all the help provided.
  6. Good evening, you are right mr. Pabigot, in the mailing lists they said me the same, I was missing the msp430-libc, I'm used to include lib math in the avr's and that is -lm and it never crossed my mind that libc would be -lc, it finally compiles the code! Now, onto the next problem, I cant get the mspdebug to work, and if I try to run it under sudo I get this: sudo: mspdebug: command not found
  7. I still get the same error after using the .deb package from the official Debian site, I think the problem is due to a wrong path defined somewhere in the msp430mcu utility, because it reports this: senso@lolstation:~$ msp430mcu-config --scriptpath /home/senso/local/msp430//msp430/lib/ldscripts I dont quite understand if it is two paths and there is a missing space between them or there is an extra / that shouldn't be there. And the packages available for ubuntu are from last year, and are lacking lots of updates, or am I wrong? Thanks again for the help, I think I might also ask for help im the mailing list of msp-gcc.
  8. Keepcool

    MSP430G2553 I2C

    I have always read that for 3.3v systems 4k7 ohms pull-ups should be used, and for 5v systems the usual value is 10k, the exact value should be measured, to ensure a fast rising of the signal levels.
  9. Keepcool

    MSP430G2553 I2C

    10K pull-ups are a bit weak, can you try some 4.7k and see if the results are better?
  10. Thanks for the fast response, I have tried your switchLed example and all I have back from make is this: senso@lolstation:~/mspProjects/switchLeds$ make rm simpleSwitch.elf rm: cannot remove `simpleSwitch.elf': No such file or directory make: [clean] Error 1 (ignored) msp430-gcc -Wall -g -Os -mmcu=msp430g2553 -o simpleSwitch.elf main.c /home/senso/local/msp430/lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status make: *** [simpleSwitch.elf] Error 1 Should I start to worry about a badly compiled compiler? EDIT: I have removed my hand-compiled compiler and added this package to my ubuntu install: http://packages.debian.org/unstable/main/gcc-msp430 The resultas are the same.
  11. Good evening, I'm from Portugal, my name is Tiago, and I'm an electronics and telecomm student, I love designing hardware, creating new things and I love to sit down and route some complex pcb's, I also like programming, but more in the micro-controller domain than in the computer domain, having restricted everything is entertaining, I have used avr's in the past, and now want to learn a new architecture, so I choose the msp430, they seem easy to use. Best regards.
  12. Good evening, I have been a long user of atmegas but I always used the Atmel Studio, so I never played around with makefiles and whatnot, I have some experience using linux/ubuntu and I have migrated to the latest LTS because I nuked my other instal when updating to this one, so long story short, I compiled the msp-gcc compiler from source, all went well, but using the example makefile and source code from here: Cant post links so the link is to the usage section in the MSP-Gcc Wiki. In the examples section of that page, all I get from the makefile is this: Makefile:46: *** missing separator. Stop. And older examples use a diferent naming convention in the -mmcu switch so they are un-usable for me right now. Any help?
×
×
  • Create New...