-
Notifications
You must be signed in to change notification settings - Fork 43
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
All io stop work when I2S is actived. #70
Comments
Unfortunately doesn't work. when I compile with I2S the GPIO.15 stay ever high, regardless if this GPIO.15 is configured or not. |
Try with the latest version and these #defines in your map file:
|
I tried like you said, but still the same problem. When I associet these I2S ports and compile the GPIO.15 go to high and nothing more work. Replacing the I2S ports by GPIO_NUM_ all ports GPIO work.(M3, M7, M8,INPUTS). |
/* Part of grblHAL Copyright (c) 2020-2023 Terje Io Grbl is free software: you can redistribute it and/or modify Grbl is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License #if VFD_SPINDLE #define BOARD_NAME "RDS" #define USE_I2S_OUT #define I2S_OUT_BCK GPIO_NUM_13 // timer definitions // Define step pulse output pin27 // Define step direction output pins. NOTE: All direction pins must be on the same port. // Define stepper driver enable/disable output pin(s). // Define homing/hard limit switch input pins and limit interrupt vectors. #if N_ABC_MOTORS >= 1 #if DRIVER_SPINDLE_ENABLE // Define flood and mist coolant enable output pins. // Define user-control CONTROLs (cycle start, reset, feed hold) input pins. // Define probe switch input pin. #if KEYPAD_ENABLE #if SDCARD_ENABLE |
Did you update to the latest version? |
Yes, I did. $i |
I updated merging these files manually; On time, what this line means ? |
Try this driver:
It is a pin number offset to distinguish I2S pins from GPIO pins. |
Hi.. |
I'm trying to use my self made board with GRBLhall. This board works perfectly in grbl_esp32, Fluidnc, etc.
My problem is, when I active the I2S(with shift register) all IO not work more. Look my config, i commented the lines(*) and all ports like M8, M7, M3, stepper enable works , but if I uncommented no one works.
/*
generic_map.h - driver code for ESP32
Part of grblHAL
Copyright (c) 2020-2023 Terje Io
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Grbl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Grbl. If not, see http://www.gnu.org/licenses/.
*/
#define BOARD_NAME "RDS_ESP32"
#define BOARD_URL "https://rdscnc.com.br"
#if VFD_SPINDLE
#error "Generic map does not have support for VFD spindle."
#endif
//#define USE_I2S_OUT *
//#define I2S_OUT_PIN_BASE 64 *
// timer definitions
#define STEP_TIMER_GROUP TIMER_GROUP_0
#define STEP_TIMER_INDEX TIMER_0
// Define step pulse output pin27
#define X_STEP_PIN GPIO_NUM_13//I2SO(1)
#define Y_STEP_PIN GPIO_NUM_12//I2SO(3)
#define Z_STEP_PIN GPIO_NUM_14//I2SO(5)
// Define step direction output pins. NOTE: All direction pins must be on the same port.
#define X_DIRECTION_PIN GPIO_NUM_13//I2SO(2)
#define Y_DIRECTION_PIN GPIO_NUM_12//I2SO(4)
#define Z_DIRECTION_PIN GPIO_NUM_14//I2SO(6)
// Define stepper driver enable/disable output pin(s).
#define STEPPERS_ENABLE_PIN GPIO_NUM_27
// Define homing/hard limit switch input pins and limit interrupt vectors.
#define X_LIMIT_PIN GPIO_NUM_33
#define Y_LIMIT_PIN GPIO_NUM_32
#define Z_LIMIT_PIN GPIO_NUM_35
#if N_ABC_MOTORS >= 1
#define M3_AVAILABLE
#define M3_STEP_PIN GPIO_NUM_12//I2SO(7)
#define M3_DIRECTION_PIN GPIO_NUM_13//I2SO(0)
#define M3_LIMIT_PIN GPIO_NUM_34
#endif
//#define I2S_OUT_BCK GPIO_NUM_13 *
//#define I2S_OUT_WS GPIO_NUM_12 *
//#define I2S_OUT_DATA GPIO_NUM_14 *
#if DRIVER_SPINDLE_ENABLE
// Define spindle enable and spindle direction output pins.
#define SPINDLE_ENABLE_PIN GPIO_NUM_4
#define SPINDLEPWMPIN GPIO_NUM_2
#endif
// Define flood and mist coolant enable output pins.
#define COOLANT_FLOOD_PIN GPIO_NUM_15
#define COOLANT_MIST_PIN GPIO_NUM_21
// Define user-control CONTROLs (cycle start, reset, feed hold) input pins.
//#define RESET_PIN GPIO_NUM_34
//#define FEED_HOLD_PIN GPIO_NUM_36
//#define CYCLE_START_PIN GPIO_NUM_39
#if SAFETY_DOOR_ENABLE
#define SAFETY_DOOR_PIN GPIO_NUM_25
#endif
// Define probe switch input pin.
#if PROBE_ENABLE
#define PROBE_PIN GPIO_NUM_26
#endif
#if KEYPAD_ENABLE
#error No free pins for keypad!
#endif
#if SDCARD_ENABLE
// Pin mapping when using SPI mode.
// With this mapping, SD card can be used both in SPI and 1-line SD mode.
// Note that a pull-up on CS line is required in SD mode.
#define PIN_NUM_MISO GPIO_NUM_19
#define PIN_NUM_MOSI GPIO_NUM_23
#define PIN_NUM_CLK GPIO_NUM_18
#define PIN_NUM_CS GPIO_NUM_5
#endif
The text was updated successfully, but these errors were encountered: