bigtreetech / BIGTREETECH-OCTOPUS-Pro

This is OCTOPUS Pro open source material
270 stars 59 forks source link

serial comm issue H723ze #51

Open shortcircuitaz opened 1 week ago

shortcircuitaz commented 1 week ago

I have been hours on google searching for the answer to this issue, and have worked with ChatGPT for a while on the "official" marlin distribution for 2.0.9.3,

MOTHERBOARD BOARD_BTT_OCTOPUS_MAX_EZ_V1_0 STM32H723ZE

I finally got Marlin to compile (using the 2.1.2.5 code,)

I stole the env from the 2.0.9.3 [env:STM32H723Zx_btt] extends = stm32_variant platform = ststm32@~14.1.0 platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip board = marlin_STM32H723Zx board_build.offset = 0x20000 board_upload.offset_address = 0x08020000 build_flags = ${stm32_variant.build_flags} -DPIN_SERIAL1_RX=PA_10 -DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL2_RX=PD_6 -DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL4_RX=PA_1 -DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL7_RX=PE_7 -DPIN_SERIAL7_TX=PE_8 -DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024 -DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2 -DSTEP_TIMER_IRQ_PRIO=0 -DRCC_PERIPHCLK_I2C35=RCC_PERIPHCLK_I2C5 -DUSE_USB_HS -DUSE_USB_HS_IN_FS -DD_CACHE_DISABLED -UI2C5_BASE upload_protocol = cmsis-dap debug_tool = cmsis-dap

I compile, and take the firmware.bin, store it on the card, and insert it into the machine. this is where things turn for the worse.

when i try to load the serial port onto my computer, it detects COM4, makes the entry in device manager, but when I try to connect to COM4, the app I'm using (pronterface) locks up and simply won't connect with com4, when i try to connect using putty (serial port) it tells me "access denied"

this locks pronterface, until I disconnect the USBC cable.

I have tried multiple settings for the serial, serial_2, Serial,3 (and othrs) NONE of them seem to work at all.

so I'm at a loss as to what is going on that I'm missing. (forgive me, I'm a bit of a novice)

my current serial section as it stands right now is // @section serial

/**

/**

//#define BAUD_RATE_GCODE // Enable G-code M575 to set the baud rate

/**

/**

// Enable the Bluetooth serial interface on AT90USB devices //#define BLUETOOTH

// Name displayed in the LCD "Ready" message and Info menu //#define CUSTOM_MACHINE_NAME "3D Printer"

// Printer's unique ID, used by some programs to differentiate between machines. // Choose your own or use a service like https://www.uuidgenerator.net/version4 //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

// @section stepper drivers

/**

and I need to reitterate that this is the h723 board

(I did note one thread thought the issue was a temp sensor, recommended -5 for temp_sensor_0, that code wouldn't compile)

the second issue that I have (and this was somewhat less important) is that I can't find this board's schematic on the octopus github. the BLtouch is in the bottom-right near center instead of the very far top right corner and it would be very nice to have a proper schematic to put the ports/numbers/pins together correctly.

someone, please tell me what's wrong? or help me fix it for others having the same issues?

shortcircuitaz commented 1 week ago

UPDATE: I found the proper document for this board, and serial_2 should be -1 (by the pinout) so I don't know how to fix this issue.

FINALLY -- SUCCESS!!!

I followed the second set of instructions here https://www.youtube.com/watch?v=ha-7qlQELIc with the bugfix version 2.1.x and the port detects and connects properly