So im trying to support it in stm32duino. I got it working just fine on cubeIDE but i miss the quickness you can throw together code from there. I tried to add this by doing the following: 1 under boards.txt i added the F0 to the HID upload method to have this automated. Made the vector offset to 0x0000. Then modified the ld script to offset like the github link:
Code: Select all
MEMORY
{
RAM (xrw) : ORIGIN = 0x200000c0, LENGTH = 16192
FLASH (rx) : ORIGIN = 0x8000800, LENGTH = 126K
}
Last bit of code i need to add would be this:
Code: Select all
memcpy((void*)SRAM_VTABLE_ADDR,(void*)FLASH_VTABLE_ADDR,VTABLE_SIZE);
SYSCFG->CFGR1 |= 3;
Also i did test the bootloader in the link with HID-flash and works like a charm with the example using cube IDE.
Edit: also the bootloader i linked is set for a 128kB flash. so page size are 2kB. if your using something with less then change it to 1k