Building Marlin for custom board
March 16, 2022 06:05AM
I made a custom motherboard for my 3d printer. I have already checked its performance with the Klipper firmware. Is it possible to build Marlin for my board? Is there any manual?
The heart of the board I used STM32F030C8T6
Attachments:
open | download - photo_2022-03-08_23-18-21.jpg (189.5 KB)
open | download - moterboard_old_rev.pdf (282.8 KB)
Re: Building Marlin for custom board
March 16, 2022 07:06AM
64k of flash is probably insufficient to hold marlin, will be very tight...

You can probably try with stm32duno build environment but you will need to create your own board something like buildroot/share/PlatformIO/boards/marlin_malyanM200v2.json

similar to [env: STM32F070RB_malyan] in ini/stm32f0.ini

Edited 2 time(s). Last edit at 03/16/2022 07:33AM by Dust.
Re: Building Marlin for custom board
March 16, 2022 08:07AM
When choosing env: STM32F070RB_malyan will the firmware work on stm32f030c8t6?
Re: Building Marlin for custom board
March 16, 2022 08:24AM
No!

It has twice as much flash and ram. compiler will put stack or heap where there is not any ram on your controller
Re: Building Marlin for custom board
March 28, 2022 01:16AM
I tried to build based on STM32F070RB_malyan and got a lot of errors related to USB, which is not in stm32f030c8t6
Re: Building Marlin for custom board
March 28, 2022 11:09PM
Yes, you could get Marlin running on your board but ... I doubt it's worth the hassle.
  • In order to compile Marlin on an unsupported board/processor, you'll need to become very familiar with how PlatformIO compiles boards/projects and how Marlin interacts with PlatformIO. A non-trivial amount of time.
  • Marlin will fit only fit in your FLASH if very few of the options are enabled. Forget using any of the advanced bed levelling.

I suggest sticking with Klipper. Klipper is a good 3D printer base. It'll keep you happy as you learn 3D printing.

When you decide to upgrade your controller, I suggest staying away from the STM32F0xx and STM32F1xx boards. These tend to be very limited in their I/O connectors, can keep you from adding upgrades to your printer and really don't save you much when looking at your overall project budget. I personally like STM32F4xx boards with socketed stepper drivers.

Edited 1 time(s). Last edit at 03/28/2022 11:28PM by bob.kuhn@att.net.
Re: Building Marlin for custom board
April 01, 2022 12:12AM
I'm still developing the board, at the moment I can put any STM32 microcontroller in the LQFP-48 package. But I only have STM32F030C8T6 and GD32F130C8T6 (I could not flash it)
I have already run Klipper on one of the boards and it works great, but I really want to run Marlin

P.S. I initially made the board as a test board and thought to use it only with the Klipper, but if Marlin starts up, it will be cool
Re: Building Marlin for custom board
April 19, 2022 01:03AM
If I install STM32F401CCU6 can there be serious marlin build problems? It seems that marlin supported some boards on stm32f4
Re: Building Marlin for custom board
April 19, 2022 10:10AM
There is a chance. The Artillery Ruby board is supported and the environment says STM32F401xC. That board uses a LQFP-64 package.
Re: Building Marlin for custom board
April 19, 2022 10:16AM
FYSETC_CHEETAH_V20 is a STM32F401RC board supported by Marlin. Also a LQFP-64 package.
Sorry, only registered users may post in this forum.

Click here to login