2023-12-14 01:24 AM
Dear SIR,
We want to use STM32G0B0 to develop our project. We want to use EVK to write code before our board comes.
But there is NO STM32G0B0 EVK, only STM32G0B1 EVK exist.(or NUCLEO-G0B1RE, https://www.st.com/en/evaluation-tools/nucleo-g0b1re.html)
How difficult for user migrate code from STM32G0B1 to STM32G0B0?
Thanks.
Solved! Go to Solution.
2023-12-14 01:47 AM - edited 2023-12-14 02:59 AM
Hello @E-John
Yes, it should be easy to do this migration.
You have to take care of some differences in hardware, peripheral availability, firmware, security, and tools.
Also, you can use both Cross Selector:
and Pinout compatibility feature:
available using STM32CubeMX.
Best Regards
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-14 01:47 AM - edited 2023-12-14 02:59 AM
Hello @E-John
Yes, it should be easy to do this migration.
You have to take care of some differences in hardware, peripheral availability, firmware, security, and tools.
Also, you can use both Cross Selector:
and Pinout compatibility feature:
available using STM32CubeMX.
Best Regards
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-14 05:11 AM - edited 2023-12-14 05:20 AM
You have to take care of some differences in hardware, peripheral availability, firmware, security, and tools.
---> Here are what I have found.
1. make projects 01-STM32G0B0RE and 01-STM32G0B1RE by STM32CubeIDE tool
Make code generated by tool.
2. Make a comparison between two projects directories like below
3. Different files are startup, CMSIS and linker scripts, see table below
STM32G0B0RE | STM32G0B1RE | |
startup file | 01-STM32G0B0RE\Core\Startup\ startup_stm32g0b0retx.s | 01-STM32G0B1RE\Core\Startup\ startup_stm32g0b1retx.s |
CMSIS | 01-STM32G0B0RE\Drivers\CMSIS\Device\ST\STM32G0xx\Include\ stm32g0b0xx.h | 01-STM32G0B1RE\Drivers\CMSIS\Device\ST\STM32G0xx\Include\ stm32g0b1xx.h |
linker script for flash | 01-STM32G0B0RE\ STM32G0B0RETX_FLASH.ld | 01-STM32G0B1RE\ STM32G0B1RETX_FLASH.ld |
linker script for ram | 01-STM32G0B0RE\ STM32G0B0RETX_RAM.ld | 01-STM32G0B1RE\ STM32G0B1RETX_RAM.ld |
4. HAL level drivers seems to be the same.
2023-12-14 06:05 AM
We have an project with the STM32G0B0 and bought the STM32G070 Nucleo and solderd the G0B0 to is, it is 1 to 1 pin compatible ony has USB and the 070 doesnt have USB
2023-12-14 04:45 PM - edited 2023-12-14 04:47 PM
make projects 01-STM32G0B0RE and 01-STM32G070RB by STM32CubeIDE tool.
Compare these two directories, the startup file, header files under CMSIS\Device\ST\STM32G0xx\Include\ and linker scripts are still different.
The best way I can think is to create two projects for different platforms, and merge the hardware independent code from 070 to 0B0.