can i migration from stm32f103c8t6 to stm32l412cbt6?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Labels:
-
STM32F1 Series
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-04-04 9:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 3: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!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 5: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 7: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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 1:05 PM
Isn't there 'P' suffix on the chip? Post photo.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 1: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-30 5:16 PM
thanks for advice guys
but i already do that.
- i used st-mcu-finder to find stm32l412
- i checked different thing from datasheet between stm32l412 and stm32f103. ( but i could not find wrong thing. )
- i bought "stm32l412cbt6" exactly ( because i already bought 'P' suffix before bought this.. )
- i checked this document ( Migrating from STM32F1 Series to STM32L4 Series / STM32L4+ Series microntrollers - Application note )
- i did drop in a L412CB where a F103C8 was before. ( and broke 2 L412CB already)
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-31 2: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
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-03-31 6: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
Thanks
Imen
