Two years ago I came up with a relatively simple solution for setting configuration bits in code. Original topic and implementation details can be found here. This weekend I decided to finish this mini-project. I have added full preprocessor support and option to set MCU clock in code. I also made a simple setup file that automates the process of installation. MCU definition files (MLK) are patched by the installer to insert named configuration settings (borrowed from XC8 definition files ).
Project settings (Project -> Edit project...) are overwritten with the ones defined in code. That way, after compiling the project, you can check if the settings have been applied. This approach should satisfy both beginners and advanced users.
Your feedback and suggestions are appreciated. Screenshots and installer are below.
Regards
[Tutorial] How to set configuration bits in code
[Tutorial] How to set configuration bits in code
- Attachments
-
- CCB_Tool_Installer.7z
- (1.17 MiB) Downloaded 169 times
Re: [Tutorial] How to set configuration bits in code
Another thumbs up to aCkO. BTW do you plan to publish it on Libstock?
Serge T.
Learning is an endeless process but it must start somewhere!
Learning is an endeless process but it must start somewhere!
Re: [Tutorial] How to set configuration bits in code
I'm afraid to imagine what you could do to the IDE if mE suddenly decided to let you play with the source code for a whole weekaCko wrote:This weekend I decided to finish this mini-project.
Re: [Tutorial] How to set configuration bits in code
At least someone is doing something with the PIC IDE, unfortunately it’s someone who doesn’t even get paid for their effort.
Other than small updates that seem to introduce more bugs then they solve not too much has been done in the last several years. Why is there for example no CLC tool or PPS tool like in MPLABX?
Thank you ACKO for the patch for the enhanced family.
Other than small updates that seem to introduce more bugs then they solve not too much has been done in the last several years. Why is there for example no CLC tool or PPS tool like in MPLABX?
Thank you ACKO for the patch for the enhanced family.
Re: [Tutorial] How to set configuration bits in code
Just uploaded: http://www.libstock.com/projects/view/1573/ccb-toolToley wrote:BTW do you plan to publish it on Libstock?
janni wrote:I'm afraid to imagine what you could do to the IDE if mE suddenly decided to let you play with the source code for a whole week
Actually, I was planning on making my own Scintilla based IDE, but that was put on hold. I've worked out all the bits and details, but unfortunately at this moment I don't have the time for such project. Maybe soon...
Regards
-
- Posts: 1544
- Joined: 24 Jun 2007 19:27
- Location: 01800 St Maurice de Gourdans France
- Contact:
Re: [Tutorial] How to set configuration bits in code
hello aCkO,
i didn't test yet your CB-tool
but did you expect to extend it to satisfied this request
concerne init of PIC EEprom inside the source code
instead through an external editor + file *.ihex
like we can do with MPLAB C18.
Thank's for your big support on this forum.
up
i didn't test yet your CB-tool
but did you expect to extend it to satisfied this request
concerne init of PIC EEprom inside the source code
instead through an external editor + file *.ihex
like we can do with MPLAB C18.
Thank's for your big support on this forum.
up