MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.03k stars 19.13k forks source link

[FR] STMicroelectronics STM32G4 MCU series of STM32 Nucleo-64 development boards #21082

Open Gamester17 opened 3 years ago

Gamester17 commented 3 years ago

Description

Requesting HAL support in Marlin for STMicro's STM32 Nucleo-64 development boards with STM32G4 (STM32 G4) 32-bit MCUs.

https://www.st.com/resource/en/user_manual/dm00556337-stm32g4-nucleo-64-boards-mb1367-stmicroelectronics.pdf

https://en.wikipedia.org/wiki/STM32#STM32_G4

STMicro has so far released three STM32G4 devboards with STMicro's STM32 Nucleo-64 MB1367 reference board form factor.

They all have ARM Cortex-M4 core running 170Mhz, 512KB flash memory, 128KB RAM memory, ARDUINO Uno V3 connectivity and ST morpho headers, plus integrated STLINK debugger/programmer interface.

NUCLEO-G474RE was the of them to be released/available (which was about 18 months) and unlike the other two, NUCLEO-G474RE with STM32G474RE is part of the STM32G4 "hi-resolution line" so its MCU also features "Hardware Math Accelerator, High-resolution Timer v2, and High Analog level integration".

https://docs.platformio.org/en/latest/boards/ststm32/nucleo_g474re.html

https://docs.platformio.org/en/latest/boards/ststm32/nucleo_g431rb.html

NUCLEO-G474RE devboard with STM32G474RE MCU cost ~ $15 from STMicro direct and looks to be available at global distributors:

https://estore.st.com/en/nucleo-g474re-cpn.html

image

image

Additional Information

The STM32G4 series of MCUs as a whole have three lines of products:

STMicroelectronics claims that the STM32G4 series should have a high degree of compatibility with the STM32F3 (STM32 F3) series as the STM32G4 series is the next generation of Cortex-M4F microcontrollers aiming to replace STM32F3 (STM32 F3) series

https://www.st.com/content/st_com/en/about/media-center/press-item.html/p4159.html

https://www.st.com/en/microcontrollers-microprocessors/stm32g4-series.html

image

X-Ryl669 commented 3 years ago

Is it supported in STSTM32 yet ? If not, please open a FR there first.

I am asking because it has to be supported here first so that Marlin could use it.

Gamester17 commented 3 years ago

Is it supported in STSTM32 yet ? If not, please open a FR there first.

I am asking because it has to be supported here first so that Marlin could use it.

Both NUCLEO-G474RE and NUCLEO-G431RB are already supported by STSTM32 (but NUCLEO-G491RE is not supported there yet):

https://docs.platformio.org/en/latest/boards/ststm32/nucleo_g474re.html

https://docs.platformio.org/en/latest/boards/ststm32/nucleo_g431rb.html

https://github.com/platformio/platform-ststm32/blob/252752d7c2745e387862d11f26f35cf2180f5ead/boards/nucleo_g474re.json

https://github.com/platformio/platform-ststm32/blob/252752d7c2745e387862d11f26f35cf2180f5ead/boards/nucleo_g431rb.json

https://github.com/platformio/platform-ststm32/issues/496