STM32 FLASH Programming || Write and Read || PAGE Memory Type

preview_player
Показать описание
________________________________________________________________________________________

This video only covers micrcontrollers, which have memory distributed according to Pages like Cortex M3, and M0 series.

The code is updated, and now you can Store the numbers and floats in the FLASH memory.

I have made a lot of changes in the code, so it will not look familiar to what's shown in the video. You just follow the process. Include the files, and program a memory location.

________________________________________________________________________________________

******* SUPPORT US BY DONATING******

*******Join the Membership*******

Рекомендации по теме
Комментарии
Автор

Some F103C8 have 64 KB Flash. For these MCUs, the flash address is valid between to 0x08010000.
Make sure you check if you have the 64KB or 128 KB flash.
You can check it in the cubeIDE at the bottom right ( in memory usage window) or check the flash.ld script file.

ControllersTech
Автор

Thanks, your tutorials are really helpful, there's not many people making tutorials for programming STM32 devices.

wmcmick
Автор

Great tutorial!
But we just need to remember everyone to DO NOT use your flash to store non constant data . STM32F1 series guarantee only 1k Cycles, which of course the real number is around 10k Cycles. But you can burn your flash easily if you use this as RAM.

fernandoks
Автор

Best wishes and very thanks from Turkey

adnansayder
Автор

you make programming stm32 become easier thank you

thangnguyenduc
Автор

It was an excellent example, and the english explanation is clear. Thank you, and I'll follow you.

lucianotabano
Автор

I LOVE YOU!!! You are a very great teacher. Ciao from Italy

smecmanca
Автор

Hello sir I regularly watch your video and try to learn and where I stuck i put a quarry in comment and you always help to clear that thanks you so much ❤️❤️

skvalavideo
Автор

Nicely done. I’m looking forward to the M4/M7 version.

anelson
Автор

From where these flash page appear on desktop display?(flash_page.h) and (flash_page.c)

abhinavraj
Автор

I just wrote an application where I wanted to save a calibration value to flash and, of course, turned to YouTube. All I could find was code and libraries that didn't work with the STM32F103C8T6. Made some changes, and thought I found an error in the standard library. Turns out I was trying to use FLASH_PageErase that didn't clear the FLASH_CR_PER bit, so when I went to write to flash, the PageERase bit was still set, so wouldn't write.
Thanks for the great library!!! A week earlier would have saved me many hours and the embarrassment of submitting an error report to STM. (However, I still believe that CLEAR_BIT(FLASH->CR, FLASH_CR_PER); belongs in the same procedure as the SET_BIT.)

SabreHyd
Автор

Thanks for this video! Could you explain External Flash with Winbond or others with stm32F4!

truongtansang
Автор

Controllers Tech Thanks! Do not use Keil IDE. Because it is suitable for error. Can't recognize some codes. You should use STM32CubeIDE.

nuhmusaozyoldas
Автор

i need do this without function and library. I need to write on my register somehow, idn yet

furkanayas
Автор

I was lucky to stumble upon your video. It worked flawlessly. I was working on the ST eeprom emulation that didn't work at all with many errors popping up from their sample code. I'm not sure how you managed to figure all this out. I'm curious to know how you managed to get it done alone. I'm interested in knowing how to solve such problems on my own. Their documentation is all over the place and not consolidated in an understandable manner. Any feedback would be appreciated.

xDRTeK
Автор

I tried code where we did not erase and it wrote about 3 times and then I could not write to it anymore.

mytechnotalent
Автор

Can you please make a video on how to update firmware over OTA

akhilkaki
Автор

In function void Flash_Read_Data (uint32_t StartPageAddress, uint32_t *RxBuf, uint16_t numberofwords){....}
must be if (!(--numberofwords)) break; not if (!(numberofwords--)) break; It's two big differences.
It's two different cases.

vladlesnov
Автор

Hi, I want to light an LED with PA13 but also use the SW interface to update the code. how to do both contemporaneously? can you make this video?

kapilt
Автор

Amazing tutorial.
I am using STM32G474RE, which is M4, but according to the manual it has 2 banks with 128 pages each. In the manual it says "It is only possible to program double word (2 x 32-bit data).". How should I change the code in order to work when I am trying to write 2 different variables, each uint32.
Thank you

justSdat
welcome to shbcf.ru