Flash Configuration word bit flag missing

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Kmccarty
Posts: 2
Joined: 23 Jun 2009 03:54

Flash Configuration word bit flag missing

#1 Post by Kmccarty » 23 Jun 2009 04:09

I'm new to mikroBasic.

I'm using a PIC24FJ64GA002 and wanted to set the Flash Configuration Word bit "IOL1WAY" to 0 (the default is 1). There isn't a Flag in the "Edit Project" dialog box under the "Device Flags" for the "IOL1WAY" bit.

I know I'm a new to the tool, so am I missing something?
Is there a way I can set it?
Is there a way I could add it to the device "DEFS" files (p24fj64ga002.dbas, p24fj64ga002.mcl, p24fj64ga002.mlk)?


I can see how I may add it to the p24fj64ga002.dbas file. I can also see that the flags are in the p24fj64ga002.mcl, but it is a binary file and I'm not sure how it is produced.

Any help would be greatly appreciated!

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#2 Post by jpc » 23 Jun 2009 07:23

Unfortunately some of these flags are missing in the distributed definition files.
the .mcl file is generated when the .dbas is compiled. You can add the configuration flags you are missing in the .dbas file in the section near the end of that file.
When you have done the modification the first compile will create a new .mcl and the flags will show in the project editor. ( maybe you must leave the compiler and restart to see this )
Au royaume des aveugles, les borgnes sont rois.

User avatar
mileta.miletic
mikroElektronika team
Posts: 493
Joined: 05 Jun 2009 14:46
Location: Belgrade, Serbia
Contact:

#3 Post by mileta.miletic » 23 Jun 2009 10:07

Hi,

You can set or clear IO1WAY bit (IOLOCK One-Way Set Enable bit) before writing code with programmer in configuration bits list.

F11->IOLOCK Bit One-Way Set Enable bit->The OSCCON<IOLOCK> bit can be set and cleared as needed
Regards,
Mileta

Kmccarty
Posts: 2
Joined: 23 Jun 2009 03:54

#4 Post by Kmccarty » 23 Jun 2009 17:14

Thanks for the quick response and help. I will give it a try.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”