how to write a specific portion of memory during compile?
hello everyone ,i am using stm32f1 and cubeide , i want to put a 16bit security key on flash memory position page 63 during compile or build process ,is it possible ?
hello everyone ,i am using stm32f1 and cubeide , i want to put a 16bit security key on flash memory position page 63 during compile or build process ,is it possible ?
problem solved I put this part at the bottom of linker file before closing '}' of
/* Sections */
SECTIONS
/////start user section////
.mydata 0x0800FC04 : //address
{
KEEP(*(.mydata))
} >FLASH
//end user section
} //SECTIONS closing brace
then add this following line in c file
const uint32_t myValue __attribute__((section(".mydata"))) = 33668899; //store key 33668899
i tried this method from claude thanks everyone
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.