Giter VIP home page Giter VIP logo

Comments (4)

KurtE avatar KurtE commented on August 17, 2024

Looking at this, what I find interesting is that:
In drv_eeprom.c lines 126...

#define ADDR_FLASH_PAGE_126 ((uint32_t)0x0801F800) /* Base @ of Page 126, 1 Kbytes /
#define ADDR_FLASH_PAGE_127 ((uint32_t)0x0801FC00) /
Base @ of Page 127, 1 Kbytes */

So this page looks correct for PAGE0:
EEVPFWV 0 0 PAGE0 801f800 801fbff HFP 1 801f804 0 HFP 1 801f806 0 status 0

But for Logical Page1, which are first write is showing: EEVPFWV ff ff PAGE1 802f800 802fbff
Which is not Page_127...

The function EE_FindValidPage returns PAGE0 or PAGE1
Which are defined:

#define PAGE0                 ((uint16_t)0x0000)
#define PAGE1                 ((uint16_t)0x0040)

The computation for The pages address is:

 address = (uint32_t)(EEPROM_START_ADDRESS + (uint32_t)(validpage * PAGE_SIZE));
pageendaddress = (uint32_t)((EEPROM_START_ADDRESS - 1) + (uint32_t)((validpage + 1) * PAGE_SIZE));

So wondering why PAGE1 is defined as 0x0040? Wonder what would happen if it was defined as 0x01?

from opencm9.04.

OpusK avatar OpusK commented on August 17, 2024

@KurtE ,

So wondering why PAGE1 is defined as 0x0040? Wonder what would happen if it was defined as 0x01?

Oh, sorry and thanks...
The value of PAGE1 is invalid. The value of PAGE1 must be modified to 0x01.
If I make a correction, it will affect your PR.
Do you want to modify and apply PR?

from opencm9.04.

KurtE avatar KurtE commented on August 17, 2024

@OpusK
That I can do...

from opencm9.04.

OpusK avatar OpusK commented on August 17, 2024

@KurtE,

Thanks again for your contribution!

from opencm9.04.

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.