Skip to main content
KChoi.3
Associate
March 30, 2021
Solved

can i migration from stm32f103c8t6 to stm32l412cbt6?

  • March 30, 2021
  • 7 replies
  • 2868 views

i replaced board mcu from stm32f103c8t6 to stm32l412cbt6.

now i cant connect board with swd port.

is stm32l412 not support swd port by default?

or do i need to change some schemetic for stm32l412?​

This topic has been closed for replies.
Best answer by KChoi.3

[solved]

use cubeIDE or cubeProgrammer

7 replies

Andrew Neil
Super User
March 30, 2021

You're going to have to get the two Datasheets and Reference Manuals and do a careful comparison of what is common and what is different

For a start, STM32F103 is a Cortex-M3, but STM32L412 is a Cortex-M4

If your code is well-structured, it should be easy to separate what's target-specific from what's target-independent.

If your code is not well-structured, now might be the time to make it so!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ozone
Principal
March 30, 2021

> i replaced board mcu from stm32f103c8t6 to stm32l412cbt6.

> now i cant connect board with swd port.

I hope you did not just drop in a L412CB where a F103C8 was before.

In a best-case scenario, nothing happens. Worst case the new MCU is dead.

You will almost certainly need a new PCB.

As Andrew Neil suggested, do a datasheet comparison, including pin layout.

Technical Moderator
March 30, 2021

Hello @KChoi.3​ and welcome to the STM32 Community =)

In addition of datasheet comparison, I advise you to use ST-MCU-FINDER integrates the Cross Selector feature (also integrated in STM32CubeMX tool) which allows you to compare the characteristics of two or more MCUs products, and to display the list of compatible MCUs.

I attached the Excel file comparing the characteristics of STM32F103C8Tx with STM32L412CBTx.

0693W000008yItQQAU.jpgImen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
Super User
March 30, 2021

Imen,

This is a recurring theme here... Can the DS be please updated with the 48-pin P-suffixed parts?

https://community.st.com/s/question/0D50X0000BFzzwvSQB/which-stm32l412-mcus-have-smps-and-are-in-production

Thanks,

Jan

@Imen DAHMEN​ 

Technical Moderator
March 31, 2021

Hi @Community member​ ,

A new datasheet will be published soon on the ST website containing this update =)

So, keep an eye out for the coming update.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
waclawek.jan
Super User
March 30, 2021

Isn't there 'P' suffix on the chip? Post photo.

JW

KChoi.3
KChoi.3Author
Associate
March 31, 2021

thanks for advice guys

but i already do that.

software is dependent by HAL Library ( it only different ADC and TIM number)

board worked correctly when it was F103.

i tried this 3 time on each boards. ( 2 board already broken, recent one is yet. )

all they look like no problem when first. (voltage is 3.3v)

when i try programming with swd, it cant read device information. ( i checked swdio and swclk signal, it look like no response from STM32L412 )

after several swd connect try, mcu be broken. (voltage is 330mv)

this is recent one, it is not broken yet..

0693W000008yLbPQAU.jpg0693W000008yLfMQAU.jpg 

0693W000008yLfHQAU.jpg0693W000008yLrXQAU.jpg do i need to edit schematic for use this? (i know L412 has no BOOT1. it just low input gpio )

if i missed something, plz say that.

Andrew Neil
Super User
March 31, 2021

"but i already do that"

But there's no way we could have known that - is there?

"i did drop in a L412CB where a F103C8 was before. ( and broke 2 L412CB already)"

Seriously?

You really should prototype this first to be sure that everything is working before just dropping a chip onto the board

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ozone
Principal
March 31, 2021

Did you check that pins like VDD, VDDA, VSS, nRST, OSC_xx are the same ?

Besides the SWD pins ?

AFAIK, it is recommended to buffer VDD with ceramic capacitors as well, electrolytic caps have a relatively low self-resonance.

KChoi.3
KChoi.3Author
Associate
April 1, 2021

0693W000008yZELQA2.jpg0693W000008yZF3QAM.jpg

here​

KChoi.3
KChoi.3AuthorBest answer
Associate
April 5, 2021

[solved]

use cubeIDE or cubeProgrammer