STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Place const at specific flash location

Hi everyone,I am developing a custom bootloader and before flash the new application image, the bootloader must ensure that the image corresponds to the board, so I think a simple way to do it is to store a specific value (constant uint32_t) into a s...

Resolved! STM32G041 boot mode selection

Hello All,We are using STM32G041F8P6 in our project. This IC will be programmed through I2C/USART and we will be using System Memory for booting(internal flash).As per the datasheet:At startup, the boot pin and boot selector option bit are used to se...

sagar_bn by Associate II
  • 1318 Views
  • 3 replies
  • 0 kudos

Flash Erase on STM32G4 doesn't work as intended

I'm running a STM32G473CB with 128kb flash, and I'm getting some issues erasing pages in bank2 of the flash. Using HAL_FLASHEx_Erase the way it's meant to be used, like in the following code that's supposed to erase pages 30 and 31 of bank2, I don't ...

schwil by Associate II
  • 1133 Views
  • 5 replies
  • 0 kudos

task is not running after hard reset in freertos

hi,I make bootloader to switch the code between two bank starting at address 0x08000000.and two application starting at 0x08020000 and 0x08100000 respectively, when I individual run the code it work fine, but when I hard reset the code, it goes to bo...

ykn by Senior
  • 397 Views
  • 0 replies
  • 0 kudos

Use of a library from multiple applications

Hi, i was thinking about placing some libraries in a reserved area on the flash and access them from two or more applications. For instatnce a bootloader and the corresponding application. I would like to update them, that's way don't like to incopo...

MOtto.2 by Associate II
  • 854 Views
  • 9 replies
  • 1 kudos

Trouble programming flash with HAL_FLASH_Program

I have troubles writing succesfully to flash on a STM32G07 chip.The application is similar to this:uint64_t data;HAL_FLASH_Unlock();HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, addr, data);HAL_FLASH_Lock();I started getting hardfault in lock becau...

TMalt by Associate II
  • 1991 Views
  • 11 replies
  • 0 kudos

Problem writing to flash (STM32F051K6U6)

HiI'm using MikroC and try to play with FlashMy problem: even if area seem ok between "bootloader" and "program", I can see program area is not complete and is writed in bootloader area.If you can help me ... thanks !#pragma orgall 0xC0 /?   #define...

JFELI.13 by Associate III
  • 443 Views
  • 3 replies
  • 1 kudos
Labels