Go Down

Topic: MKR FOX1200 - Serial Monitor - Problems (Read 2129 times) previous topic - next topic

herby007

Hello,

I have some great problems with the MKR FOX1200 in combination with the serial monitor.
For example: I reduced my problem to the minimum sketch:


Code: [Select]

void setup()

{
  pinMode(6,OUTPUT);      // LED at pin 6: MKR FOX1200
//  pinMode(13,OUTPUT);     // LED at pin 13: UNO_R3-Board (Clone)
  
  while(1)
  {
    digitalWrite(6,HIGH);
    delay(100);
    digitalWrite(6,LOW);
    delay(100);
  }

}

void loop() {
  // put your main code here, to run repeatedly:

}



IDE 1.8.12:

Sketch on UNO_R3 (Clone):
- Load sketch: LED flashes
- Start ser. monitor: flashes  stops shortly, and then flashes continues
- Close ser. monitor: flashes continues
- Close IDE: flashes continues

This is ok and normaly. But and now:

Sketch on MKR FOX 1200:
- Load sketch: LED flashes
- Start ser. monitor: flashes continues withot a short break

- Close ser. monitor: flashes stops the whole program stops. One or two times reset: no effect !!

- Load the sketch again: LED flashes.
- Close the IDE: flashes continues.

- After closing the ser. monitor the yellow LED on the board flashes slowly and weak. So I think the baord is in the boot modus and the user program does not run.
I think the the closing of the ser. monitor puts the board into the boot modus.
I think this is not normal, because the user program does not run furthermore.


Furthermore the ser. monitor switches every time the usb-port. So every time when I want to download a sketrch, I have first to select the right usb-port again.

Can anybody help me with this problem ?
Thank you very much.

Best regards
Herby



racpra16

Dear Herby,

We have debugged your issue on the technical ticket. The issue is caused by the baud rate that was set to 1200. Please try to change it to 9600 and try again.

Code: [Select]
void setup(){

  pinMode(6,OUTPUT);      // LED at pin 6: MKR FOX1200
  Serial.begin(9600);     //Intialising the serial monitor
 
  while(1)  {
    digitalWrite(6,HIGH);
    delay(100);
    Serial.println("Hello");
    digitalWrite(6,LOW);
    delay(100);
    Serial.println("Hello Hello");  }}

void loop() {
  // put your main code here, to run repeatedly:
}



//Regards,
┗(•ˇ_ˇ•)―→ Member of the Ardunio customer service team
( ━☞´◔‿ゝ◔`)━☞ Contact us through https://bit.ly/2xxu1le

Go Up