Editing Playing With PIC Pack
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== Starting Off == | == Starting Off == | ||
− | |||
− | |||
Author [[russ_hensel]] | Author [[russ_hensel]] | ||
− | I | + | I recording some experiences playing with pic pack. |
− | |||
− | |||
− | + | Not linked into Open Circuits may do so later. | |
− | I | + | 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 == | == First 4 parts == | ||
− | [http://embeddedadventures.blogspot.com/2008/04/1introduction.html | + | [http://embeddedadventures.blogspot.com/2008/04/1introduction.html part1] |
− | [http://embeddedadventures.blogspot.com/2008/04/2-microcontrollers.html | + | [http://embeddedadventures.blogspot.com/2008/04/2-microcontrollers.html part2] |
− | [http://embeddedadventures.blogspot.com/2008/04/3-take-your-pic.html | + | [http://embeddedadventures.blogspot.com/2008/04/3-take-your-pic.html part3] |
− | [http://embeddedadventures.blogspot.com/2008/04/4compilers.html | + | [http://embeddedadventures.blogspot.com/2008/04/4compilers.html part4] |
− | + | Just read them. | |
− | == | + | == 5. Your first pic program == |
− | + | [http://embeddedadventures.blogspot.com/2008/04/5-your-first-pic-program.html part5] | |
− | + | 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. Chip Programming == | |
− | + | [http://embeddedadventures.blogspot.com/2008/04/6-chip-programming.html 6. Chip Programming] | |
− | + | I am going to try an 18f2550 so looking up the config for it | |
− | |||
− | |||
− | + | I am confused about config1, 2.... and the high and low so how do I read the .h file? | |
− | + | seems that for the 18F2550 we need | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | _CONFIG1L, _CONFIG1H, _CONFIG2L, .... | ||
+ | this seems at least to compile .... but the linker fails with | ||
− | |||
+ | Error: .obj or .lib file wrong target type | ||
+ | Error: Failed to process:pic_utils.obj | ||
− | + | perhaps i am still missing some sort of config or #define switch | |
− | + | Problem fixed by removing all but ._c .c and .h files and recompiling, changing target from 16F to 18F was probably the problem. | |
+ | This took me a long time, 16 config locations, not sure I have them right, perhaps if i copied from some bootloader that worked on my chip? | ||
− | == | + | == 7. Bootloading == |
− | |||
− | |||
+ | [http://embeddedadventures.blogspot.com/2008/04/7-bootloading.html 7. Bootloading] | ||
− | |||
− | |||
− | |||
+ | do not want to use 16f88, do not have one, will use either the 18f2550 or if I have to the 16F877 which I have a lot of and have used a lot. | ||
− | |||
− | |||
− | |||
− | + | Good night for now.... | |
− | |||
− | |||
+ | == 8 == | ||
− | + | [ part1x] | |
− | |||
− | |||
+ | == 9 == | ||
+ | [ part1x] | ||
− | [ | + | [ part1x] |