Pratik 0 Posted May 22, 2017 Share Posted May 22, 2017 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 Quote Link to post Share on other sites
energia 485 Posted May 22, 2017 Share Posted May 22, 2017 SoftwareSerial is not compatible with the CC3200. You can use Serial1.xyz. Serial1 is on pins 9 and 10. See pinmap here: http://energia.nu/pin-maps/guide_cc3200launchpad/ Quote Link to post Share on other sites
Pratik 0 Posted May 23, 2017 Author Share Posted May 23, 2017 Please suggest me related "Serial1" file. Quote Link to post Share on other sites
Pratik 0 Posted May 24, 2017 Author Share Posted May 24, 2017 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.