Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by LiviuM

  1. As I said, I haven't use them. Have a look in the (4) mentioned files at the comments to the functions. I suppose you should have something like following in your code: uint32_t readParity0 = UARTParityModeGet(UART0_BASE); // until uint32_t readParity7 = UARTParityModeGet(UART7_BASE); UARTParityModeSet(UART0_BASE, UART_CONFIG_PAR_NONE); //or UARTParityModeSet(UART0_BASE, UART_CONFIG_PAR_EVEN); //or UARTParityModeSet(UART0_BASE, UART_CONFIG_PAR_ODD);
  2. Hi Gino, try Serial2, Serial3... for the further serial ports (see energia/hardware/tivac/1.0.3/cores/tivac/HardwareSerial.h && .cpp files for details): extern HardwareSerial Serial; extern HardwareSerial Serial1; extern HardwareSerial Serial2; extern HardwareSerial Serial3; extern HardwareSerial Serial4; extern HardwareSerial Serial5; extern HardwareSerial Serial6; extern HardwareSerial Serial7; For parity I have no idea if it works, but in the energia/hardware/tivac/1.0.3/system/driverlib/uart.h && .c files there are some functions handling the parity: extern void UARTParityModeSet(uint32_t ui32Base, uint32_t ui32Parity); extern uint32_t UARTParityModeGet(uint32_t ui32Base); Best regards, Liviu
  3. A little bit late, but... Have you seen/tried my changes to the energia's servo library? Have they helped? Liviu
  4. Hi, I found my way easier in the old format than in the actual. Liviu LE Can't really say why, maybe I'm getting old.
  5. You have the PFatFs library files twice in the Energia's searching path, once in the library/PFatFs folder and once in the sketch folder.
  6. Just burned the Blink example in my MSP430G2231LP Launchpad using Energia 1.6.10E18 under openSuse Leap 42.1 Trying to open interface 1 on 022 Initializing FET... FET protocol version is 30066536 Set Vcc: 3000 mV Configured for Spy-Bi-Wire Sending reset... Device ID: 0xf201 Code start address: 0xf800 Code size : 2048 byte = 2 kb RAM start address: 0x200 RAM end address: 0x27f RAM size : 128 byte = 0 kb Device: MSP430F2012/G2231 Number of breakpoints: 2 fet: FET returned NAK warning: device does not support power profiling Chip ID data: f2 01 02 Erasing... Programming... Writing 810 bytes at f800... Writing 32 bytes at ffe0... Done, 842 bytes total
  7. Hi, On the CCS Linux wiki page are few more details about supported processors. Cheers, Liviu
  8. There are instructions in Internet on how to fix Windows Updates - you should download and install some files per hand. Searching after "broken Windows Updates" should help to find them.
  9. LE I'm almost "thrilled" by the amount of details people asking for help is giving. We all have crystal bowls at home.
  10. Just tried to read some data from a DS1307 using my TivaC and the (slightly changed - use the i2c1 module) master_reader example from the wire library. The DS answers (ACK) to the addressing (0x68) and gives back some data. No idea if the data is correct, but the logic analyzer can decode it. Hardware connections: DS Launchpad Vdd -> +5V Gnd -> Gnd SDA -> SDA1 (PN_4, Launchpad pin 50), 10KOhm -> +3V3 SCL -> SCL1 (PN_5, Launchpad pin 49), 10KOhm -> +3V3 The working code: #include <Wire.h> void setup() { Serial.begin(115200); // start serial for output delay(200); Serial.println("Serial interface OK"); Wire.setModule(1); Wire.begin(); // join i2c bus (address optional for master) } void loop() { Serial.println("ask some data"); delay(500); Wire.requestFrom(0x68, 5,false); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } Serial.println(); // delay(500); }
  11. Nice, I wasn't expected it to work with two parallel TX signals. Sorry for the false hints (and not telling you that you have wrong connections :)).
  12. It was something, but I just forgot it.
  13. Arduino -> PC & MSP: one output TX (arduino) "speaking" to two inputs (RX PC & RX MSP) Arduino <- PC & MSP: two outputs (TX PC & TX MSP) trying to drive in the same time different logic levels on the same line (RX Arduino).
  14. How? Your Arduino is connected to the MSP board. Is it connected to the PC in the same time? I don't think you can share the U(S)ART link in this way. When you check it with the oscilloscope, is the MSP board connected to the Arduino/PC, or alone?
  15. Hi, how do you know it isn't working?
  16. On my linux machine, the "extra" boards are installed under /home/liviu/.energia15/packages/energia/hardware/... No idea how it looks under Windows/mac.
  17. Hi, it seems, the Arduino's SPI library has an SPISettings class and Energia's SPI library not. Some older version of the mfr522 library (version=1.1.8, for example) don't use the SPISettings class and compiles for TivaC. class SPISettings { public: SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) { if (__builtin_constant_p(clock)) { init_AlwaysInline(clock, bitOrder, dataMode); } else { init_MightInline(clock, bitOrder, dataMode); } } SPISettings() { init_AlwaysInline(4000000, MSBFIRST, SPI_MODE0); } private: void init_MightInline(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) { init_AlwaysInline(clock, bitOrder, dataMode); } void init_AlwaysInline(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) __attribute__((__always_inline__)) { // Clock settings are defined as follows. Note that this shows SPI2X ...
  18. Have you read the answer @Rickta59 gave you on your (other) thread? I mean the part:
  19. Have you tried to write something in the file in Linux? In the movie you are just showing us the file is empty.
  20. Have you read the first post in the topic? Is your card maybe hard locked? May you in Linux/Windows delete the file/create a new file on the card?
  21. Yes, I've seen, I've read the wrong documentation. Should work without mode qualifiers.
  • Create New...