Преглед изворни кода

SDEXTRASLOW for some SD card readers (PR#176)

Add SDEXTRASLOW which runs the SD card at SPI_QUARTER_SPEED. Quarter speed is needed for RIGIDBOT_PANEL
Mike Cochrane пре 9 година
родитељ
комит
5e36b64635

+ 1
- 0
Marlin/Configuration.h Прегледај датотеку

@@ -667,6 +667,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
667 667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
668 668
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
669 669
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670 671
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
671 672
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
672 673
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 3
- 1
Marlin/cardreader.cpp Прегледај датотеку

@@ -195,7 +195,9 @@ void CardReader::initsd() {
195 195
   cardOK = false;
196 196
   if (root.isOpen()) root.close();
197 197
 
198
-  #if ENABLED(SDSLOW)
198
+  #if ENABLED(SDEXTRASLOW)
199
+    #define SPI_SPEED SPI_QUARTER_SPEED
200
+  #elif ENABLED(SDSLOW)
199 201
     #define SPI_SPEED SPI_HALF_SPEED
200 202
   #else
201 203
     #define SPI_SPEED SPI_FULL_SPEED

+ 1
- 0
Marlin/configurator/config/Configuration.h Прегледај датотеку

@@ -666,6 +666,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
666 666
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
667 667
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
668 668
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
669
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
669 670
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
670 671
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
671 672
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/Felix/Configuration.h Прегледај датотеку

@@ -649,6 +649,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
649 649
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
650 650
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
651 651
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
652
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
652 653
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
653 654
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
654 655
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/Felix/Configuration_DUAL.h Прегледај датотеку

@@ -618,6 +618,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
618 618
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
619 619
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
620 620
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
621
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
621 622
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
622 623
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
623 624
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration.h Прегледај датотеку

@@ -659,6 +659,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
659 659
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
660 660
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
661 661
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
662
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
662 663
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
663 664
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
664 665
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/K8200/Configuration.h Прегледај датотеку

@@ -654,6 +654,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
654 654
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
655 655
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
656 656
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
657
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
657 658
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
658 659
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
659 660
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Прегледај датотеку

@@ -667,6 +667,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
667 667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
668 668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
669 669
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670 671
 #define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
671 672
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
672 673
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration.h Прегледај датотеку

@@ -653,6 +653,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
653 653
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
654 654
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
655 655
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
656
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
656 657
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
657 658
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
658 659
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration.h Прегледај датотеку

@@ -674,6 +674,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
674 674
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
675 675
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
676 676
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
677
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
677 678
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
678 679
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
679 680
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration.h Прегледај датотеку

@@ -685,6 +685,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
685 685
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
686 686
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
687 687
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
688
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
688 689
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
689 690
 #define ENCODER_PULSES_PER_STEP 2 // Increase if you have a high resolution encoder
690 691
 #define ENCODER_STEPS_PER_MENU_ITEM 1 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration.h Прегледај датотеку

@@ -658,6 +658,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
658 658
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
659 659
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
660 660
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
661
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
661 662
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
662 663
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
663 664
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h Прегледај датотеку

@@ -667,6 +667,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
667 667
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
668 668
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
669 669
 #define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
670 671
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
671 672
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
672 673
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/delta/biv2.5/Configuration.h Прегледај датотеку

@@ -788,6 +788,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
788 788
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
789 789
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
790 790
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
791
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
791 792
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
792 793
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
793 794
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration.h Прегледај датотеку

@@ -789,6 +789,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
789 789
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
790 790
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
791 791
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
792
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
792 793
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
793 794
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
794 795
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h Прегледај датотеку

@@ -793,6 +793,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
793 793
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
794 794
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
795 795
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
796
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
796 797
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
797 798
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
798 799
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h Прегледај датотеку

@@ -784,6 +784,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
784 784
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
785 785
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
786 786
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
787
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
787 788
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
788 789
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
789 790
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/makibox/Configuration.h Прегледај датотеку

@@ -669,6 +669,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
669 669
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
670 670
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
671 671
 #define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
672
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
672 673
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
673 674
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
674 675
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Прегледај датотеку

@@ -661,6 +661,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
661 661
 //#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
662 662
 //#define SDSUPPORT // Enable SD Card Support in Hardware Console
663 663
 //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
664
+//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
664 665
 //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
665 666
 //#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder
666 667
 //#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking

Loading…
Откажи
Сачувај