Jump to content

Boost Simulator Not Handling Some Registers

Recommended Posts

Bug description:

The simulator is not handling eeadrl+h, eedatl+h, and maybe some others correctly for the 16F1827. The values show up correctly in the Memory window, but not in the Registers window. (I have a screen shot, but not sure how to attach it here). This makes it difficult to debug code that reads/writes flash or eeprom memory. I think trisb is also broken.



Also, the read/write functions (eecon1.RD, etc) are not working. For example, a couple of cycles after raising eecon1.RD, eedatl+h should change but they do not.


Example code:

eeadrh = 0xFF; //lower byte of address of desired read location
eeadrh = 0x4;  //upper address of desired read location
eecon1.EEPGD = 1; //select flash (as opposed to EE) memory
eecon1.RD = 1; //start EE or flash memory read
asm nop;  //DO NOT MOVE next 2 lines; required to correctly read flash
asm nop;
//result should be in eedatl+eedath at this point

Expected behavior:

eedatl+eedath should change after the sequence above.


Is the problem 100% reproduceable:






Compiler version:



Target device:




Windows XP




Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...