Giter VIP home page Giter VIP logo

Comments (5)

nimaltd avatar nimaltd commented on May 10, 2024

do you check it? I think I checked before and it works fine.... I can not remember now

from ee.

remrol avatar remrol commented on May 10, 2024

Yes this is the problem which I found just now on STM32F103CBT6 using STM32CubeIDE Version: 1.10.1 HAL 1.8.4
Original code overwrites first FLASH page and the MCU stops working, need to re-program MCU.
After modification everything works fine.
Of course it will be great if someone check this issue.

EDIT:
from stm32f1xx_hal_flash_ex.h, see PageAddress desription, it clearly says it should be FLASH address

/**

  • @brief FLASH Erase structure definition
    /
    typedef struct
    {
    uint32_t TypeErase; /
    !< TypeErase: Mass erase or page erase.
    This parameter can be a value of @ref FLASHEx_Type_Erase */

uint32_t Banks; /*!< Select banks to erase when Mass erase is enabled.
This parameter must be a value of @ref FLASHEx_Banks */

uint32_t PageAddress; /!< PageAdress: Initial FLASH page address to erase when mass erase is disabled
This parameter must be a number between Min_Data = 0x08000000 and Max_Data = FLASH_BANKx_END
(x = 1 or 2 depending on devices)
/

uint32_t NbPages; /!< NbPages: Number of pagess to be erased.
This parameter must be a value between Min_Data = 1 and Max_Data = (max number of pages - value of initial page)
/

} FLASH_EraseInitTypeDef;

from ee.

nimaltd avatar nimaltd commented on May 10, 2024

thanks for reporting..

from ee.

nimaltd avatar nimaltd commented on May 10, 2024

please check again. I fixed it

from ee.

remrol avatar remrol commented on May 10, 2024

Works fine thank you, can be closed

from ee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.