Comments (11)
Hello. Your mcu is not in list. Please add it with correct configuration.
from ee.
Hii nimltd
i tried adding our own configuration and studied the architecture of flash of stm32, but still i am missing something as my code is having some issue most probably due to bad configuration of address and it is crashing into hardfault and not getting programmed after reading data from that specific sector untill i erase the wholee flash with stm32 cube programmer software
i am using **STM32F410RB ** with a flash size of 128KILOBYTES and RAM OF SIZE 32KILOBYTES
As per the referance manual here is its memory organisation
as per my memory useage it is only taking 10kb
so i can safely use seector 3
here is my config.h
Also there was no coorect configuration of my board in ee.c file so i added
QUESTION 1 IS THE FIRST PARAMETER #define _EE_SIZE (1024*16) IS CORRECT? I dont know whether it is right or wrong but i guessed it to be the size of one page or one sector right ?? If not then please reply with the correct answer
so once i read the flash data from it, after that whenever i try to put it in deebug mode or try to program i keep getting this error
Do u have any clue about it?
Thanks a lot
from ee.
@sunilkumar105 Hi, My suggestion: Use the last sector(SEC4, 64KB). it is better. you can use others for your code.
watch this configuratio. i think it like your mcu.
#if defined(STM32F411xE)
#define _EE_SIZE (1024 * 128)
#define _EE_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 5)))
#define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
#define _EE_PAGE_OR_SECTOR SECTOR
try with:
#if defined(STM32F410xB)
#define _EE_SIZE (1024 * 64)
#define _EE_ADDR_INUSE (((uint32_t)0x08020000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 4)))
#define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
#define _EE_PAGE_OR_SECTOR SECTOR
and config:
#define _EE_USE_FLASH_PAGE_OR_SECTOR (4)
from ee.
sir i tried the above configuration, now ee_init(); function is taking me to hardfault
i editted #define _EE_ADDR_INUSE (((uint32_t)0x08020000) address to 0x8000000 as the starting address of flash is 0x8000000. It committed data succesfully but read the wrong value and again the same issue, unabgle to program
from ee.
@sunilkumar105 sorry. try 0x08010000
from ee.
#if defined(STM32F410xB)
#define _EE_SIZE (1024 * 64)
#define _EE_ADDR_INUSE (((uint32_t)0x08010000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 4)))
#define _EE_FLASH_BANK FLASH_BANK_1
#define _EE_VOLTAGE_RANGE _EE_VOLTAGE
#define _EE_PAGE_OR_SECTOR SECTOR
and config:
#define _EE_USE_FLASH_PAGE_OR_SECTOR (4)
from ee.
from ee.
As per your suggestion u suggested to use #define _EE_ADDR_INUSE (((uint32_t)0x08010000) | (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 4)))
but _EE_USE_FLASH_PAGE_OR_SECTOR - 4 will always result in 0, hence making (_EE_SIZE*(_EE_USE_FLASH_PAGE_OR_SECTOR - 4))) == 0 so _EE_ADDR_INUSE will always equal to 0x08010000. But we are using sector 4 whouse starting address is 0x08011000
from ee.
yes. i see. use 0x0811000
from ee.
but why? (0X8010000 ) using this address we are pointing to a address of sector 3 and we are defining that we are working with sector 4 whose starting address is 0X8011000
from ee.
Please Try with that and tell me what is happen
from ee.
Related Issues (20)
- Writing Half word (16-bit) instead of Word(32-bits) HOT 6
- Can you help me use these files in Arduino IDE? HOT 3
- Use of this lib for stm32l476 in shutdown mode HOT 6
- Configs for STM32F411 HOT 4
- Reserve memory for EEPROM emulation HOT 1
- it's like a demo, data in dangerous if you writing data while power down or reset
- FE instead of FF HOT 3
- STM32F411xE - use lower sector HOT 3
- STM32F730R8T6 HOT 1
- STM32F103 ee_format clears 0'th page HOT 5
- Problem withe the lib for the MCU STM32F411RET6 HOT 3
- Add support for stm32h743. HOT 1
- Support for more common u599 (4mb version) HOT 5
- Build failed for STM32 L476: "PageAddress" member for FLASH_EraseInitTypeDef not applicable HOT 2
- data not written on stm32f103c8t6? HOT 11
- STM32H7 HOT 4
- EE WITH LL Libraries HOT 1
- STM32F302x8 OK HOT 1
- "Flash Word" might be 128-bit in some STM32H7 series HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ee.