Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. Rickta59

    CC430F5133 programming

    You sound like a bot Shivkumar, are you?
  3. Last week
  4. Signaller

    MSP430G2 no communication

    Hi, I've briefly checked code changes in twi.c and was sure that it would work. So, no wonder that I obtained signal on SCL: SDS00002.BMP But I need to say, that I didn't use any real slave sensor (because I didn't want disassamle that device where I put G2553) just used another arduino as a slave sender. It was possible to obtain data from slave, so I think everything is ok. StefanSch, thank you very much again. Fun fact I started with MSP430 3-4 years ago and wasn't able to run TWI. Found patch here on forum. And now I came back with same issue, and once again got an answer. Thank you all again.
  5. Maxim80

    MSP430FR2355 problem to connect with nRF24L01+

    Sorry for the late reply, yes it works very well with this new file, But there is only one available SPI on Energia , USCI B1: - MOSI = P4.6 - MISO = P4.7 - CLK = P4.5 #include <SPI.h> #include <Enrf24.h> #include <nRF24L01.h> #include <string.h> Enrf24 radio(P5_0, P1_4, P2_2); //WIRING MSP430FR2355 P5_0=CE, P1_4=CSN, P2_2=IRQ -> MOSI P4.6, MISO P4.7, SCK P4.5 const uint8_t txaddr[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0x01 }; const char *str_on = "ON65"; const char *str_off = "OFF65"; void setup() { Serial.begin(9600); Serial.println("RED10"); SPI.begin(); SPI.setDataMode(SPI_MODE0); SPI.setBitOrder(1); // MSB-first radio.begin( 1000000, 76 ); // Defaults 1Mbps, channel 0, max TX power radio.setCRC( 1, 1 ); radio.setSpeed(250000); radio.setTXaddress((void*)txaddr); Serial.println("RED10"); Serial.print("STATE: "); Serial.println(radio.radioState()); Serial.print("SPEED: "); Serial.println(radio.getSpeed()); } void loop() { Serial.println("ON_1"); radio.print(str_on); radio.flush(); // Force transmit (don't wait for any more data) delay(1000); Serial.println("OFF_1"); radio.print(str_off); radio.flush(); delay(1000); } Thanks you !!!
  6. Signaller

    MSP430G2 no communication

    StefanSch, thank you. If it is necessary just to replace existing file with attached above, I will test. I will inform you once I get any results.
  7. SuprDave

    Why Altium?

    Altium users love the product, but very few people have experience with it. AutoCAD seems to be more prevalent. We are an Altium shop, but I'm having trouble filling a seat because no one has experience with it. Should I abandon my search for an experienced Altium person and just hire an AutoCAD engineer? If so, how hard is it to bring someone up to speed on Altium? Thanks, SuprDave
  8. StefanSch

    MSP430G2 no communication

    Hi, I2C should now also be solved. The fix is pushed the github. But the master there has a lot of fixes and cleanup so that it is not easy to take the file in put it into the current release as fix. The here attached version should do that but could not test it on the current release version so far. If you like to give it a try i would be happy on any feedback. twi.c
  9. Shivkumar

    CC430F5133 programming

    The TI CC430 family of ultra-low-power system-on-chip (SoC) microcontrollers with integrated RF transceiver cores consists of several devices that feature different sets of peripherals targeted for a wide range of applications. Well-designed cheap professional programmer, Production of high-density SMD technology, a unified user interface, easy to use, fully functional, reliable program running of application software, ultra-small code -runs faster, supports bilingual.
  10. Bergilfan

    Hullooo ! New to mcus!

    Yes!! Thank you!
  11. Bergilfan

    Hullooo ! New to mcus!

    Haha yeah I found out that I could only play up to 100 notes before runnig out of memory!!
  12. Rickta59

    MSP430G2 no communication

    This is the change in Oct of 2015 that broke it: https://github.com/energia/Energia/commit/3a79177338cab6e9724144038947db820a70e4b1#diff-ef6c05942e53197e6f1507545468bf55
  13. Signaller

    MSP430G2 no communication

    Thank you, I hope if someone find this topic, it will be a little bit easy to find solution.
  14. Signaller

    MSP430G2 no communication

    Thank you very much StefanSch I got UART working after this change. However setModule(0) didn't help. I still see no signal changes on I2C pin 14,15. I played around with it a little bit, but have found no solution. (BTW I2C on pins 9/10 works, but just because it uses twi_sw.c lib.) At this point I remembered that another project for which I used second MCU from this kit can be G2553.(I thought that launchpad had two same microcontrolles). I disassembled that project and after few changes of code released that I can swap microcontrollers. So, now I have MSP430G2553 which I believe is more suitable for first project, because it has hardware UART. And setModule(0) works as expected for G2553. So, as a conlusion I can say i2c on pins 14, 15 doesn't work for MSP430G2452. I hope it will be resolved in future.
  15. Rickta59

    MSP430G2 no communication

    I see that I mentioned it on this site: April 2016 I even created an issue for was closed but never addressed: https://github.com/energia/Energia/issues/874
  16. Rickta59

    MSP430G2 no communication

    It didn't, it has been broken for years and years. It stopped working when 1.6 was released.
  17. StefanSch

    MSP430G2 no communication

    To solve the UART issue go to the pins_energia.h file for the selected device MSP-EXP430G2452LP and try to update / modify this lines: static const uint8_t DEBUG_UARTRXD = 4; /* Receive Data (RXD) at P1.2 */ static const uint8_t DEBUG_UARTTXD = 3; /* Transmit Data (TXD) at P1.1 */ This seems to be wrong in the current version but i have no idea why this worked before as i could not find an update where this has been changed. To solve the issue with I2C you need to select the other I2C interface with setModule(0); The default mapping of the I2C interface to the pins 8 and 9 change a while ago but with the setModule you still can select the other I2C interface if available.
  18. Nisha

    Hi, I need a 2.0/2.2 inch TFT LCD compatible with TM4C123GXL. I am using energia platform but cannot find a suitable library for the same.  Currently I have a 2.0 inch TFT color LCD but I am not able to interface it with the launchpad.

    Below is the link of my LCD:

    https://robu.in/product/2-0-inch-spi-tft-lcd-color-screen-module-ili9225-serial-interface-176-x-220/?gclid=EAIaIQobChMIj7az7PGp4gIV1oyPCh1R0gEjEAQYASABEgLwovD_BwE

     

  19. Hi, I have TM4C123GXL launchpad and want to interface a TFT LCD (2.0 inch TFT ILI9225) with it. I am using energia platform but I am not able to find any compatible libraries for the same. Kindly suggest me a way out or suggest a new 2.0/2.2 inch LCD compatible with the board. Below is the link of the LCD https://robu.in/product/2-0-inch-spi-tft-lcd-color-screen-module-ili9225-serial-interface-176-x-220/?gclid=EAIaIQobChMIoMPU--ip4gIVwYiPCh0WkwyHEAYYASABEgLECvD_BwE
  20. This link may be helpful https://jspicer.net/2018/07/27/solution-for-i2c-busy-status-latency/
  21. MaryWilliams

    How do I move from the launchpad to a custom schematic

    Has anyone been able to find out which is the best printing among those listed here? Printing service in Singapore
  22. Signaller

    MSP430G2 no communication

    Thank you for answers. Sorry, if I missed some information. I use launchpad version 1.5. I didn't provide schematic because nothing is used except launchpad board and mcu in it. Also as I mentioned in start post I use oscilloscope, so we can exclude issues with drivers on pc, jumpers or schematic. And MCU clocking works as expected. As for now, if I compile ASCIITable which is default example in the IDE (I can provide code here, if necessary) in old energia 0101E0009 I see transmission on UART pin. If I compile the same code in the newest version of IDE 1.8.7, there is no changes on pin at all. If I didn't miss something important, I think that problem somewhere in the changes of code of the core. But I totally unfamiliar with msp430 registers' settings. So, I at least need an advice where to start.
  23. Rei Vilo

    MSP430G2 no communication

    There are three different releases of the MSP430G2 LaunchPad. Please be more specific. See Information to Provide When Asking for Help http://energia.nu/pinmaps
  24. 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.
  25. Signaller

    MSP430G2 no communication

    Hello, I'm trying to migrate my old project for MSP430G2452 from Energia 0101E0009 to the last version 1.8.7E21. However I got a lot issues. 1. Controller starts to slow - as I understood the issue is in the enableXtal() function which tries to find clock crystal, which I don't use. I just commented it out in init_clock() directly in core and it helped. 2. Actuall frequency of MCU was incorrect (It is much slower) - found answer on forum here https://forum.43oh.com/topic/13473-blink-example-too-slow/. And now it works as expected. 3. Now I'm trying to use Serial. But it seems that it has some issue too. I'm using basic scetch from example - ASCIITable and connected my oscilloscope directly to UART ( P1.1, P1.2). But unfortunatelly there is no any movement on pins. I added some basic digitalwrite command to scetch and see that program is executed, but no UART output. Of cause the same code compilled in old version of Energia works fine. What I can try else? 4. Also I use separate PCB for my project, therefore I need i2c on pins 14,15 as it was in old revisions ( default i2c was moved in to pin 9,10 as I see). But I couldn't make it work too. I tried an advice from this comment https://github.com/energia/Energia/issues/486#issuecomment-200729667, but still see nothing on my oscilloscope. I tried to download simple scetch like master-reader from examples, controller works but there are no data on SCL or SDA. I belive there is some problem with configuration but without working serial, it is hard to debug i2c. Sorry, if it is already solved in some topic, but after a day of googling and experimenting I gave up.
  26. Earlier
  27. Rei Vilo

    MSP430FR2355 problem to connect with nRF24L01+

    How does this issue compare with pull requests added but not yet released at https://github.com/energia/msp430-lg-core/tree/master/libraries/SPI and https://github.com/energia/msp430-lg-core/tree/master/variants?
  28. energia

    i2C Slave not working on MSP430FR5969

    The MSP430 Wire buffer length is set to 16. If you need a larger buffer, you can edit the file: Linux: <Energia directory>hardware/energia/msp430/libraries/Wire/Wire.h Windows: <Energia directory>hardware\energia\msp430\libraries\Wire\Wire.h macOS: <Energia.app directory>/Contents/Java/hardware/energia/msp430/libraries/Wire/Wire.h and in: Linux: <Energia directory>hardware/energia/msp430/libraries/Wire/utility/twi.h Windows: <Energia directory>hardware\energia\msp430\libraries\Wire\utility\twi.h macOS: <Energia.app directory>/Contents/Java/hardware/energia/msp430/libraries/Wire/utility/twi.h And set BUFFER_LENGTH / TWI_BUFFER_LENGTH to a larger number.
  1. Load more activity
×