juaenlo
Newbie level 1
- Joined
- Mar 22, 2016
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- 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.
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.