stm32 - Programing peripherals controllers or slave controller using master using customize bootloader -


i working on system have 2 slave peripherals , master controllers. want program 2 slave peripherals using master controller. there standard protocol or architecture such programming.

no - can use built in bootloader. in own protocol send command enter bootloader, send program described in stm application notes. way in many of devices.

how enter bootloader? there many information on internet of advices have low quality. need switch micro stage after reset - invoke bootloader. if use hal example routime may (stm32f303):

void __attribute__((noreturn)) startbootloader(void) {     void (*bootload)(void) = (void (*)(void))0x1fffd804;      hal_rcc_deinit();     hal_deinit();      systick -> ctrl = 0;     systick -> load = 0;     systick -> val = 0;      __set_primask(1);      __set_msp(*(uint32_t *)0x1fffd800);     bootload();     while(1); } 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -