Difference between revisions of "Playing With PIC Pack"
Russ hensel (talk | contribs) |
Russ hensel (talk | contribs) |
||
Line 42: | Line 42: | ||
Now compiles successfully. | Now compiles successfully. | ||
+ | |||
+ | but warning | ||
+ | |||
+ | #ifndef GOT_CLOCK | ||
+ | #warning "Don't know about your clock. See pic_utils.h" | ||
+ | #endif | ||
+ | |||
+ | |||
+ | seems to be related to lack of definition of PLATFORM_CLOCK == 12000000 perhaps this is what should be in flasher.c instead of #pragma CLOCK_FREQ 8000000 | ||
+ | |||
+ | or perhaps it is just a warning to be ignored. | ||
+ | |||
+ | note that /* | ||
+ | |||
+ | */ denotes a comment that is ignored by the compiler. | ||
== 6 == | == 6 == |
Revision as of 15:30, 11 January 2009
start
I recording some experiences playing with pic pack.
Not linked into Open Circuits may do so later.
could not find beginning of blog, best I got was part 13, googling let me find welcome finally got the archive for 08 to open,
I am using BoostC 6.90 unlimmited non-commercial on a pretty much up to date XP system
First 4 parts
Just read them.
5. Your first pic program
Jan 11 2009:
said: adventures\flash try instead: demos\flasher think this is were it is now
no mention of target, i left it at: 16f88
said building... but then nothing? I am using 6.90
tried compile and got error locating the compiler, so I pointed to mine, problem was I did not keep mine in the normal location, all users shuld check this setting
Then had error finding C:\Source\Electronics\MicroController\Pic\PicPack\demoCopy\flasher\flasher.c(7): Unable to open include file: pic_utils.h
this is because I had moved the project, need to keep the relative locations of... demos and pic_pack_lib unchanged
Now compiles successfully.
but warning
- ifndef GOT_CLOCK
#warning "Don't know about your clock. See pic_utils.h"
- endif
seems to be related to lack of definition of PLATFORM_CLOCK == 12000000 perhaps this is what should be in flasher.c instead of #pragma CLOCK_FREQ 8000000
or perhaps it is just a warning to be ignored.
note that /*
- / denotes a comment that is ignored by the compiler.
6
[ part1x]
7
[ part1x]
8
[ part1x]
9
[ part1x]
[ part1x]