{"id":495,"date":"2019-08-09T08:13:35","date_gmt":"2019-08-09T08:13:35","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=495"},"modified":"2020-02-26T14:11:08","modified_gmt":"2020-02-26T14:11:08","slug":"program-wont-run","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/issues-found\/program-wont-run","title":{"rendered":"Program won&#8217;t run"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Waiting for USB Serial<\/h4>\n\n\n\n<p>Are you using this with your Serial.begin command on an Arduino with USB serial?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Serial.begin(115200);\n  while(!Serial)\n    ;<\/code><\/pre>\n\n\n\n<p>We found on the MKR GSM 1400 and Arduino Micro this would cause the program to not run if the Arduino serial monitor was not open!  Doing this fixed it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Serial.begin(115200);\n  \/\/while(!Serial)          \/\/Don't do this or we won't start if the Aruino IDE Serial Monitor is not turned on!\n  \/\/  ;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Waiting for USB Serial Are you using this with your Serial.begin command on an Arduino with USB serial? We found on the MKR GSM 1400 and Arduino Micro this would cause the program to not run if the Arduino serial monitor was not open! Doing this fixed it:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-issues-found"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":3,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":545,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/495\/revisions\/545"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}