Skip to main content
Visitor II
April 7, 2024
Question

program MCU via system rom bootloader and CANBUS STM32F2

  • April 7, 2024
  • 0 replies
  • 772 views

hello :)

I am trying to program my MCU via system ROM bootloader. 

I have read an3154-can-protocol-used-in-the-stm32-bootloader-stmicroelectronics reference manual &

an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics. 

I wrote a C++ program as a host, I can read and erase pages from memory, but I cannot write to the flash.

I have success only write a page of 256 bytes to the base address of each sector, if i try to write to other locations it fails.

i added a pictures of a sector that i tried to write to. as the manual says i am writing 256 bytes every time. 

as you can see only the first 256 bytes succeeded. any ideas? 

thanks, Eliran.

    This topic has been closed for replies.