Skip to main content
KChoi.3
Associate
Mar 30, 2021 5:55 AM UTC
Solved

can i migration from stm32f103c8t6 to stm32l412cbt6?

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.
KChoi.3
KChoi.3Best answer
Associate
Apr 5, 2021 4:51 AM UTC

[solved]

use cubeIDE or cubeProgrammer

12 replies

Andrew Neil
Super User
Mar 30, 2021 10:21 AM UTC

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
Mar 30, 2021 12:36 PM UTC

> 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.

ST Technical Moderator
Mar 30, 2021 2:28 PM UTC

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
Mar 30, 2021 8:08 PM UTC

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​ 

ST Technical Moderator
Mar 31, 2021 1:58 PM UTC

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
Mar 30, 2021 8:05 PM UTC

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

JW

KChoi.3
KChoi.3Author
Associate
Mar 31, 2021 12:16 AM UTC

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
Mar 31, 2021 9:37 AM UTC

"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
Mar 31, 2021 6:18 AM UTC

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
Apr 1, 2021 11:54 PM UTC

0693W000008yZELQA2.jpg0693W000008yZF3QAM.jpg​

here​

KChoi.3
KChoi.3AuthorBest answer
Associate
Apr 5, 2021 4:51 AM UTC

[solved]

use cubeIDE or cubeProgrammer