Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by NurseBob

  1. " Multiple libraries were found for..." You've got a configuration error message. Time to read the docs on porting from other libraries. How-To: Porting Libraries Posting a Library for Energia Some Misconceptions about Libraries The above may provide guidance. I am not able to help much beyond this suggestion as I'm deeply involved in other non-coding projects at this time.
  2. Have you attempted #1 ? If so, what error messages, if any. If you've not even tried, time to edit code and see what happens. Re: #2 - time to read the docs... The calls to SoftwareSerial are well documented. As to the speed limit, yes. Google is your friend regarding both questions; there are dozens, if not hundreds of answered questions and coding examples on the topics of porting and serial communications.
  3. With C/C++ compilers you want to address/fix errors in the order they are presented - that is, read and understand that first error. Generally, compilers will cascade a long series of errors that all are triggered by that first error. FWIW, a missing semi-colon can trigger a similar long list of errors. So, looking at your first error message: " C:\Users\Harizazmi\Desktop\energia-1.8.7E21\hardware\energia\msp430\libraries\SoftwareSerial\SoftwareSerial.cpp:81:2: error: #error This version of SoftwareSerial supports only 16MHz processors" It's telling you that you have not selected the 16MHz version of the launchpad. If I remember correctly the F5529 board has two entries, one for 16MHz and the second for 24MHz. The SoftwareSerial library is not compatible with the 24MHz version. Further, hardware serial is the preferred library with the F5529. So, changing the board in Energia and calling the other library in your code should be your first steps.
  4. There's far too little information in your question to be able to answer. A screenshot or text file of the Actual errors will help point to the first problem. Debugging compile and link errors requires a structured approach, usually starting with a google search of the reported error statement. 1) Have you updated (ported) the Gamebuino-Meta.h for Energia compatibility? 2) Have you converted the bitmaps to a "C" representation - TI offers both sample code (CCS) and tools for that display with a '5529. Take a look at the MSPWare library for CCS sample code and comments, which may help.
  5. NurseBob

    MSP430FR2355 SAC DAC programming with Energia

    I can't specifically answer for Entergia, but from what I can see, it looks like you'll need to use CCS and perhaps the driver library.
  6. NurseBob

    MSP430G2 no communication

    You've described the problem, but supplied no information to allow remote diagnosis. Without a schematic and related code, there's really no way to help, aside from the most general suggestions regarding jumpers, pins and I2C pullup resistors, all of which you've likely read (and hopefully applied). Finally, you mention migrating an existing project; did you have that working, and if so, under what version of Energia? Re: UART - there may be no hardware UART on your chip. "If your Launchpad is version 1.4 or earlier, the chips that it shipped with have no hardware UART and thus, no hardware configuration is necessary, but you must use the SoftwareSerial library included in Energia to communicate over the serial port." You indicate you have an MSP430G2452, according to SLAU318G, there is only USI availble on that chip, the UART is on the G2553's USCI impementation.
  7. NurseBob

    I2C- MSP-EXP430G2ET

    @Anshikajain Sorry, I've been offline for a couple of days. Not really sure what your question was, but FWIW, I rarely use Energia. That said, when I2C fails in Energia, it's almost always a configuration problem. My suggestion with the video was focused on how they configured the '430 jumpers. The G25 devices were significantly different from the later versions, and many have tripped over jumpers incorrectly configured. In your photo it appears you have the jumper P1.6 placed for the LED, and that was the very first comment in the video - the device will not work in I2C mode if that jumper is placed (at least on the older boards). Looking at the docs, pins P2.1 and P2.2 are designated as SCL and SDA (sw), which I presume means software, not hardware I2C? It's difficult to see in your photo, but it looks like you're using P1.6 and P1.7. So, the video's comments, and this from Energia docs: " When using I2C When using the Hardware I2C (Wire library) with SCL on P1.6 and SDA on P1.7 on the MSP-EXP430G2 you should remove the P1.6 jumper (GREEN LED) so that the LED doesn’t interfere with the I2C SCL signal... " Energia reference I don't know if I'm able to help much further. Please check your jumpers!
  8. NurseBob

    I2C- MSP-EXP430G2ET

    Take a look at this youtube, it may help...
  9. NurseBob

    Hullooo ! New to mcus!

    > I am currently studying for a computer engineering degree Cool > My first project (besides a blinking led) is to play a classical piece on an electric buzzer! A couple of thoughts: 1) Buzzers are not speakers; typically they have a very limited repertoire, like a single frequency... 2) Depending on the device you are using, you may find significant memory limitations. So, as always, RTFM the specs before you buy... Have fun
  10. NurseBob

    My msp430 not receiving power?

    Glad to be of assistance! :)
  11. NurseBob

    My msp430 not receiving power?

    To enable a hardware reset of the device. If the RST/NMI pin is low, the device is held in a perpetual reset. It needs to be high for the chip to run. Having made a similar omission years back I found out the need. Take a look at any of the LP schematics, or better yet, the specs. In SLAS590M.pdf (for a msp430F5529) you'll find a description on pg. 18. RST/NMI/SBWTDIO - Nonmaskable interrupt input, Spy-Bi-Wire data input/output when Spy-Bi-Wire operation activated
  12. NurseBob

    My msp430 not receiving power?

    @birgilfan, a simple schematic would be much more useful. Impossible to tell from the photo how you have wired the system. Do you have a 47K resistor between Vcc and reset? If not, nothing will work. The '430 needs a pullup on the reset line. I can see there's a resistor for the LED, but can't tell if it's also on the RST/SPWTDIO pin.
  13. NurseBob

    i2C Slave not working on MSP430FR5969

    What i2c device are you connecting? What does is do? What's the device address? (per device specs) Is it really 2? Are you using pullups? I2c requires some type of pullup, and in general, the internal resistors on the '430 devices are not an appropriate value, so external are usually used. Note: by default, i2c comms are on LP pins 9 (SCL) and 10 (SDA) not 15 &&16 - P1.6 and P1.7, Energia defaults to spi on those pins.
  14. NurseBob

    SD card bootloader - convert assembler to C++?

    In addition to Rickta59's reply, you may want to read-up on bootloaders. TI published SLAA600D to help with such a task (in C, not C++)
  15. NurseBob

    Timer triggered A/D on the f5529 ?

    Hi MCH, Basically, the timer(s) and ADC are indpendent peripherals. So, what you do is set a timer at the interval you're interested in and either: 1) In the timer event handler trigger the ADC to read Or, 2) Set a flag that's read in a main loop to trigger the ADC You might find some guidance here. HTH
  16. NurseBob

    Splitting a string of data in Energia.

    Given that your issue is parsing a string, I'd suggest looking at this or other string handling code in C++.
  17. NurseBob

    Using microSD card to update firmware

    Also, though for a different chip, you might find the discussion and code for "Simple MSP430F5529 bootloader" useful too.
  18. NurseBob

    Using microSD card to update firmware

    I popped "microSD" into the search box on your question's page, and among many finds, this one may answer some of your questions. https://forum.43oh.com/topic/3946-msp430g2553-microsd-wav-music-player/?tab=comments#comment-35782 You may also want to look at E2E; I've found that to be a great resource as well, both in terms of searching previously asked questions as well as responding to my own queries. Not sure about current demands, but most of those types of operations have voltage limitations (many require >2.7V or more to function reliably).
  19. NurseBob

    Using 2 UARTS module at same time on msp432

    That approach has worked for my msp430F5529 projects.
  20. NurseBob

    BOOSTXL-SHARP128 with MSP-EXP430FR5969

    I'm going to assume you want to actually learn, and not just be handed "the answer." Take a look at this on stackoverflow, it should help you figure out a solution your problem.
  21. NurseBob

    CapTouch MSP432

    I think the cap touch demo is targeted to the CCS development environment, not Engergia. I see there is a captouch Energia library but see that it was not targeted to an MSP432 (as you noted). I don't know what the effort would be to port to a 432. FWIW, using CCS with interrupt-based code is likely to be far easier for your students to grasp and follow. There are numerous TI examples available that are focused on interrupts and other msp430 capabilities. Energia has a very sophisticated approach to interrupt handling (intentionally designed to hide the low-level code) and can be quite challenging for the uninitiated. You might also look to CCS 432 code examples for handling cap touch...
  22. NurseBob

    library for GSM sim 800 using energia

    As previously noted, the mcu you're working with is probably not a good match for the device you want to work with. Aside from that, read the compiler errors and resolve them starting with the first one. C/C++ compilers will cascade errors, and while subsequent errors may be relevant, generally dealing the first one is the most effective approach. As you may, or may not, know, a single missing semi-colon can generate hundreds/thousands of error statements...
  23. At the risk of doing exactly that... I've had occasional issues with various usb/serial peripherals on windows 10 on both my workstation and laptop, especially after MS updates. The solutions have typically been to look at changes in MS security/privacy policies which will disable device access and then render misleading error messages (e.g. "the device is in use by another application"). Your problem description doesn't seem to neatly fit what I've seen, but it might be worth taking a look.
  24. NurseBob

    MSP430FR2433 SleepSeconds 18ua

    Have you looked at what's happening "under the hood" with CCS or similar? All things considered, I find it amazing that the current is as low as it is. Energia is a great place to start and experiment, but it's not intended to replace coding that is far closer to the metal, er, silicon. Given it's heritage as a msp430 version of the Arduino, it's a very impressive piece of work. But, to manage the supporting classes, and the ever-present loop, it is constrained if your're looking for ultra-low power apps. You have already demonstrated that differential with your driverlib version.
  25. NurseBob

    What are the types of MLCC capacitor brand?

    I think you have a lot of reading to do... MLCC - Multilayer Ceramic Chip Capacitors are surface mount devices. You link to a through-hole electrolytic cap; a very different device. So, time to start looking at basic books/web references for the very basics of electronics. Your question is similar to asking: How big is a house? There is no sensible answer to your question. I'd suggest you might start with wikipedia as a first step. This is fun stuff, but you need to build a foundation of knowledge on the basics.