• AVR Freaks

Hot!PIC18F47K42 - Bootloader erases program flash and PIC resets

Page: < 12 Showing page 2 of 2
Author
oliverb
Super Member
  • Total Posts : 285
  • Reward points : 0
  • Joined: 2009/02/16 13:12:38
  • Location: 0
  • Status: offline
Re: PIC18F47K42 - Bootloader erases program flash and PIC resets 2020/06/08 01:36:46 (permalink)
+1 (1)
Is there any conflict between the resources (control registers) used for flash programming and the resources used for a pointer operation, particularly a pointer to ROM? I'm thinking of the table pointer and TBLPTRU specifically as the compiler may be assuming its value.
#21
NorthGuy
Super Member
  • Total Posts : 6230
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: PIC18F47K42 - Bootloader erases program flash and PIC resets 2020/06/08 06:52:11 (permalink)
+1 (1)
oliverb
Is there any conflict between the resources (control registers) used for flash programming and the resources used for a pointer operation, particularly a pointer to ROM? I'm thinking of the table pointer and TBLPTRU specifically as the compiler may be assuming its value.



Impossible. The OP said that he replaced writing NVMCON with NOP keeping everything else (which includes setting TBLPTRU) intact, and this cured the corruption. Must be something related to the actual erase process, but we will never know.
#22
Page: < 12 Showing page 2 of 2
Jump to:
© 2020 APG vNext Commercial Version 4.5