2021-03-29 10:55 PM
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?
Solved! Go to Solution.
2021-04-04 09:51 PM
2021-03-30 03:21 AM
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!
2021-03-30 05:36 AM
> 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.
2021-03-30 07:28 AM
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.
Imen
2021-03-30 01:05 PM
Isn't there 'P' suffix on the chip? Post photo.
JW
2021-03-30 01:08 PM
Imen,
This is a recurring theme here... Can the DS be please updated with the 48-pin P-suffixed parts?
Thanks,
Jan
@Imen DAHMEN
2021-03-30 05:16 PM
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..
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.
2021-03-30 11:18 PM
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.
2021-03-31 02:37 AM
"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
2021-03-31 06:58 AM
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