STM32L010K8 ROM Bootloader via I2C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-22 9:00 AM
Hello, I have a wearable design which consists of 2x STM32 MCUs (One STM32WB and a STM32L010K8). They are connected via I2C and I need to be able to reprogram the STM32L010K8 using the STM32WB via the I2C port. However, there's mixed information related to the capability of the ROM bootloader to communicate via I2C. The first page of the STM32L010K8 datasheet says that the pre-programmed bootloader supports SPI and UART. Then on page 18 (Boot modes) it states that I2C on pins PB6 and PB7 can be used to reprogram the flash memory.
Which one is correct? Can anyone here confirm if the STM32L010K8 can be reprogrammed via I2C using the ROM bootloader?
Cheers,
Daniel
Solved! Go to Solution.
- Labels:
-
Bootloader
-
I2C
-
STM32L0 Series
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-27 2:32 AM
Hi @DCamp.4​ ,
Sorry to come back late to this discussion. Even if you have already got the answer, it will be helpful to explain the situation for other Customers facing the same issue.
So, I confirm that AN2606 is the correct one (aligned with front page content of the datasheet where I2C bootloader isn't listed).
The content of section 3.4.4 will be updated to remove I2C in coming versions of STM32L010K8 datasheet.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-22 9:42 AM
> Then on page 18 (Boot modes) it states that I2C on pins PB6 and PB7 can be used to reprogram the flash memory.
Are you sure you're looking at the right/recent datasheet?
https://www.st.com/resource/en/datasheet/stm32l010c6.pdf
Nothing there about I2C support.
AN2606 doesn't say it has I2C support either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-22 9:44 AM
If you've got the hardware in front of you how hard could it be to test it yourself?
AN2606 suggests it's only SPI and UART for L01x
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-06-22 10:30 AM
@Community member​ and @TDK​ thank you for the quick responses!
I should have been more specific with the device I'm trying to design with. It is this one: https://www.st.com/en/microcontrollers-microprocessors/stm32l010k8.html
Yes, I checked AN2606, but the datasheet says I2C should work, therefore I'm still hoping that I2C is available for the ROM bootloader. I don't have the device in front of me as I working on the PCB design at the moment and so far I haven't seen any EVAL or DISCOVERY kit with it that I could order to try it out.
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-22 10:37 AM
Your local FAE?
The L011K4 I'm using is tighter, not sure I'd want to code a loader in it.
Are you critically short of pins? you could map PA2/PA3 onto the I2C pins to give yourself options.
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-06-22 10:42 AM
I'm really not looking into coding my own bootloader, that's why the idea is to use the one built-in ROM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-23 7:42 AM
Any STM employee around here that could help shed some light into this?
Cheers,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-23 9:18 AM
They have very low presence here, suggest you go in via your supply chain staff, local reps, local support engineers
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-07-27 2:32 AM
Hi @DCamp.4​ ,
Sorry to come back late to this discussion. Even if you have already got the answer, it will be helpful to explain the situation for other Customers facing the same issue.
So, I confirm that AN2606 is the correct one (aligned with front page content of the datasheet where I2C bootloader isn't listed).
The content of section 3.4.4 will be updated to remove I2C in coming versions of STM32L010K8 datasheet.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
