cancel
Showing results for 
Search instead for 
Did you mean: 

can i migration from stm32f103c8t6 to stm32l412cbt6?

KChoi.3
Associate II

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?​

1 ACCEPTED SOLUTION

Accepted Solutions
KChoi.3
Associate II

[solved]

use cubeIDE or cubeProgrammer

View solution in original post

12 REPLIES 12

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!

Ozone
Lead II

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

Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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

JW

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​ 

KChoi.3
Associate II

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.

Ozone
Lead II

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.

"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

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen