Jump to content


  • Content Count

  • Joined

  • Last visited

  1. And with J7 removed, everything works just fine. Note to the future: if trying to do I2C on EXP430G2ET, remove J7. It probably says that somewhere in the user guide.
  2. I just realized that the red LED on the EXP430G2ET is connected to SCK. That would explain why it's drawing power.
  3. Yep, without the module I get a nice train of NACKs on the address. Looks like the accelerometer is stretching my clock.
  4. Alright, this is weird. After having P1.6 and P1.7 configured as outputs, if I program it with the code I posted I get the results I expect. However, as soon as I power cycle the system, it: pulls SCK and SDA low waits 282 ms then both go high for a quarter of a millisecond SDA goes low while SCK is high (start condition) SCK pulses low for 5μs everything stops, with SDA low and SCK high forever Trying it without the accel module next.
  5. I've tried with and without. The only difference is the exact voltage (and size of pull up resistor). That makes me suspect it's sinking a lot of current through the SCK pin. With the 4.7k pull ups on the breakout board, that's about 300μA through the pin. I just tried it again with 100k pull ups, and it went to 2.3V. That's about 1μA.
  6. When I take the pull ups out of the circuit, I can drive SCK and SDA in a nice square wave between 0 and about 3.2V.
  7. I haven't looked in CCS specifically, but I have found code samples from TI; the above is the smallest program I could make that seemed like it should work.
  8. I've got a pretty simple project, connecting an LIS3DH accelerometer to an MSP430G2553 (using MSP-EXP430G2ET). Here's the code: #include <stdint.h> #include <msp430.h> #define SLAVE_ADDR 0x19 int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT __disable_interrupt(); // Just polling for now // Set to 1 MHz operation BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; // Configure P1.6 and P1.7 as I2C SCL and SDA respectively P1SEL = 0xc0; P1SEL2 = 0xc0; // This byte is signed for some reason. P1.3 is the button input. P1DIR = ~
  9. Found a solution that works, given a Windows machine: https://blog.kutej.net/2019/03/msp-exp430g2et-linux This is a pretty serious bug if you want to claim to have Linux support.
  10. Checked out and tried the latest version of mspdebug.
  11. I got an MSP-EXP430G2ET yesterday, and after installing drivers and Energia (Debian unstable) I plugged it in and opened up the blink example. Energia spat out some messages about the firmware needing updating, and started the process. I don't have the log (it's fallen off my console's buffer) but it did not appear to complete successfully. Now, when I try to use Energia to flash the blink example, I get this: Sketch uses 386 bytes (2%) of program storage space. Maximum is 16384 bytes. Global variables use 20 bytes (3%) of dynamic memory, leaving 492 bytes for local variables. Maximum is 5
  • Create New...