Programming problem with PIC32MX550F256H

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
SerpentInst
Posts: 4
Joined: 18 Jun 2021 20:13

Programming problem with PIC32MX550F256H

#1 Post by SerpentInst » 07 Aug 2023 00:51

Hi,
I recently bought "mikroC PRO for PIC32 v.4.0.0" and new programmer/debugger tool "mikroProg for PIC, dsPIC, PIC24, and PIC32". My intention was to use it for programming PIC32MX550F256H and PIC32MZ1024EFM, mounted on my prototype boards. First I have to say programmer is working fine with "mikroC PRO for PIC v.7.6.0" I bought in 2019. Just last week I had to test some code for PIC18F4680, and it worked like a charm.
Today, I made my development board for PIC32MX550F256H making sure to respect the Microchip given recommendations about decoupling capacitors, and MCLR/reset circuit. Also I connected 12MHz HC49 crystal and two 22pF capacitors to OSC1 and OSC2 terminals. Green LED is connected to RB8 pin through 1kohm resistor. All other pins except PGEC1 and PGED1 (connected to programmer) are free. I wanted to test simple LED blink project of mine to start experimenting with this PIC, and i made a new project in "mikroC PRO for PIC32 v.4.0.0", choose my controller, choose 12MHz frequency etc. After that I wrote simple LED blink code:

#define OUT PORTB.B8
void main(){
TRISB.B8=0;
OUT=0;
while(1){
OUT =~OUT;
Delay_ms(1000);
}
}

and compile it. It compiled without any errors (here I must say that all libraries were unchecked). When I tried to program mentioned PIC, I run into problem.
Programmer recognizes the PIC connected to it, it can Erase, Read or Verify it, but if I try to program it, it fails and I got a message:

Chip write,
Memory programming FAILED!
Physical address: 0x1D00_0000
Executive response: PASS

Please help me!

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: Programming problem with PIC32MX550F256H

#2 Post by Tanja_Kovacevic » 08 Aug 2023 12:44

Hi,

Can you please share with me your connection schematics (you can also send us an email at support att mikroe dot com )?
What version of mikroProg Suite you are using?
Did you get the same message with PIC32MZ1024EFM?


Kind regards,
Tanja

Post Reply

Return to “Development Boards”