[PIC] EEPROM emulation over dspic33EV

Status
Not open for further replies.

juaenlo

Newbie level 1
Joined
Mar 22, 2016
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
16
Hello! This is my first post.

I have begun to work with PIC microcontrollers severals week ago, and I am trying to use an aplication note from Microchip to emulate EEPROM over embedded flash. The aplication note is AN1095`.

This is developed for C30 compiler, but I have to use XC16. I can compile the code, but when I test it, a "hard trap" is generated.

I think the reason is becuase the write poeration is not properly done, but it does not cause crash. When code tries to read that position, the ECC generete the "hard trap".

I am using:

micro: dspic33EV256GM106
compiler: xc16 v1.26
AN: AN1095 (you can find the code attachedView attachment DEE Emulation 16-bit v2.2.zip)

Can somebody help me please?

Thanks in advance.
 

Probably not a XC16 related problem. It seems to me that the ECC feature is incompatible with the incremental memory writing by the EEPROM emulation. A possible solution could be to setup an exception handler for the double bit error and ignore the error if it's happening in the flash emulation range.

This sounds like a problem that should be asked in the Microchip forum.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…