Maxim  
                
                  
                    September 5, 2024,  6:38pm
                   
                  1 
               
             
            
              klippy (10).log  (1.4 MB)
after configuring everything to communicate with UART it just keeps showing:
Printer is not ready
i checked everything multiple times and cant figure it out
             
            
              
            
           
          
            
            
              What is your Host computer and what steps did you follow to enable the serial port?
Could you also include how you programmed your Octopus Pro (make menuconfig infomration)?
             
            
              
            
           
          
            
              
                Maxim  
              
                  
                    September 5, 2024,  7:34pm
                   
                  3 
               
             
            
              Hello im using a raspberry pi4 and i used this make menuconfig information:
Micro-controller Architecture = STMicroelectronics STM32 
Processor model = STM32H723 
Bootloader offset = 128KiB bootloader 
Clock Reference = 25 MHz crystal 
Communication interface = Serial (on USART2 PD6/PD5) 
 
and i did all of these:
Remove console=serial0,115200 in /boot/cmdline.txt 
Add dtoverlay=pi3-miniuart-bt at the end of file /boot/config.txt 
Modify the configuration of [mcu] in printer.cfg to serial: /dev/ttyAMA0 and enable restart_method: command by SSH 
added enable_uart=1  in /boot/config.txt 
 
             
            
              
            
           
          
            
            
              Sorry, I should also have asked how you made up your cabling.
Can I ask why you’re not connecting via USB?  I just went through the process of setting up a serial connection and USB is a lot easier and a lot less finnicky.
             
            
              
            
           
          
            
              
                Maxim  
              
                  
                    September 5, 2024,  7:55pm
                   
                  5 
               
             
            
              I connected the TX to RX and RX to TX.
             
            
              
            
           
          
            
            
              Could you show how you are wiring things?  As always, I’m interested in a single common ground.
You never mentioned what the host you’re using.
If it’s a Raspberry Pi (or clone) you should have two to four USB ports.
             
            
              
            
           
          
            
            
              Why did you mark this as solved?  Are you okay?
If not, how are you connecting ground between the rPi and the Octopus Pro?
             
            
              
            
           
          
            
              
                Maxim  
              
                  
                    September 6, 2024,  2:00pm
                   
                  9 
               
             
            
              I’m connecting the ground from the ground pins next to the TX and RX pins to the Pi ground
             
            
              
            
           
          
            
            
              Could you please provide a drawing of how things are wired?
When I look at the upper image that you provided:
I don’t see any evidence of:
I’m connecting the ground from the ground pins next to the TX and RX pins to the Pi ground
 
Your goal needs to be to make this as simple as possible for me to figure out what’s going wrong.
I’m not here to judge, but I do need accurate and complete information.
             
            
              
            
           
          
            
              
                Maxim  
                
                  
                    September 6, 2024,  6:14pm
                   
                  11 
               
             
            
              this is the drawing i have created
             
            
              
            
           
          
            
              
                Maxim  
                
                  
                    September 6, 2024,  6:15pm
                   
                  12 
               
             
            
              this is the picture i have used to do the wiring by the way
             
            
              
            
           
          
            
            
              Okay, that looks right, but sorry, I don’t see it in your picture.  Maybe you could retake it from a different angle?
Regardless, how are you powering the Rapsberry Pi and how are you powering the Octopus Pro?  Sorry, I should have asked that right from the start.
             
            
              
            
           
          
            
              
                Maxim  
              
                  
                    September 6, 2024,  7:08pm
                   
                  14 
               
             
            
              im powering the raspberry pi with usb-c and im powering the octopus with 24v
             
            
              
            
           
          
            
            
              Take care that you connect
TX of the Pi to RX of the Octopus 
 
and
RX of the Pi to TX of the Octopus. 
 
             
            
              1 Like 
            
            
           
          
            
            
              
Where is the USB-C power for the rPi coming from?
A diagram of how you are powering your system would be really helpful.
             
            
              
            
           
          
            
            
              
How did you program your Octopus Pro?  SD Card to DFU?
             
            
              
            
           
          
            
            
              
 Maxim:
 
and i did all of these:
Remove console=serial0,115200 in /boot/cmdline.txt 
Add dtoverlay=pi3-miniuart-bt at the end of file /boot/config.txt 
Modify the configuration of [mcu] in printer.cfg to serial: /dev/ttyAMA0 and enable restart_method: command by SSH 
added enable_uart=1  in /boot/config.txt 
 
 
 
I just set up an rPi-4B with the latest 64bit rPi OS Lite and I’m trying to get UART0 (which you are using working).
Following your instructions:
Now, when I look at /boot/cmdline.txt, I get the message to say that it has been moved to /boot/firmware/cmdline.txt and I’m editing this file using sudo nano /boot/firmware/cmdline.txt 
I removed the console=serial0,115200 at the start of the file and added dtoverlay=pi3-miniuart-bt at the end 
No changes to printer.cfg as I’m not there yet. 
Same comment about /boot/config.txt - it’s actually in /boot/firmware/config.txt 
I added enable_uart=1 at the end of /boot/firmware/config.txt 
 
With this done, I checked /dev/tty*, no ttyAMA0.
Rebooted and checkd for ttyAMA0 and saw:
It’s not there.
So, your process doesn’t work on the latest rPi.
Can you:
Confirm that ttyAMA0 does exist in your system - I use the following command: 
 
ls /dev/tty*
Could you confirm the Raspberry Pi model you’re using and the OS?  I’m a bit suspicious that you’re using the latest one because config.txt and cmdline.txt are in the /boot directory - they were moved out of there some time ago. 
 
             
            
              
            
           
          
            
              
                Maxim  
              
                  
                    September 6, 2024,  9:35pm
                   
                  20 
               
             
            
              yes the ttyAMA0 does exist.
             
            
              
            
           
          
            
            
              Okay, I’ll give that a try…
Now, you didn’t answer my question regarding how you flashed the Octopus Pro.  How did you verify that the flashing operation was correct?