esp32: fix wiring config, decode stack traces

This commit is contained in:
Filip Ayazi 2022-01-16 21:04:58 +00:00
parent 58fe8a20f8
commit 550c378e3c
3 changed files with 9 additions and 8 deletions

View file

@ -53,3 +53,4 @@ build_flags =
platform = espressif32 platform = espressif32
board = esp-wrover-kit board = esp-wrover-kit
build_flags = -D MCU_ESP32 build_flags = -D MCU_ESP32
monitor_filters = esp32_exception_decoder

View file

@ -8,7 +8,7 @@
#elif defined(MCU_PICO) #elif defined(MCU_PICO)
#define BOARD_CUSTOM_PICO #define BOARD_CUSTOM_PICO
#elif defined(MCU_ESP32) #elif defined(MCU_ESP32)
#define BOARD_CUSTOM #define BOARD_CUSTOM_ESP32
#else #else
#error "Invalid build config - must specify MCU type" #error "Invalid build config - must specify MCU type"
#endif #endif
@ -50,11 +50,11 @@
#define ENDSTOPS_PULLUPS true #define ENDSTOPS_PULLUPS true
#define WIRING_ENDSTOPS_MIN {A0,A1,A2} #define WIRING_ENDSTOPS_MIN {A0,A1,A2}
#define WIRING_ENDSTOPS_MAX {A3,A4,A5} #define WIRING_ENDSTOPS_MAX {A3,A4,A5}
#else #elif defined(BOARD_CUSTOM_ESP32)
#define BOARD_STRING "Custom board" #define BOARD_STRING "Custom ESP32 board"
#define WIRING_MOTOR_X 13, 12, 11, 10 #define WIRING_MOTOR_X 34, 32, 25, 27
#define WIRING_MOTOR_Y 9, 8, 7, 6 #define WIRING_MOTOR_Y 12, 13, 14, 26
#define WIRING_MOTOR_Z 5, 4, 3, 2 #define WIRING_MOTOR_Z 23, 35, 18, 5
#define ENDSTOPS_INVERT false #define ENDSTOPS_INVERT false
#define ENDSTOPS_PULLUPS true #define ENDSTOPS_PULLUPS true
#define WIRING_ENDSTOPS_MIN {A0,A1,A2} #define WIRING_ENDSTOPS_MIN {A0,A1,A2}

View file

@ -10,7 +10,7 @@
#include "main.h" #include "main.h"
// The array below has 3 stepper objects, for X,Y,Z respectively // The array below has 3 stepper objects, for X,Y,Z respectively
const uint8_t n_motors = 3; const uint8_t n_motors = STAGE_N_MOTORS;
long min_step_delay = -1; long min_step_delay = -1;
const uint8_t min_step_delay_eeprom = sizeof(long) * n_motors; const uint8_t min_step_delay_eeprom = sizeof(long) * n_motors;
long ramp_time = -1; long ramp_time = -1;