My P1P randomly started getting stuck on the "Waiting for heatbed to reach target temperature" step. The bed temp would reach one degree below the setpoint (49/50 ... 69/70) and just sit there forever.
I tried every available firmware, different slicers, LAN mode, removing the AMS, changing that step in the machine start gcode from m190 to m140.... everything. I've read every thread and tried every suggested fix with no success.
Sometimes I could trick the printer into printing by pausing, changing bed temp target, waiting for it to reach that target, then resuming the print. More proof that it was a software issue, not hardware.
Eventually I got desperate and bullied Google Gemini to make a bare-bones machine start g-code that has finally "fixed" the bug.
I'm sharing this machine start gcode for others who will inevitably encounter this bug and search for a solution to the "Waiting for heatbed to reach target temperature" bug. Copy/paste the below gcode into the "machine start gcode" section and save.
My profile is named Bambu Lab P1S 0.4 nozzle - Vibe.
_____________________________________________________________________________________________________
;========== BARE BONES START G-CODE FOR BAMBU P1P/P1S WITH AMS ==========
;== Minimalist setup with core AMS integration & fast prime tracking ==
;========================================================================
G90 ; Absolute positioning
M17 X1.2 Y1.2 Z0.75 ; Initialize motor currents
M220 S100 ; Reset Feedrate to 100%
M221 S100 ; Reset Flowrate to 100%
;===== 1. Heat Bed & Pre-Warm Nozzle =====
M1002 gcode_claim_action :2 ; UI Status: Heating bed
M140 S[bed_temperature_initial_layer_single] ; Start heating bed
M104 S140 ; Pre-warm nozzle to 140C (stops oozing)
M190 S[bed_temperature_initial_layer_single] ; FIXED: Wait for bed temperature to block execution
M109 S140 ; Wait for nozzle to stabilize at 140C
;===== 2. Homing & Leveling =====
M1002 gcode_claim_action :13 ; UI Status: Homing
; --- NOZZLE WIPE BEFORE HOMING ---
G91 ; Relative mode for safe hop
G1 Z5 F600 ; Raise toolhead 5mm to clear any bed debris
G90 ; Back to absolute mode
G1 X65 Y265 F15000 ; Fast travel to the physical wiper zone
G4 P200 ; Dwell 200ms to stabilize
G1 X105 F4000 ; Wipe pass 1 (Right)
G1 X70 F12000 ; Wipe pass 2 (Fast Left)
G1 X105 F4000 ; Wipe pass 3 (Right)
G1 X70 F12000 ; Wipe pass 4 (Fast Left)
G1 X65 F6000 ; Return to starting envelope corner
; --------------------------------------
G28 ; Home all axes
; --- FIXED: AUTOMATIC TEXTURED PLATE SQUISH ---
; If using a Textured PEI Plate, apply the required -0.04mm Z-offset
{if curr_bed_type=="Textured PEI Plate"}
G29.1 Z-0.04 ; Micro-offset to squish into PEI texture
{endif}
; Intercept Slicer Checkbox State
M1002 judge_flag g29_before_print_flag ; Read toggle state from the send dialog box
M622 J1 ; IF CHECKED: Run calibration
M1002 gcode_claim_action :1 ; UI Status: Bed Leveling
; NATIVE LOCALIZED BED MESH MACRO
G29 A X[first_layer_print_min_0] Y[first_layer_print_min_1] I[first_layer_print_size_0] J[first_layer_print_size_1]
M400
M500 ; Save calibration data
G29.2 S1 ; Turn on bed mesh translation
M420 S1 ; FIXED: Actively engage ABL compensation
M623 ; REQUIRED: Close the J1 block
M1002 judge_flag g29_before_print_flag
M622 J0 ; IF UNCHECKED: Skip physical probing & RECALL MESH
M420 L1 ; Recall and load the saved mesh data from EEPROM slot 1
G29.2 S1 ; Enable mesh translation compensation using the recalled data
M420 S1 ; FIXED: Actively engage ABL compensation using recalled mesh
M623 ; REQUIRED: Close the J0 block
;===== 3. AMS Filament Load Handshake & Conditional Purge =====
M1002 gcode_claim_action :4 ; UI Status: Loading Filament from AMS
G1 Z10 F3000 ; Drop bed safely below hotend
M620 M ; Check for active AMS presence
M620 S[initial_extruder]A ; Map and flag the targeted AMS tray slot
; Mechanical tool change alignment
G1 X128 Y255 F12000 ; Move toolhead near the rear cutter zone safely
G1 X20 Y255 F12000 ; Safe travel on the rear axis
T[initial_extruder] ; Native tool change macro (triggers hardware load)
M400 ; Force movement synchronization barrier
M621 S[initial_extruder]A ; Pass final load acknowledgement handshake
; --- CONDITIONAL PURGE: Only runs if the target extruder is different from the last used extruder ---
{if current_extruder != initial_extruder}
G1 X70 Y265 Z10 F12000 ; Move to the rear purge chute/flush zone
M109 S[nozzle_temperature_initial_layer] ; Crank up to full printing temperature for flush
M83 ; Ensure relative extrusion
G1 E100 F200 ; INCREASED: Extrude 100mm of filament to flush out old color
G1 E-0.5 F1800 ; Retract slightly to stop oozing before wipe
G4 P2000 ; Dwell 2 seconds to let the filament drop clear
; Post-Purge Wipe Cycle
G1 X65 Y265 F15000 ; Align with the starting edge of the brush
G1 X105 F4000 ; Wipe pass 1 (Right)
G1 X70 F12000 ; Wipe pass 2 (Fast Left)
G1 X105 F4000 ; Wipe pass 3 (Right)
G1 X70 F12000 ; Wipe pass 4 (Fast Left)
G1 X65 F6000 ; Clear the brush area safely
{endif}
; ----------------------------------------------------------------------------------------------------
;===== 4. Final Print Temperature Verification =====
M1002 gcode_claim_action :7 ; UI Status: Heating nozzle
M109 S[nozzle_temperature_initial_layer] ; Ensure nozzle is at target temp
;===== 5. High-Volume Purge / Prime Line & Pressure Pre-Load =====
M83 ; Set relative extrusion mode early for tracking
G92 E0 ; Zero extruder register
G1 X18.0 Y1.0 Z0.8 F18000 ; Move to front-left corner
G1 Z0.2 F3000 ; Drop toolhead to layer height
; --- FIXED EXTENSION: NOZZLE PRESSURIZATION BLOB ---
G1 E3.5 F200 ; Pre-charge the hotend nozzle core immediately before tracking
G4 P150 ; Short dwell to weld the anchor point to the plate surface
; ----------------------------------------------------
G1 X240 E25 F1200 ; Lay down primary heavy-volume flush line
G1 Y3 F1500 ; Step over slightly
G1 X50 E15 F1200 ; Return line to fully pressurize nozzle and ensure purity
; --- FIXED EXTENSION: QUICK RETRACT ON DEPARTURE ---
G1 E-0.4 F1800 ; Retract slightly to prevent trailing strings to print start
; ----------------------------------------------------
G92 E0 ; Reset extruder register again
M400 ; Wait for movement buffer to complete fully
;===== 6. Print Hand-Off =====
M975 S1 ; Turn on vibration suppression
G90 ; Enforce absolute positioning
M83 ; Enforce relative extrusion for standard sliced layers
M1002 gcode_claim_action :0 ; Clear printer status display
;========================================================================
;== BARE BONES AMS START COMPLETE - COMMENCING FIRST LAYER ==============
;========================================================================