external Fast SDcard and booting wierdness

41 views
Skip to first unread message

karabas3

unread,
May 19, 2017, 7:51:48 AM5/19/17
to Smoothie-Dev
I know external sdcard does not supported officially.
But maybe someone point me to possible solution.

The problem:
Fast SDcard (200x  - 400x) in display module hangs during boot sequence after power up the printer.
The same sdcard works perfectly after booting without any sdcard or with slow sdcard inserted.
The same card boots successfully on hot reset !!!

My experiment:

bool Panel::mount_external_sd(bool on)
{
 
[...]
    lcd
->buzz(1000, 1100);  // seconds, frequency
       
this->sd->disk_initialize(); // first one seems to fail, but works next time
    lcd
->buzz(120, 3100);
    lcd
->buzz(120, 4000);
[...]

when I power on my printer I hear 1 second buzz and it hangs.
wneh I power on my printer and during this sound quickly eject  and insert sdcard it boots successfully !!

Wolfmanjm

unread,
May 19, 2017, 5:03:57 PM5/19/17
to Smoothie-Dev
What you are doing is completely and absolutely not supported and very very bad.

You cannot call buzz for 1 second it will kill smoothie. do not use buzz to debug stuff, that simply is not supported and will not work.

karabas3

unread,
May 21, 2017, 5:40:31 AM5/21/17
to Smoothie-Dev
How buzz can kill the board??? is simply output pin high and low...
mystery

Ok, I can replace Buzz with Delay. Does not matter.
So what?

Cddetect does not call interrupt.
All I can see that hot and cold resets cause different boot sequences. and on cold reset cddetect must be high ( untriggered) for fast  sdcard

суббота, 20 мая 2017 г., 0:03:57 UTC+3 пользователь Wolfmanjm написал:

karabas3

unread,
Jun 2, 2017, 12:44:55 PM6/2/17
to Smoothie-Dev
Cold boot (and hot resets) with external sdcard inserted

Build version: ~11myvar2, Build date: May 30 2017 18:12:03, MCU: LPC1768, System Clock: 100MHz
5 axis
NOTE: One extruder configured and enabled
NOTE: 1 extruders enabled out of 2
Watchdog enabled for 10.000000 seconds
File not found: /sd/on_boot.gcode
$T050c:fcfd6ffc;0d:d07e0010;0e:c3c50000;0f:c2c50000;#a3

What does last string mean? Watchdog report?


пятница, 19 мая 2017 г., 14:51:48 UTC+3 пользователь karabas3 написал:

Adam Green

unread,
Jun 2, 2017, 8:47:34 PM6/2/17
to karabas3, Smoothie-Dev

On Jun 2, 2017, at 09:44, karabas3 <kur...@gmail.com> wrote:

$T050c:fcfd6ffc;0d:d07e0010;0e:c3c50000;0f:c2c50000;#a3

What does last string mean? Watchdog report?

You have hit a hard coded breakpoint.  Attach GDB and dump the callstack to learn more. http://smoothieware.org/mri-debugging

-Adam

karabas3

unread,
Jun 15, 2017, 6:29:54 AM6/15/17
to Smoothie-Dev
BTW why  arduino implementation of sdfat libs  works for years without issues
and so many problems with current port??
I swap the same displays between boards, with long and short cables.
Arduino works perfectly.
Is it  porting code problems or timings? I believe - electrically no differences.
Do we need to replicate correct timings? Unfortunately I have not osciloscope




суббота, 20 мая 2017 г., 0:03:57 UTC+3 пользователь Wolfmanjm написал:
What you are doing is completely and absolutely not supported and very very bad.
Reply all
Reply to author
Forward
0 new messages