Associate II
April 27, 2022
Solved
How can i write on flash on STM32 MCU family?
- April 27, 2022
- 2 replies
- 4037 views
I'm totally new on stm32 mcu's. i was working on a project and i want to update the MCU(The previous MCU was AVR) and i want to encode and decode base64 using Stm32CubeIDE(HAL Driver), so i decide to port my arduino library. The library is attached, but i have a problem in porting library. there is an include and function in the arduino library and i don't know how to port this part of code:
First part:
#include <avr/pgmspace.h>
const char PROGMEM b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
and this function
pgm_read_byte(&b64_alphabet[a4[i]]).
The original library file is attached. Please help me. i dont know what should i do for this.
