Pic32MX270/170F256B can't Protect our code!

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

Pic32MX270/170F256B can't Protect our code!

#1 Post by OldSpring » 21 Jun 2020 20:59

Hello, MB Team:

We are developing our a product, The device is Pic32mx270f256B. The project is almost done. But we found our code can't be protected by your software. We read the Pic32MX family reference manual. DEVCFG0 bit 28 = 0 will protect our code. We checked your ref file, it has DEVCFG3, DEVCFG2, DEVCFG1, it doesn't have DEVCFG0.

We also tried set code protect from your software project edit, but "mikroProg Suite For PIC" is still can read the code from our device.

Please help us to solve this problem. Thanks.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Pic32MX270/170F256B can't Protect our code!

#2 Post by filip » 25 Jun 2020 15:47

Hi,

Which version of the compiler are you using ?

I see DEVCFG0 and Code Protect bit in the Edit Project for the PIC32MX270F256B in the 4.0.0. version.

Regards,
Filip.

hexreader
Posts: 1785
Joined: 27 Jun 2010 12:07
Location: England

Re: Pic32MX270/170F256B can't Protect our code!

#3 Post by hexreader » 25 Jun 2020 15:52

mikroProg software shows all of the right indications, but the end result is that the code ends up readable.

Disclaimer - I have only mikroC compiler current version (as at posting), but problem is the same - no code protection, despite all indications.

OldSpring has it right.
Start every day with a smile...... (get it over with) :)

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

Re: Pic32MX270/170F256B can't Protect our code!

#4 Post by OldSpring » 29 Jun 2020 13:09

Hi, Filip:

We are using MikroBasic Pro for Pic32 Ver 4.0.0. It can't lock our code. Project Edit show DEVCFG0 Code Protect bit = 0, but it is not true. (In your Def file, No DEVCFG0.)
Please check your programmer software again. Thx!

Thank Hexreader for help.

alpha123
Posts: 9
Joined: 31 May 2012 20:22

Re: Pic32MX270/170F256B can't Protect our code!

#5 Post by alpha123 » 10 Jan 2022 16:50

When I set the Code Protect Bits in Compiler these show correct values under the Configuration words. And when I shift to mikroProg Suit v2.90 this again show correctly "Code Protect Enabled" as I expected. But when I program the chip and read it back it shows "Code Protect Disabled" And all the code is read and verify same. It means mikroProg did not wrote the code protection bits correctly, but its strange that other bits like Clock Settings or PLL etc. are programmed correctly. I have purchased mikroProg just an year ago and I have also updated it to latest firmware v2.11. Can MB team help me why mikroProg does not program the lock bits on PIC32MX270F256B?

Post Reply

Return to “mikroBasic PRO for PIC32 General”