2
\$\begingroup\$

When programming a Microcontroller from Microchip using Pic18F and using XC8 Compiler, can i use Simulator to test / verify it ?

eeprom_write(0, 1); unsigned char value = eeprom_read (0); 

always returns 0

Note : I Am Starting at Address 0, is the starting address correct ?

Regards

\$\endgroup\$
3
  • 1
    \$\begingroup\$ What happens when you try other addresses? \$\endgroup\$ Commented Jul 13, 2016 at 10:36
  • \$\begingroup\$ nops nothing gets read , using microchip.wikidot.com/faq:36 \$\endgroup\$ Commented Jul 14, 2016 at 13:59
  • \$\begingroup\$ see: microchip.com/forums/m952592.aspx \$\endgroup\$ Commented Dec 19, 2022 at 10:33

1 Answer 1

1
\$\begingroup\$

Under MPLABX you could check the EEPROM with the simulator. Have a look:

Windows / Target Memory Views / EE Data Memory

\$\endgroup\$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.