Solving Approach

How do you plan to solve it?

  • Loop through all EEPROM addresses.
  • Print address in HEX.
  • Read 16 bytes per row and print each in 2-digit hex.
  • Continue until the entire EEPROM is displayed.

 

Code

/*Paste your code here*/
#include <EEPROM.h>

#define EEPROM_SIZE 512  // Change based on MCU (UNO=1024, Mega=4096, ESP32 user-defined)

void setup() {
  Serial.begin(9600);
  delay(1000);

  Serial.println("\nšŸ“Œ EEPROM Memory Map (HEX View)");
  Serial.println("-------------------------------------");

  for (int addr = 0; addr < EEPROM_SIZE; addr += 16) {
    // Print address (4-digit hex)
    Serial.printf("%04X: ", addr);

    // Print 16 bytes per row
    for (int i = 0; i < 16; i++) {
      if (addr + i < EEPROM_SIZE) {
        uint8_t data = EEPROM.read(addr + i);
        Serial.printf("%02X ", data);
      }
    }
    Serial.println();
  }
}

void loop() {
  // nothing to do
}

 

Output

Video

Add a video of the output (know more)

 

 

 

 

 

Photo of Output

Add a photo of your hardware showing the output.

 

 

 

 

Screenshot of serial Terminal 

Add a Screenshot of the serial terminal showing the output.


 

Upvote
Downvote

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!