Hi,
I have done many projects in hifive1 but today i am facing an issue, i just uploaded a program from examples. It is not printing the String variables in serial monitor. But the same code works in arduino uno.
Can someone tell me the reason? and what should i do to solve the problem?
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Serial.println("\n\nString charAt() and setCharAt():");
}
void loop() {
// make a String to report a sensor reading:
String reportString = "SensorReading: 456";
Serial.println(reportString);
// the reading's most significant digit is at position 15 in the reportString:
char mostSignificantDigit = reportString.charAt(15);
String message = "Most significant digit of the sensor reading is: ";
Serial.println(message + mostSignificantDigit);
// add blank space:
Serial.println();
// you can also set the character of a String. Change the : to a = character
reportString.setCharAt(13, '=');
Serial.println(reportString);
// do nothing while true:
while (true);
}
I dint try it out as my office time got over.I will do it on Monday.
This issue has started with my other project (hifive1 communicating with esp-01 ).
When I initialized String variables for SSID and Password and some more, I faced some errors like this
“_dso_handle undefined reference”
When I commented those initialisation the code gets compiled successful.
So, to find out the problem I tried with an example program which contains String variables .
And I am damn sure that this String data types worked perfectly during my previous projects.
Yes. I assume Daniel is talking about the original board because the Arduino IDE doesn’t even have a way to flash the RevB. In fact I think that’s probably the main issue. I’m sure the RevB could be made to work if someone has time to work on it.