Will code written for STM32f103 blue pill port easily to STM32f103 nucleo? The UM1724 manual is not that clear to me. I used FreeRTOS and Libopencm3 macros in the code. The problem I am having is not being able to debug using USB and minicom on Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-25 3:08 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-26 4:54 PM
The NUCLEO-F103RB doesn't expose the target's USB connections, where as the I think the Blue Pill does this directly to a micro-USB connector.
The NUCLEO however does have a much better debug methodology supporting SWD and SWV (Debug Communication Channel / UART Proxy), VCP-UART connectivity, via the ST-LINK/V2-1
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-25 3:42 PM
The blue pill has a STM32F103C8Tx MCU.
The NUCLEO-F103RB has a STM32F103RBTx MCU.
Both are medium density devices.
The latter has more flash memory and is a bigger package but is otherwise the same, so yes the code will port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-26 1:46 AM
Whether code is "easy" to port or not depends on how "well" the code has been written:
- If it's full of hard-coded device dependencies, it will be hard to port;
- if it is well structured, with a nice modular abstraction/interface layer, it will be much easier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-26 9:14 AM
On all STM32F103C8 I have seen, real flash size is 128 kiB and flashing and comparing in the upper 64 k worked.
Available pins and possible pin collisions may be showbreakers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-26 4:54 PM
The NUCLEO-F103RB doesn't expose the target's USB connections, where as the I think the Blue Pill does this directly to a micro-USB connector.
The NUCLEO however does have a much better debug methodology supporting SWD and SWV (Debug Communication Channel / UART Proxy), VCP-UART connectivity, via the ST-LINK/V2-1
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-27 4:05 AM
Thanks, I appreciate the feedback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-27 4:05 AM
Thanks, good advice, and your feedback is much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-27 4:06 AM
Thanks for your feedback, there are some pins I need to watch out for, you are right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-27 4:08 AM
Thanks for your reply. I probably need to revise the code that outputs characters to the console so I can interact with the software over USB.
