Search the Community
Showing results for tags 'HardwareSerial'.
-
I've got an F5229LP app that sets SMCLK to XT2 with a divider of 4. (XT2 = 25Mhz crystal, which is also the source for MCLK) When I initialize the clocks, HardwareSerial no longer produces an accurate Baud Rate, and it breaks terminal communication. I see that HardwareSerial.cpp contains: #define SMCLK F_CPU //SMCLK = F_CPU for now I've tried changing it to F_CPU / 4 but the situation did not improve. Here is my recreation code: (Uncomment initClocks(25000000l); and change HardwareSerial.cpp to see it fail) #include <WString.h> void initClocks(uint32_t mclkFreq); void SerialT
-
Hi im new on energia and im trying to recieve data from bluetooth by a HC-06 module conected to my launchpad (HardwareSerial) but i dont recieve anything, this is my code and neither green led or red led are turning on when i send data to it by my laptop or my smartphone. hope somebody can help me thanks char incoming; void setup() { // Open serial communications Serial.begin(9600); pinMode(RED_LED,OUTPUT); digitalWrite(RED_LED,LOW); pinMode(GREEN_LED,OUTPUT); digitalWrite(GREEN_LED,LOW); } void loop() // run over and over { if (Serial.available()){ digital