Chip is dead after ROSEL0_REFO2CON_bit = 1

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
OldSpring
Posts: 134
Joined: 07 Feb 2007 00:01

Chip is dead after ROSEL0_REFO2CON_bit = 1

#1 Post by OldSpring » 31 Mar 2020 15:55

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,

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

#2 Post by stefan.filipovic » 01 Apr 2020 07:48

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,
Stefan Filipović

OldSpring
Posts: 134
Joined: 07 Feb 2007 00:01

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

#3 Post by OldSpring » 01 Apr 2020 22:57

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!

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

#4 Post by stefan.filipovic » 02 Apr 2020 08:27

Hi,

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

Kind regards,
Stefan Filipović

OldSpring
Posts: 134
Joined: 07 Feb 2007 00:01

Re: Chip is dead after ROSEL0_REFO2CON_bit = 1

#5 Post by OldSpring » 02 Apr 2020 14:43

Stefan:

Thank you. I will contact microchip.

Post Reply

Return to “mikroBasic PRO for PIC32 General”