Close

Lerdge Clock Issues Identified

A project log for Lerdge 3d Printer Mainboard Hacking

Breaking the encryption on the Lerdge series mainboards so I can try porting Marlin 2.0 to it.

jc-nelsonJ.C. Nelson 12/29/2018 at 01:552 Comments

I noted in the previous log that the failure to run at faster baud was probably clock related. Today I built a binary that dumps the oscillator and clock configs to see how the bootloader and reboot works, and here's what I found - "Letting the bootloader configure the clock" is bad. 


Here's the clock config from both:

  OscillatorConfig:
  OscillatorType:15 (all of them)
  HSEState:0
  LSEState:0
  HSIState:1
  HSICalibrationValue:16
  LSIState:0
  PLLConfig:
  PLL.PLLState:1
  PLL.PLLSource:0
  PLL.PLLM:16
  PLL.PLLN:192
  PLL.PLLP:2
  PLL.PLLQ:4
  Obtaining Clock Config:

  Obtained Clock Config

  ClockType:15
  SYSCLKSource:0
  AHBCLKDivider:0
  APB1CLKDivider:0
  APB2CLKDivider:0
  Flash Latency:5

So, that's what is wrong. If I attempt to initialize the oscillators, the board hangs, so I need to debug to this and figure it out.

Discussions

Leonel wrote 12/29/2018 at 03:08 point

lol at this rate you might figure it out by the end of the year

  Are you sure? yes | no

J.C. Nelson wrote 12/30/2018 at 00:05 point

Unlikely I'll have everything running. I'd be happy if I could just run a stripped down Marlin build as a starting point.

  Are you sure? yes | no