How to Program the STM32 "Blue Pill" with Arduino IDE
How to Program the STM32 "Blue Pill" with Arduino IDE
http://dan.drown.org/stm32duino/package ... index.json
https://github.com/stm32duino/BoardMana ... index.json
1. How to connect hardware
-Serial(FTDI) :
https://maker.pro/arduino/tutorial/how- ... rduino-ide
- RX-A9, TX-A10
Case 1. first core method
- Board : STM32F1 Boards - Generic STM32F103C6
- Upload : Serial
- Run 'blink' example program: It works well. (The program will be uploaded.)
- but. 'EEPROM' did not work.
Case 2. second core method
-Board : BluePill F103C6(32K)
- Upload : STM32CubeProgrammer(Serial)
- Unable to upload.
I'm curious about 2 things.
Q1) Doesn't 'EEPROM' of 'STM32F103C6' work?
Q2) I want to know how to upload a program in 'second core method'.
https://github.com/stm32duino/BoardMana ... index.json
1. How to connect hardware
-Serial(FTDI) :
https://maker.pro/arduino/tutorial/how- ... rduino-ide
- RX-A9, TX-A10
Case 1. first core method
- Board : STM32F1 Boards - Generic STM32F103C6
- Upload : Serial
- Run 'blink' example program: It works well. (The program will be uploaded.)
- but. 'EEPROM' did not work.
Case 2. second core method
-Board : BluePill F103C6(32K)
- Upload : STM32CubeProgrammer(Serial)
- Unable to upload.
I'm curious about 2 things.
Q1) Doesn't 'EEPROM' of 'STM32F103C6' work?
Q2) I want to know how to upload a program in 'second core method'.
As said by @GonzoG, the STM32F1 series does not have real EEPROM. The library provided within the STM32 core do EPPROM emulation using the FLASH.myksj1105 wrote: Thu Jun 22, 2023 5:29 am @fpiSTM
hello. thank you for the reply.
STM32F103C8
Q1) Does the chip above not have 'EEPROM'?
- I actually tried to write and read the EEPROM to the corresponding chip.
It works fine.
Q2) If there is no EEPROM, how does it work?
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
STM32F103C8T6 EEPROM Very well work.
program, USB Booting good!
program, USB Booting good!
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
STM32 MCUs do not have EEPROM.
To have non-volatile memory, virtual EEPROM is created in flash memory. Because every MCU has different memory it virtual EEPROM needs to be configured for each MCU. You're using Roger's/Steave's core, so it's limited to only few MCUs and it may be missing necessary config for virtual EEPROM for F103C6.
As to upload with STM32 core, what error do you get ??
To have non-volatile memory, virtual EEPROM is created in flash memory. Because every MCU has different memory it virtual EEPROM needs to be configured for each MCU. You're using Roger's/Steave's core, so it's limited to only few MCUs and it may be missing necessary config for virtual EEPROM for F103C6.
As to upload with STM32 core, what error do you get ??
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
GonzoG wrote: Tue Jun 20, 2023 10:20 am STM32 MCUs do not have EEPROM.
To have non-volatile memory, virtual EEPROM is created in flash memory. Because every MCU has different memory it virtual EEPROM needs to be configured for each MCU. You're using Roger's/Steave's core, so it's limited to only few MCUs and it may be missing necessary config for virtual EEPROM for F103C6.
As to upload with STM32 core, what error do you get ??
STM32F103C6 : EEPROM not work
STM32F103C8 : EEPROM nice work
I don't know why, but 'STM32F103C8T6' works fine. EEPROM works fine.
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
It is not totally true

2 series have a real EEPROM:
https://www.st.com/en/microcontrollers- ... eries.html: embedded EEPROM memory
https://www.st.com/en/microcontrollers- ... eries.html: 16 Kbytes of true embedded EEPROM
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
@fpiSTM
hello. thank you for the reply.
STM32F103C8
Q1) Does the chip above not have 'EEPROM'?
- I actually tried to write and read the EEPROM to the corresponding chip.
It works fine.
Q2) If there is no EEPROM, how does it work?
hello. thank you for the reply.
STM32F103C8
Q1) Does the chip above not have 'EEPROM'?
- I actually tried to write and read the EEPROM to the corresponding chip.
It works fine.
Q2) If there is no EEPROM, how does it work?
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
As said by @GonzoG, the STM32F1 series does not have real EEPROM. The library provided within the STM32 core do EPPROM emulation using the FLASH.myksj1105 wrote: Thu Jun 22, 2023 5:29 am @fpiSTM
hello. thank you for the reply.
STM32F103C8
Q1) Does the chip above not have 'EEPROM'?
- I actually tried to write and read the EEPROM to the corresponding chip.
It works fine.
Q2) If there is no EEPROM, how does it work?
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
@GonzoG @fpiSTM
Nice to meet you geniuses. I really appreciate your answer.
1. In conclusion, EEPROM works well.
2. Actually, there is no 'EEPROM', but is it true that it is remembered for life in the same way as above? Or is it only remembered for a certain period of time?
3. In conclusion, what is the difference between 'EEPROM' used in Arduino and 'EEPROM' used in 'STM32Duino' now?
(Will users notice a difference?)
Nice to meet you geniuses. I really appreciate your answer.
1. In conclusion, EEPROM works well.
2. Actually, there is no 'EEPROM', but is it true that it is remembered for life in the same way as above? Or is it only remembered for a certain period of time?
3. In conclusion, what is the difference between 'EEPROM' used in Arduino and 'EEPROM' used in 'STM32Duino' now?
(Will users notice a difference?)
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
It's saved into flash memory until it's rewritten. If you flash a big program that will need almost whole memory and without virtual EEPROM it may overwrite data saved in virtual EEPROM.
Also:
1. Flash memory has limited (more then EEPROM) erase/write cycles. If you'll write lots of data or very often you will destroy this part of MCU flash.
2. there are only 256B of virtual flash available on F103 blue pills.
3. Virtual EEPROM uses 2kB of flash.
Also:
1. Flash memory has limited (more then EEPROM) erase/write cycles. If you'll write lots of data or very often you will destroy this part of MCU flash.
2. there are only 256B of virtual flash available on F103 blue pills.
3. Virtual EEPROM uses 2kB of flash.
Re: How to Program the STM32 "Blue Pill" with Arduino IDE
@GonzoG @GonzoG
Thank you. understand.
Thank you very much.
Thank you. understand.
Thank you very much.