STM32F030RCTx Support Issue

Arduino supports a lot of STM32 devices.
But I cannot set STM32F030RCTx in arduino ide.
even though core library includes related files.

  • STM32F030RCTx is not seen in ide menu.
  • STM32F030R8x/others are seen in ide menu.

How can I set this device(STM32F030RCTx)~~??

I already installed STM32 library.

How did you try to set it? You probably needs to edit STM32 package config files.
But if you do not have experience in self-configuring the low-level IDE and programming tools (and according to your questions it seems that you do not) - I would not recommend you to do this

I'm ready to edit STM32 package config files.
@ appdata\Local\Arduino15\packages\STMicroelectronics\

I tried it a lot, but failed.

  • cores_config.json,cores_config_ci.json,....

If you give some hints, I will try it more.

no, you tried an incorrect files. To add a new controller you need to edit the stm32 package file board.txt and maybe the compilation options in platform.txt

I added belows @boards.txt
but, It dose not work.

I can not see it in tools submenu.

Hmm....

===================
boards.txt

Generic F030RCTx

GenF0.menu.pnum.GENERIC_F030RCTX=Generic F030RCTX
GenF0.menu.pnum.GENERIC_F030RCTX.upload.maximum_size=262144
GenF0.menu.pnum.GENERIC_F030RCTX.upload.maximum_data_size=32768
GenF0.menu.pnum.GENERIC_F030RCTX.build.board=GENERIC_F030RCTX
GenF0.menu.pnum.GENERIC_F030RCTX.build.product_line=F030RCTX
GenF0.menu.pnum.GENERIC_F030RCTX.build.variant=STM32F0xx/F030RCT

With these lines you added a new board to the "pnum" menu, not to main boards list.
I don't very familiar with STM32 package for more detail advices, but you should see the syntax of definitions of the other boards and try to make something similar.

what is the problem when you set processor as STM32F030R8 ?

I cannot find STM32F030RCTx in sub menu of sketch. <-- Problem - board part number

Sub menu supports almost STM32 Parts, but I cannot find STM32F030RCTx (board part number)
so, I am not able to set this device to build.

Generic F030~~

Did you try to compile the code as STM32F030R8 rather than STM32F030RCTx

I already succeeded it.
but, I should use STM32F030RCT due to 6 serial ports.

This can't be achieved just with adding a few lines in the config file. You need a package that know about additional serial ports and can works with them.

well, then you can choose STM32F030CC
UPD it is not available too. even if you modify board.txt it receive no ability to use 6 ports or 2 timers. go to developers and ask if they want to add this processors in the core.
UPD2 here it is [New Variant] request list · Issue #722 · stm32duino/Arduino_Core_STM32 · GitHub

Thank you for kind advice.

and STM32F030CC has 48 pins and RC is 64 pins~~

very difficult... TT

I added this (USERF0...)

but on build, errors..

hw_config.c:(.text.hw_config_init+0xe): undefined reference to SystemClock_Config' HardwareSerial.cpp:(.text._ZN14HardwareSerial5setRxEm+0x48): undefined reference to digitalPin'
HardwareSerial.cpp:(.text._ZN14HardwareSerial5setTxEm+0x48): undefined reference to `digitalPin'
..
ollect2.exe: error: ld returned 1 exit status


USERF0 boards

USERF0.name=USER_F030RCTx
USERF0.build.core=arduino
USERF0.build.board=GENERIC_F030RCTx
USERF0.build.mcu=cortex-m0
USERF0.build.series=STM32F0xx
USERF0.build.cmsis_lib_gcc=arm_cortexM0l_math
USERF0.build.st_extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial}
USERF0.build.flash_offset=0x0
USERF0.upload.maximum_size=0
USERF0.upload.maximum_data_size=0

USER_F030RCTx

USERF0.menu.pnum.GENERIC_F030RCTX=Generic_F030RCTx
USERF0.menu.pnum.GENERIC_F030RCTX.node=NODE_F030RCTX
USERF0.menu.pnum.GENERIC_F030RCTX.upload.maximum_size=262144
USERF0.menu.pnum.GENERIC_F030RCTX.upload.maximum_data_size=32768
USERF0.menu.pnum.GENERIC_F030RCTX.build.mcu=cortex-m0
USERF0.menu.pnum.GENERIC_F030RCTX.build.board=GENERIC_F030RCTx
USERF0.menu.pnum.GENERIC_F030RCTX.build.series=STM32F0xx
USERF0.menu.pnum.GENERIC_F030RCTX.build.product_line=STM32F030xC
USERF0.menu.pnum.GENERIC_F030RCTX.build.variant=STM32F0xx/F030RCT
USERF0.menu.pnum.GENERIC_F030RCTX.build.cmsis_lib_gcc=arm_cortexM0l_math

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