UART Bootloader with STM32Flashloader.exe and STM32G0
Hello,
after a long search for an answer to my problem, I still couldn't find a solution. Perhaps one of you can help me.
I use the MCU STM32G071RBT6 (with 128KB FLASH) and to upload .bin file via UART I use the old program STM32Flashloader.exe. As .STmap file I use STM32F0_7x_128K.STmap.
My bootloader function looks like this:
void ServiceBootJump(void)
{
void (*SysMemBootJump)(void);
volatile uint32_t addr = 0x1FFF0000;
(void) HAL_RCC_DeInit();
SysTick->CTRL = 0;
SysTick->LOAD = 0;
SysTick->VAL = 0;
(void)HAL_UART_DeInit(handleuart); __disable_irq(); __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();
SysMemBootJump = (void (*)(void)) (*((uint32_t *)(addr + 4)));
__set_MSP(*(uint32_t *)addr); SysMemBootJump();
while (1)
{
}
}
The whole thing works perfectly.
Now to the problem: Since the memory of 128KB FLASH is not enough for me, I have chosen a different MCU: STM32G0B1RCT6 with 256KB FLASH.
As .STmap file for STMFlashloader.exe I chose this one: STM32F0_9x_256K.STmap.
Now I have the problem that STMFlashloader.exe brings an error message:
Opening Port [OK]
Activating device [KO]
No response from target, the Boot loader can not be started.
What am I doing wrong or what do I have to change to make it work with the new MCU with 256KB FLASH? The address for the boot loader is the same for the booth MCUs: 0x1FFF0000.
I can successfully upload the created .bin file for the 256KB MCU with STM32CubeProgrammer via SWD port to the MCU. But I want it to work via UART and with STM32Flashloader.exe like the old MCU.
Please help.
Many thanks in advance.
