-
Notifications
You must be signed in to change notification settings - Fork 78
BSOD in Arduino create with MKR1000 #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @BallscrewBob. @facchinm or @agdl is there a Win 7 machine in the office that someone can use to try to reproduce this issue? Sketch that causes the issue is: https://create.arduino.cc/editor/Ballscrewbob/7baa3b59-26ae-4bce-8e4e-1ed6f1c10d60/preview which I think is just the SimpleRTC.ino example. (from forum post: http://forum.arduino.cc/index.php?topic=408863.msg2887873#msg2887873) |
Hi @BallscrewBob, Sorry for the lack of updates on this. Unfortunately, there is no Windows 7 PC in the office for someone to try to reproduce this issue. (PC's were upgraded to Windows 10). Does this still happen if you use arduino/ArduinoCore-samd#154? |
Sorry for late reply was out of country B88 was still BSOD in CREATE mainly under two hours. |
Hi @BallscrewBob, The behaviour with Create is expected (same as you are experiencing before), since using arduino/ArduinoCore-samd#154 is something only the regular IDE uses. (Just wanted to clarify this, please ignore if you already knew this.) |
Yup had figured that out. I can do a BSOD on demand almost with CREATE and RTC. However it also stalls on the MKR in IDE 1.6.11 Started a new run and will report when I have details. |
@BallscrewBob please note arduino/ArduinoCore-samd#154 has been merged in to master, so will be part of the next SAMD core release, which will also get propagated to Create. You can also switch over the the SAMD core hourly build to preview the next SAMD core release: https://github.com/arduino/ArduinoCore-samd#hourly-builds Maybe you can run a simpler test like: arduino/ArduinoCore-samd#154 (comment) Then we can know if the board is crashed (LED stops blinking) or it's a problem on the PC side. Also, do you have another PC you can test with? |
Just over 8 hours before stall in the IDE using the MKR1000 WiFi RTC example. That blink test passes every time regardless of CREATE or IDE which might indicate an issue with variables serial printing ( buffers maybe ? ) The only sketches that I currently know to fail with some sort of consistency are the RTC and Thingspeak. Thingspeak stops sending data regardless of sensor used so hardware is not the issue. Ooalis from CREATE is sending me another MKR (f.o.c.) so I will be able to do some comparison testing when that arrives. Swapping to hourly SAMD as suggested. Don't have my server back up yet and my loaner win 7 box is out at a clients for a while. |
Yes, or something's up with the RTC library.
I have a pull request for the WiFi101 library that has a bunch of fixes, something else to try regarding Thinkspeak: arduino-libraries/WiFi101#77 Feel free to open an issue in the WiFi101 Github repo regarding this.
Thanks, this will help narrow down if it's Windows 7 or issue with your PC. Btw, do you also have a powered USB hub to test with? - I'm wondering if the PC can't provide enough current, just another thought. |
Hi Sandeep. Server 2012 (Old poweredge 840 Intel dual core Xeon, 16gb and twin 256 Gb SSD raid boot + 10TB pool ) up and running with IDE 1.6.11 (1.6.12 doesnt play nice) (all updates are in and using JSON 97 in additional boards. |
Wow, that's quite the machine! Would you be able to try the SimpleRTC.ino with SAMD core release 1.6.6 (no JSON file). I'm curious to see if the BSOD still occurs. Thanks for the note on USB 3.0 vs USB 2.0, USB 3.0 seems to be fine on my MacBook Pro .... but that's not really an apples to apples comparison. |
Confirming upload of the sketch you suggested @ 9.35 EST. The server is actually quite old and is modified for the SSD's and RAM, its taken a while to get to that spec LOL. Seeing as server 2012 is based around Win 8 / 8.1 it should provide a decent test base for network ability at maybe a deeper level |
Thanks
Please note, with 1.6.6 of the SAMD closing the serial monitor will cause the sketch to block until it is re-open on Windows. The SAMD nightly has a fix for this. |
K understood so will leave the monitor open and not touch it. |
Had random issues with the IDE. Changed sketch to this one https://create-[dev.arduino.cc/editor/Ballscrewbob/46b43ff7-4e61-440b-99e5-5e6605c04d2e/preview ](url) Also dropped cores to 1.6.3 as was getting SMD packages unknown errors. but will try tommorow to go back up one at a time. Also had to add the standard JSON back in to get it stable.. There were some lib updates and other core updates which I took so hope it was just a minor glitch. |
Sketch ran from 5.14 to 6.06 and stalled. Starting to go back up packages. |
Packages all back up to date and JSON removed restarting sketch. |
Changed to use the EPOCH example sketch from RTC zero on server |
No BSOD but stalled just short of 50 hours on the server. Awaiting further destructions |
Ok, I'd say you try with the nightly SAMD JSON next. |
@BallscrewBob just a heads up, SAMD core 1.6.7 has been released with the following changes: https://github.com/arduino/ArduinoCore-samd/blob/master/CHANGELOG It includes the USB fixes that you've tested with previously. |
OK have not had time to check it out BUT I think we may be able to close the RTC issue BSOD as I have just hit the same BSOD issue without an MKR and without any RTC items. Pretty sure it is down to an issue with USBSER.SYS which may be outside the bounds of this issue and may need a different approach or git issue. Boards active at the time were a 101, Mega, and UNO all using different serial statements and sketches. If you need anything else checking out let me know. Just confirmed a second BSOD without RTC involvement and am now firmly of the belief that usbser.sys is the root cause. The IDE just stalls with it but even in the dev create it shows as a BSOD |
Ok, I'll close it for now then. |
Yes it locked up on server 2012 requiring a hard restart a few times. As server 2012 is win 8 / 8.1 based but hardened for server duties and On the win 7 box usbser.sys is ONLY used by Arduino and nothing else. If I google for "bsod usbser.sys" I end up with quite a few Arduino related On Tue, Oct 4, 2016 at 9:13 AM, Sandeep Mistry [email protected]
|
I'm not a Windows expert by any means, however this page suggests Microsoft is in charge of the driver: https://msdn.microsoft.com/en-ca/library/windows/hardware/dn707976(v=vs.85).aspx
|
On most cases you will be correct however in this case usbser is not a On Oct 6, 2016 09:02, "Sandeep Mistry" [email protected] wrote:
|
Who provides it then? Is there anyway you can go back to the Microsoft version? I didn't find any copies of |
If I upload the sketch from either CREATE or a regular IDE and then open the CREATE serial monitor this will cause a BSOD every time. Amount of time to BSOD can be anywhere from a couple of hours to less than 12.
Using an MKR1000 and AMD quad core, Win 7 X64 Pro.
This is the only sketch that does it but I have to note there are other issues with the MKR randomly halting (2 hrs to a max of 3 days) with some other sketches that often use serial output. However these do not cause BSOD's
Issue posted at the request of sandeepmistry
The text was updated successfully, but these errors were encountered: