Don’t mix up homing of X/Y and homing of Z
X and Y must home to the border of the bed.
You have a BTtouch, so you usually use [safe_z_home]
[safe_z_home]
home_xy_position = 150,150 # <- correct values.
speed = 35
z_hop = 10
z_hop_speed = 5
[stepper_x]
step_pin = PA14
dir_pin = !PA10
enable_pin = !PA13
microsteps = 16
rotation_distance = 40
full_steps_per_rotation = 200
endstop_pin = ^PC4
position_endstop = 150 # <--- On an Ender, this is 0
position_min = 0
position_max = 300
homing_speed = 50
homing_retract_dist = 5
More on printer limits and homing: