N32G452 ADC problem

Basic Information:

Printer Model: Custom
MCU / Printerboard: Manta m5p + N32G452 based board
Host / SBC: RPi CM4

klippy.log (204.8 KB)

Describe your issue:

When I define [extruder] sensor_pin as ADC pin of the N32G452 klipper does not start.

I think that this is ADC problem of N32G452, because when I pick one of Manta ADC ports everything works - I can set temperature via mainsail and heater connected do N32G452 board is working (temperature sensor connected do manta)

Has anyone encountered a similar problem?

Looks like a hardware issue. See the log

Sending MCU 'nozzle_mcu' printer configuration...
Transition to shutdown state: MCU 'nozzle_mcu' spontaneous restart
Dumping 11 requests for client 548416608848
Received 7161.450321: b'{"id": 548149630928, "method": "info", "params": {"client_info": {"program": "Moonraker", "version": "v0.9.3-68-gebaa664"}}}'
[...]
Reactor garbage collection: (7162.86257636, 0.0, 0.0)
MCU 'nozzle_mcu' spontaneous restart
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown

Is there any way to debug this?

did anyone try N32G452 before ?

this i the log after changing sensor pin to one from manta board
klippy (1).log (45.2 KB)

Klipper supports the N32G45x MCUs.
What I cannot answer:

  • Are there any differences within this series? As far as I know, support was added following the inclusion of the Voxelab Aquila.
  • It has likely only been tested with the aforementioned printer, as I am not aware of any other usage of this chip.
  • How to further debug this. An interested developer with the necessary hardware and skills would probably need to take it up.

Pinging @SteveGotthardt, who has been the mastermind behind the Aquila, IIRC.

looks like ADC does not start…
if I comment while loops in

adc_calibrate(ADC_Module *adc)

mcu clipper starts without error but temperature readout does not work, it is showing constant 0

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.