cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g0b1 Intern bootloader by FDCAN

MohammadNajeeb
Associate

Hello

I have two boards master(stm32h743) and slave (stm32g0b1).

I am trying to use FDCAN intern bootloader to update stm32g0b1.

I have the upgrade file (bin file) for stm32g0b1 saved inside SD-card that the master board has access to.

Stm32g0b1 starts from system memory after booting. I send erase command and write commands from stm32h743 to stm32g0b1 to erase the flash memory and write the new bin file to stm32g0b1 and then i send go-command to jump to application and thats all works very well as i want. 

But, when I receive a new upgrade file on the SD-card and attempt to return stm32g0b1 to system memory, it appears to do so but I'm uncertain if this is occurring correctly, as I do not receive any response from stm32g0b1 when I isend commands, such as the erase command.

Anyone has any tips or anything could help me?

I use boot0 pin low to start always in system memory after booting.
And i use NVIC_SystemReset to resend CPU to systemmemory when Master detect a new bin file inside SD-card.


 

3 REPLIES 3
Issamos
Lead II

Hello @MohammadNajeeb 

You can maybe use a LED to toggle every time a command is well executed.

Best regards.

II

The problem is something wrong happend when i make stm32g0b1 jump from application and back to the system memory.

Than, I suggest you to debug your code using the necessary breakpoints.

Best regards.

II