Page 1 of 1

Chip is dead after ROSEL0_REFO2CON_bit = 1

Posted: 31 Mar 2020 15:55
by OldSpring
Hello, MB Team:

We are developing our new project using Pic32MZ2048. The MCU is dead after we use "ROSEL0_REFO2CON_bit = 1". Could you let us know what is wrong?

MCU Pic32MZ2048EFM100
OP Windows 7
MB pic32 4.00
mikroProg 2.60

Best regards,

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

Posted: 01 Apr 2020 07:48
by stefan.filipovic
Hi,

The ROSEL<3:0> bits should not be written while the ACTIVE bit is ‘1’, as undefined behavior may result.
Have you checked the ACTIVE bit before you wrote to the ROSEL<3:0> bits?

What do you mean by the MCU is dead? Are you able to erase/program its memory?

Kind regards,

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

Posted: 01 Apr 2020 22:57
by OldSpring
Hi, stefan,

Thank you for you fast reply.
Yes, we did it when Active bit = 1. Now the chip can't erase/program its memory. :( :( :(
Could you help us to active it? Thank you!

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

Posted: 02 Apr 2020 08:27
by stefan.filipovic
Hi,

I suggest you contact Microchip's Technical support. Hopefully, they have some workaround to this issue.

Kind regards,

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

Posted: 02 Apr 2020 14:43
by OldSpring
Stefan:

Thank you. I will contact microchip.