Author Topic: Writing to MCU flash one byte at a time  (Read 4516 times)

0 Members and 1 Guest are viewing this topic.

Offline rhodges

  • Frequent Contributor
  • **
  • Posts: 358
  • Country: us
  • Available for embedded projects.
    • My public libraries, code samples, and projects for STM8.
Re: Writing to MCU flash one byte at a time
« Reply #25 on: October 11, 2023, 04:11:43 pm »
You have 16k of flash, maybe you can set aside 8k for your emulated EEPROM and use a half-word for each byte?

By the way, I enjoy reading these posts on the CH32V003, as I am also working with it. And last night I started on my flash library, so this is timely.

Would anyone else be interested in a thread (or threads) to use as a journal or blog working with this chip? I am duplicating my STM8 ecosystem to CH32V003, and it would be nice to have a place to chat. For example, I just wrote a small library for the WS2812B LED strings using SPI and DMA. Before that, I wrote a 32-bit, 8 digit binary and decimal library with inline assembly. And others.
Currently developing embedded RISC-V. Recently STM32 and STM8. All are excellent choices. Past includes 6809, Z80, 8086, PIC, MIPS, PNX1302, and some 8748 and 6805. Check out my public code on github. https://github.com/unfrozen
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf