Jump to content

Pratik

Members
  • Content count

    15
  • Joined

  • Last visited

  1. Hello, I'm working on msp430fr4133 board and interface SHTC3 (SENSIRION) sensor. I'm working on energia v.18 IDE. I've library of SHTC3 sensor based library.this library perfectly working in Arduino board. But same library and its example sht-detect not working in energia IDE. When I refer SHTC3 compatible library file .h and .cpp. if I'm comparing datasheet and library files then in .cpp not mention any hex address e.g Reset,ID, measure, sleep, wake up. So,I have a 2 queries : (i) How this file working in arduino without addresses ? (ii) How to make energia compatible code by using attached library ? Please suggest me sample code for SHTC3 (SENSIRION). PFA. Thanks & Regards, Pratik arduino-sht-master.zip Sensirion_Humidity_Sensors_SHTC3_Datasheet.pdf
  2. Hello, I have a MSP430fr6989 Launchpad and I have been developed code from Energia v.18 IDE. In our custom board we use MSP430FR6972 MCU. I am try to find out bard from Energia v.18 --> Tools ---> Board ---> Board Manager but not available there. and my developed code I can import energia into CCS but there are msp430fr6972 board not available. So,can you please tell me where I find out MSP430FR6972 bootload related files like board.txt , pin_energia.h , platform.h or board package ? and How can I upload new firmware/boot loader in msp430fr6972 ? Thank you. Regards, Pratik
  3. #define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) Same issue happen, without RFCTL0 and With analogread() can not get 1.19V on physical pin. #define MY_INTERNAL2V0 (REFCTL0|=ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) // without OR with REFCTL0,1.19V not generating I also did modification in wiring_analog.c.   #define REF_MAP(x) (x & 0x33).  Please suggest me alternative of analogread() function using registers of MSP430FR6989. Thank you in advance.
  4. #define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) Same issue happen, without RFCTL0 and With analogread() can not get 1.19V on physical pin. #define MY_INTERNAL2V0 (REFCTL0|=ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) // without OR with REFCTL0,1.19V not generating I also did modification in wiring_analog.c.   #define REF_MAP(x) (x & 0x33).  Please suggest me alternative of analogread() function using registers of MSP430FR6989. Thank you in advance.
  5. Thanks for your responce. I'm try `#define MY_INTERNAL2V0 (ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT)` but I did not get Vref voltage 1.19V. #define MY_INTERNAL2V0 (REFCTL0|=ADC12VRSEL_1 | REFON | REFVSEL_0 | REFOUT) // without OR with REFCTL0,1.19V not generating void setup() { analogReference(MY_INTERNAL2V0); Serial.begin(9600); } void loop() { // // put your main code here, to run repeatedly: int val = analogRead(A11); //With this statement again Vref+ getting 0V // // float voltage = val * (1.2 / 1023); // // Serial.println(voltage*1000); // delay(500); } Why AnalogRead() function is disturbing with REFCTL0 ? NOTE: Vref pin P1.1 and ADC pin A11 (MSP430FR6989 Launchpad).
  6. Hello, I have MSP430FR6989 Launchpad. As per below schematic,I generate internal Vref+ voltage 1.2V on Pin P1.1. I'm successfully measure 1.19V on pin P1.1. So,This Vref I apply in NTC as per below schematic( please ignore MSP430FR4133). But I got an issue in below code: void Vref_ON() { while(REFCTL0 & REFGENBUSY); // If ref generator busy, WAIT REFCTL0 |= REFVSEL_0 + REFON + REFOUT; // Enable internal 1.2V reference while(!(REFCTL0 & REFGENRDY)); // Wait for reference generator // to settle } void Vref_Off() { REFCTL0=1; } void setup() { Vref_ON(); Serial.begin(9600); } void loop() { // int val = analogRead(A11); //**** When comment this portion then on P1.1 Vref+ get voltage (1.19V), uncomment then get voltage 0V **** Serial.println(val); delay(500); } In above code, pin P1.1 I got a 1.19V Vref+ successfully but I got an one issue on above code : Please mention comment in code. I can't understand above issue. Please give me a suggestion for issue. Thank you. Regards, Pratik
  7. Pratik

    MSP430F5529 USB HID Example for Energia

    Thank you for a response, Sir. But I want to do programming in C language, not Java. And I found MSP430F5529(25MHz) board in Energia IDE. But I am finding USB-MSC/HID based library who supported in Energia IDE.
  8. Hello, I want to design a datalogger and to create USB Mass Storage when I connect board. I did not find Examples related to MSP430F5529 for Energia. So, please suggest me Energia example/SDK related to "MSP430F5529". Thank you. Regards, Pratik Panchal
  9. Pratik

    GPS library and header file related issue

    I also try TinyGPS.h but got a fatal error: TinyGPS.h: No such file or directory #include <TinyGPS.h> So, Please tell me on which path this header file I should declare.
  10. Pratik

    GPS library and header file related issue

    Please suggest me related "Serial1" file.
  11. Hello, I have an issue related to SoftwareSerial.h related header file. I place this header file in ..\energia-0101E0017\hardware\cc3200\libraries. But still I got following error: D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'virtual size_t SoftwareSerial::write(uint8_t)': D:\\..\\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp:450:21: error: 'SREG' was not declared in this scope uint8_t oldSREG = SREG; ^ D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp:451:7: error: 'cli' was not declared in this scope cli(); // turn off interrupts for a clean txmit ^ D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp:455:26: error: 'XMIT_START_ADJUSTMENT' was not declared in this scope tunedDelay(_tx_delay + XMIT_START_ADJUSTMENT); ^ D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'virtual void SoftwareSerial::flush()': D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp:498:21: error: 'SREG' was not declared in this scope uint8_t oldSREG = SREG; ^ D:\..\energia-0101E0017\hardware\cc3200\libraries\SoftwareSerial\SoftwareSerial.cpp:499:7: error: 'cli' was not declared in this scope cli(); ^ So, please give me a solution. Regards, Pratik
  12. Hello, I am working on cc3200MOD Controller.This controller we use in our product. I am developing a code in Energia v.15. and I load a program using USB to TTL device using UART0. But during loading program following error message occur: erase file completed Downloading file "/sys/mcuimg.bin" with size 4064 .Download complete DEBUG cc3200prog.c:2623: write failed DEBUG cc3200prog.c:2629: write failed DEBUG cc3200prog.c:2635: write failed DEBUG cc3200prog.c:2641: write failed So, Please tell me the solution. Regards, Pratik
  13. Hello, We are planning to do work on CC3200MOD LaunchpadXL. So, CC3200 GPIO/UART/ADC Energia IDE based header files can compatible in CC3200MOD? I also some confusion regarding Energia IDE based header file.Please mention below description. If you see pin_energia.h file in one array initialize for CC3200 LaunchXL like this, const uint16_t digital_pin_to_pin_num[] = { NOT_A_PIN, /* dummy */ NOT_A_PIN, /* 1 - 3.3V */ PIN_58, /* 2 - GPIO_03 */ <- pins_energia.h (CC3200) *Note : In CC3200MOD PIN_58 = GND PIN_04, /* 3 - GPIO_13 */ PIN_03, /* 4 - GPIO_12 */ PIN_61, /* 5 - GPIO_06 */ PIN_59, /* 6 - GPIO_04 */ PIN_05, /* 7 - GPIO_14 */ PIN_62, /* 8 - GPIO_07 */ PIN_01, /* 9 - GPIO_10 */ PIN_02, /* 10 - GPIO_11 */ PIN_15, /* 11 - GPIO_22 */ PIN_55, /* 12 - GPIO_01 */ PIN_21, /* 13 - GPIO_25 */ PIN_06, /* 14 - GPIO_15 */ PIN_07, /* 15 - GPIO_16 */ NOT_A_PIN, /* 16 - RESET */ PIN_45, /* 17 - GPIO_31 */ PIN_08, /* 18 - GPIO_17 */ PIN_18, /* 19 - GPIO_28 */ NOT_A_PIN, /* 20 - GND */ NOT_A_PIN, /* 21 - 5V */ NOT_A_PIN, /* 22 - GND */ PIN_57, /* 23 - GPIO_02 */ PIN_60, /* 24 - GPIO_05 */ PIN_58, /* 25 - GPIO_03 */ PIN_59, /* 26 - GPIO_04 */ PIN_63, /* 27 - GPIO_08 */ PIN_53, /* 28 - GPIO_30 */ PIN_64, /* 29 - GPIO_09 */ PIN_50, /* 30 - GPIO_00 */ PIN_17, /* 31 - GPIO_24 */ PIN_16, /* 32 - GPIO_23 */ PIN_60, /* 33 - GPIO_05 */ PIN_62, /* 34 - GPIO_07 */ PIN_18, /* 35 - GPIO_28 */ PIN_21, /* 36 - GPIO_25 */ PIN_64, /* 37 - GPIO_09 */ PIN_17, /* 38 - GPIO_24 */ PIN_01, /* 39 - GPIO_10 */ PIN_02 /* 40 - GPIO_11 */ }; github_Link : https://github.com/energia/Energia/blob/master/hardware/cc3200/variants/launchpad/pins_energia.h Here you can see highlighted portion. When you compare datasheet of CC3200 and CC3200MOD both PIN configuration are different. So, here mention pin_energia.h header file makes for CC3200. So, Is this pin_energia.h header file can support for CC3200MOD? If not then please give me a suggestion how to modify. Regards, Pratik pins_energia.h
  14. Hello, If I use Energia IDE with CC3200 then Is Energia can support CC3200 APIs during programming? If Yes, then in which language programming I do in Energia with APIs? Regards, Pratik
×