CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

pic readout despite code protect because of x-ray radiation

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
andresteff



Joined: 21 Mar 2020
Posts: 44

View user's profile Send private message

pic readout despite code protect because of x-ray radiation
PostPosted: Thu Jun 08, 2023 9:18 am     Reply with quote

Hello,
is there a possibility to read the flash from the PIC (PIC16F1619), despite code pritect?

I have irradiated a prototype with x-ray radiation. approx. 1-3 Gray/h.
After 2 minutes the PIC went off.
The 2 prototype worked. No failure.

Now I want to read out the memory to see if the program was disturbed by the radiation, or if there is a regular hardware bug.
temtronic



Joined: 01 Jul 2010
Posts: 9113
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jun 08, 2023 9:23 am     Reply with quote

Probably not... and now you know WHY you should not use 'code protect' until the HOUR you ship out the FINAL product.

I have to assume that Microchip has altered the 'code protection' methods since the 16C84 days. Those could be read even when 'protected'....

ah the good old days.....
Ttelmah



Joined: 11 Mar 2010
Posts: 19225

View user's profile Send private message

PostPosted: Thu Jun 08, 2023 9:28 am     Reply with quote

Basically no.
That is the whole point of protection.

However you can verify the memory, using a trick. If you program another
chip with the same code, and protection, then read it, the values you get
back should be the same as those from the irradiated chip if the memory
hasn't changed.

Some of the PIC's do say they use NOR flash. This is much less likely to
be affected by XRays than NAND flash.
andresteff



Joined: 21 Mar 2020
Posts: 44

View user's profile Send private message

PostPosted: Thu Jun 08, 2023 10:41 am     Reply with quote

Ttelmah wrote:
Basically no.
That is the whole point of protection.

However you can verify the memory, using a trick. If you program another
chip with the same code, and protection, then read it, the values you get
back should be the same as those from the irradiated chip if the memory
hasn't changed.

Some of the PIC's do say they use NOR flash. This is much less likely to
be affected by XRays than NAND flash.



Apparently the debug bit was set!
I have compared the code, but I don't know what the two red differences mean. Debug bit, and....

Left side: Pic no failure. Right side, pic with failure

https://ibb.co/ZTX70LR
andresteff



Joined: 21 Mar 2020
Posts: 44

View user's profile Send private message

the pic can not be programmed.
PostPosted: Thu Jun 08, 2023 11:04 am     Reply with quote

the pic can not be programmed.

big....
Ttelmah



Joined: 11 Mar 2010
Posts: 19225

View user's profile Send private message

PostPosted: Thu Jun 08, 2023 1:14 pm     Reply with quote

Remember if a chip has a protection bit set, it can only be programmed
after a full erase using full programming voltages, not LVP.
andresteff



Joined: 21 Mar 2020
Posts: 44

View user's profile Send private message

PostPosted: Fri Jun 09, 2023 1:16 am     Reply with quote

Ttelmah wrote:
Remember if a chip has a protection bit set, it can only be programmed
after a full erase using full programming voltages, not LVP.




I can delete the pic.
but not program. Despite full progrmming voltage. NO LVP!

The PIC is broken.
Possibly it could also be EMC which is also emmitted by the x-ray radiation.
But I think it is the X-ray radiation.
Ttelmah



Joined: 11 Mar 2010
Posts: 19225

View user's profile Send private message

PostPosted: Fri Jun 09, 2023 1:45 am     Reply with quote

EMC is much more likely.
However that is why equipment in locations where it is likely to be exposed
to such problems has to be properly designed and protected.
I have some kit that is right adjacent to a couple of high power radiation
sources. They are inside lead Faraday cages. The connections for power
have multiple isolation and protection layers. Spark gap. EMC chokes.
Transorbs, then normal supply filtering and protection.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group