Mini PIC32MZ Example

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
siradr
Posts: 34
Joined: 31 Oct 2008 18:22
Location: Malaysia

Mini PIC32MZ Example

#1 Post by siradr » 03 Sep 2020 07:48

Hello mikroe team,

I have just bought the MIni 32 MZ but i cannot find the example code for the board. Where is it located ? For mini32 there is example but not for MZ series.

Regards,
Adrian

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

Re: Mini PIC32MZ Example

#2 Post by stefan.filipovic » 03 Sep 2020 11:55

Hi Adrian,

I've attached a simple example for MINI-32 PIC32MZ.

Kind regards,
Attachments
MINI-MZ.zip
(318.06 KiB) Downloaded 95 times
Stefan Filipović

siradr
Posts: 34
Joined: 31 Oct 2008 18:22
Location: Malaysia

Re: Mini PIC32MZ Example

#3 Post by siradr » 03 Sep 2020 16:03

Hello Stefan,

Thanks for the code. I wonder why was it not posted on the webpage ? As this serve as a reference for building blocks for this mini32MZ.

I have tried the example code and i guess there is something wrong with the bootloader after downloading the code. It sometimes works but sometimes it does not. If it is working, for example the blinking LEDs, then when i press the reset button it enters the bootloader mode and exits then it will not run anymore.

I tried a number of times and this happen always. Is there an updated version of the bootloader ? The PIC32MZ is running hot and its normal for 252MHz speed but it will not execute the program properly after it exits bootloader mode.

Regards,
Adrian

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

Re: Mini PIC32MZ Example

#4 Post by stefan.filipovic » 04 Sep 2020 10:15

Hi Adrian,

I believe the problem is related to the bootloader. Do you have an external programmer to reprogram the MCU with the latest bootloader hex file?

Kind regards,
Stefan Filipović

siradr
Posts: 34
Joined: 31 Oct 2008 18:22
Location: Malaysia

Re: Mini PIC32MZ Example

#5 Post by siradr » 04 Sep 2020 16:55

Hello Stefan,

Yes i guess it is related to bootloader. I have external programmer but is the latest firmware on the website ? Is it still valid or is there a newer version ?

On the mikroe website the bootloader is dated 26th July 2017 which i think it is very old one.

Regards,
Adrian

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

Re: Mini PIC32MZ Example

#6 Post by stefan.filipovic » 07 Sep 2020 10:12

Hi Adrian,

Please try with the bootloader hex file from the attachment.

Kind regards,
Attachments
Bootloader.zip
(28.02 KiB) Downloaded 94 times
Stefan Filipović

siradr
Posts: 34
Joined: 31 Oct 2008 18:22
Location: Malaysia

Re: Mini PIC32MZ Example

#7 Post by siradr » 11 Sep 2020 01:52

Hello Stefan,

The new bootloader works perfectly. I have tested it numerous times for 2 days without problems.

Could you share what has changed on the new bootloader and will it affect on how we program on this mini 32 MZ series ?

I notice previously the old bootloader is using ~170mA with just a simple blinking program and now the with the new bootloader is running lower at about ~135mA. Is it something to do with the oscillator ?

Thanks again.

Regards,
Adrian

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

Re: Mini PIC32MZ Example

#8 Post by stefan.filipovic » 11 Sep 2020 15:31

Hi Adrian,

The only changes were in the clock settings. The clock for the bootloader is now set for 200 MHz MCU clock frequency.

Kind regards,
Stefan Filipović

siradr
Posts: 34
Joined: 31 Oct 2008 18:22
Location: Malaysia

Re: Mini PIC32MZ Example

#9 Post by siradr » 15 Sep 2020 08:32

Hello Stefan,

For the blinking code example the clock frequency is set at 252MHz. Do i need it to change to 200MHz for it to work properly ?

Regards,
Adrian

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

Re: Mini PIC32MZ Example

#10 Post by stefan.filipovic » 15 Sep 2020 11:53

Hi Adrian,

Yes, you will need to set the MCU clock frequency at 200 MHz as the bootloader config bits will overwrite the ones from the hex that is being loaded using it.

Kind regards,
Stefan Filipović

Post Reply

Return to “PIC32 PRO Compilers”