Author Topic: SBC66EC's freezes if computer shutdowns while usb is plugged  (Read 2861 times)

Tepa76

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
SBC66EC's freezes if computer shutdowns while usb is plugged
« on: October 28, 2014, 11:09:32 AM »
I have found that board get totally jammed when usb are connected with computer "win7 64bit" and i shutdown the computer.
One board is with FW-1.03 and usb power solder jumper are not made (board has powered with external dc supply).
Another have 2.02 and board takes power on the usb, there is usb-hub and it's usb power stays always on.

Just plug the usb on computer and wait that computer acts the usb is connected next shutdown the computer... and board is jammed!
Can this behaviour be fixed?

Thanks

modtro2

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: SBC66EC's freezes if computer shutdowns while usb is plugged
« Reply #1 on: November 14, 2014, 08:10:09 PM »
Hi, I also have win7, 64bit. I have never had that problem before. Do you have the standard firmware on the board, or have you modified it? I can not imagine the standard firmware can do this, it is used by many customers, and I have never encountered this problem.

Tepa76

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: SBC66EC's freezes if computer shutdowns while usb is plugged
« Reply #2 on: November 17, 2014, 10:12:19 AM »
Hello,

Thanks for the support!

Actually last time when i'll try to track this issue board is rev2 with unmodified std 2.02 firmware

If we think about this... at the moment i have 3 different board's with one std, and 2 others have modified fw... all of them suffering this same issue.
Today i even test this with linux laptop with same results!

If nobody else doesn't have this kind of problem... failure have to be on my side,
but i can't really understand what could causing this! 

Is there something, else that i can test for solving this?


modtro2

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: SBC66EC's freezes if computer shutdowns while usb is plugged
« Reply #3 on: November 18, 2014, 02:12:33 PM »
Hello, can you please try replace following line in "serportUSB.c"
Code: [Select]
#if defined(__C30__)
    USBSleepOnSuspend();
#endif

with

Code: [Select]
#if defined(__C30__)
    //Disable sleep on suspend!
    //USBSleepOnSuspend();
#endif

This is from the current 2.03 Beta. I haven been using 2.03 for all custom project. I would recommend you also use 2.03.
http://forum.modtronix.com/index.php?topic=1551.0

Tepa76

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: SBC66EC's freezes if computer shutdowns while usb is plugged
« Reply #4 on: November 20, 2014, 08:54:18 PM »
Hello,


Code: [Select]
#if defined(__C30__)
    //Disable sleep on suspend!
    //USBSleepOnSuspend();
#endif

Thanks a lot this works  :-)


I haven been using 2.03 for all custom project. I would recommend you also use 2.03.

Yes sure, Someday i have to move my main project "beer brewery and fermerter control automation" which is maded with modified fw:1.03
That's tooks me some time. I mean there is quite a lot of changes especially on "circBuffer" codes if remember right!

sheers  :-o
« Last Edit: November 20, 2014, 10:01:03 PM by Tepa76 »