comparison code_part1/OSTC_code_asm_part1/docu/README.txt @ 242:ba5309c01dd7

Minor corrections in doc.
author JeanDo
date Wed, 23 Mar 2011 11:24:55 +0100
parents 652e17b6267a
children
comparison
equal deleted inserted replaced
241:f44274d8440a 242:ba5309c01dd7
38 - If you want to compile C code, configure it: 38 - If you want to compile C code, configure it:
39 Menu: Project > Build Options... > Project > MPLab C18 39 Menu: Project > Build Options... > Project > MPLab C18
40 General: Default storage = Overlay (-sco) 40 General: Default storage = Overlay (-sco)
41 Optimization: Enable all 41 Optimization: Enable all
42 42
43 - Make sure the IDE is configured to find the clib.lib file 43 - Make sure the IDE is configured to find the "clib.lib" file
44 (needed even with pé_deco.o) 44 (needed even with precompiled p2_deco.o)
45 Menu : Project > Build Options ... > Project > Directories 45 Menu : Project > Build Options ... > Project > Directories
46 Set «Search Directories» for : «Library Seach Path» to the path of the 46 Set «Search Directories» for : «Library Seach Path» to the path of the
47 “clib.lib” file (in c:\Program Files\Microship\MCC18\lib in my case) 47 “clib.lib” file (in c:\Program Files\Microship\MCC18\lib in my case)
48 Set «Build Directory Policy» to «Assemble/Compile in source-file directory, link in output directory» 48 Set «Build Directory Policy» to «Assemble/Compile in source-file directory, link in output directory»
49
50 - If you want to compile in DEBUG mode, select "Debug" in the build configuration
51 menu in the top-bar of the IDE.
52 It adds more safety tests into the code, so it is easier to spot bugs,
53 but generate firware NOT SUITABLE for diving !
54 ==> Always revert to Release and recompile everything once debugging is done.
55
56 - If you want a translated version (FRENCH, SPANISH, etc.), uncomment
57 the corresponding #define in definitions.asm
49 58
50 - Hit F10 to recompile everything. 59 - Hit F10 to recompile everything.
51 --> You should get a .hex file where you saved your project. 60 --> You should get a .hex file where you saved your project.
52 61
53 62
54 Installing the new firmware 63 Installing the new firmware
55 --------------------------- 64 ---------------------------
56 65
57 - Get the .hew file you want to flash onto the OSTC. 66 - Get the .hex file you want to flash onto the OSTC Mk2.
58 67
59 - Connect the OSTC, wake it up. 68 - Connect the OSTC, wake it up.
60 69
61 - Launch the Tiny bootloader. It should work for some time, trying to open 70 - Launch the Tiny bootloader. It should work for some time, trying to open
62 the communication port. 71 the communication port.