Hello,
I'm currently using the epcq 256 as general purpose memory and also flashing it with a .jic file. My concern was that the sectors that I am using for general purpose memory could be overwritten when flashing the .jic file to the epcq so I started looking into sector protection for the epcq. I am using two sectors as general purpose memory so I was thinking that after writing to them I would protect those sectors using the block protection bits. In the datasheet it says thatwhich makes it seem like it is used the other way around which is protecting the configuration file data from being overwritten by general purpose memory usage, however it can be used the way I am intending it right?You can set the block protection bits in the EPCS/EPCQ/EPCQ-L status register to protect those sectors that contain configuration data, and are not intended for general-purpose memory usage
Although, in my testing I found that when I'm trying to set the block protection bits it didn't appear to be working as intended. so after setting the block protection bits to the status register I then immediately read the status register to verify what I was putting in is what is coming out and that doesn't appear to be the case. I put in 01100000b and then when I read it I see 111000000b and again I tried 00000100 and yet I see 01100100b when I read the status register. why would this be the case?
Finally, I decided to just try writing to the sectors I am using as general purpose memory and flashing the configuration file without setting any protection bits at all and seeing what happens and to my surprise it seems the data I put in is not overwritten when I flash the configuration file. I tried this in the base sector 0 and in the top most sector 511 and both times the data is still there after flashing the epcq. Why is that? it seems I don't have to worry about my data being overwritten at all but I want to make sure I know for sure that is the case.
Thanks for any clarification with this!
Alex
Bookmarks