Hi,
I loaded the source code 3.03 version on Bitbucket.
Before to test my personal code, I build it with MPLAB IDE without changing anything in the code.
I load it on my OSTC.
I checked it with a little simulation and few thinks are wrong in my simulation.
The "no stop" time is always 0 and after the first decostop is 1m 0', 2m 0' with a TTS 65535' (0xFF!) : see attached pictures. Curious !
If I load the official v3.03 .HEX, no simulation problem.
Maybe something wrong in my MPLAB configuration ?
Is somewehere described an MPLAB config for the OSTC 2N PIC ?
6RiL
Build the v3.03 with MPLAB
-
- Posts: 4446
- Joined: Sunday 13. May 2007, 18:07
Re: Build the v3.03 with MPLAB
Linker file missing? p2_deco.o loaded?
regards,
Matthias
regards,
Matthias
Re: Build the v3.03 with MPLAB
>>Linker file missing?
>>p2_deco.o loaded?
Attached to the projet, I have 3 files :
18f4685_ostc_mkII.lkr
p2_deco.o
MAIN.ASM
Is there a checksum or a CRC that I can compare with original version .HEX ?
My build succeeded :
------------------------
Release build of project `C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N303_6RiL.mcp' started.
Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48
Fri Jul 31 22:57:09 2015
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N303_6RiL.mcs".
Clean: Done.
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4685 "MAIN.ASM" /l"MAIN.lst" /e"MAIN.err" /o"MAIN.o"
Message[311] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\DISPLAY_LOWLEVEL.ASM 806 : Operand of HIGH operator was larger than H'FFFF'.
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 117 : MESSAGE: (OSTC - diving computer code, Copyright (C) 2015 HeinrichsWeikamp)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 118 : MESSAGE: (This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 119 : MESSAGE: (Free Software Foundation, either version 3 of the License, or (at your option) any later version.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 120 : MESSAGE: (This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 121 : MESSAGE: (or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 122 : MESSAGE: (You should have received a copy of the GNU General Public License along with this program.If not, see http://www.gnu.org/licenses/.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 127 : MESSAGE: (OSTC2 code compiled in RELEASE configuration!)
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\mplink.exe" /p18F4685 /l"F:\Program Files\Microchip\mplabc18\v3.46\lib" "code_part1\OSTC_code_asm_part1\18f4685_ostc_mkII.lkr" "code_part1\OSTC_code_asm_part1\MAIN.o" "C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\code_part1\OSTC_code_c_part2\p2_deco.o" /z__MPLAB_BUILD=1 /m"Ostc2N303_6RiL.map" /w /o"Ostc2N303_6RiL.cof"
MPLINK 4.48, Linker
Device Database Version 1.12
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0
MP2HEX 4.48, COFF to HEX File Converter
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0
Loaded C:\Users\6RiL\Documents\Plongée\OSTC 2N\V304_CA01_6RiL\Ostc2N303_6RiL.cof.
----------------------------------------------------------------------
Release build of project `C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N304_6RiL.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48
Fri Jul 31 22:57:19 2015
----------------------------------------------------------------------
BUILD SUCCEEDED
>>p2_deco.o loaded?
Attached to the projet, I have 3 files :
18f4685_ostc_mkII.lkr
p2_deco.o
MAIN.ASM
Is there a checksum or a CRC that I can compare with original version .HEX ?
My build succeeded :
------------------------
Release build of project `C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N303_6RiL.mcp' started.
Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48
Fri Jul 31 22:57:09 2015
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N303_6RiL.mcs".
Clean: Done.
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F4685 "MAIN.ASM" /l"MAIN.lst" /e"MAIN.err" /o"MAIN.o"
Message[311] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\DISPLAY_LOWLEVEL.ASM 806 : Operand of HIGH operator was larger than H'FFFF'.
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 117 : MESSAGE: (OSTC - diving computer code, Copyright (C) 2015 HeinrichsWeikamp)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 118 : MESSAGE: (This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 119 : MESSAGE: (Free Software Foundation, either version 3 of the License, or (at your option) any later version.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 120 : MESSAGE: (This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 121 : MESSAGE: (or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 122 : MESSAGE: (You should have received a copy of the GNU General Public License along with this program.If not, see http://www.gnu.org/licenses/.)
Message[301] C:\USERS\6RIL\DOCUMENTS\PLONGéE\OSTC 2N\V303_CA01_6RIL\CODE_PART1\OSTC_CODE_ASM_PART1\MAIN.ASM 127 : MESSAGE: (OSTC2 code compiled in RELEASE configuration!)
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\mplink.exe" /p18F4685 /l"F:\Program Files\Microchip\mplabc18\v3.46\lib" "code_part1\OSTC_code_asm_part1\18f4685_ostc_mkII.lkr" "code_part1\OSTC_code_asm_part1\MAIN.o" "C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\code_part1\OSTC_code_c_part2\p2_deco.o" /z__MPLAB_BUILD=1 /m"Ostc2N303_6RiL.map" /w /o"Ostc2N303_6RiL.cof"
MPLINK 4.48, Linker
Device Database Version 1.12
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0
MP2HEX 4.48, COFF to HEX File Converter
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors : 0
Loaded C:\Users\6RiL\Documents\Plongée\OSTC 2N\V304_CA01_6RiL\Ostc2N303_6RiL.cof.
----------------------------------------------------------------------
Release build of project `C:\Users\6RiL\Documents\Plongée\OSTC 2N\V303_CA01_6RiL\Ostc2N304_6RiL.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48
Fri Jul 31 22:57:19 2015
----------------------------------------------------------------------
BUILD SUCCEEDED
-
- Posts: 4446
- Joined: Sunday 13. May 2007, 18:07
Re: Build the v3.03 with MPLAB
Check the hash value. For the latest build (Rev. 824) it's (HEX) 03 05 3D 69 21 4A C2 99 DF 14 7A CF 01 41 CC 0A 22 B5
Also, MPLAB computes a checksum. It's 0x5153.
Regards,
Matthias
Also, MPLAB computes a checksum. It's 0x5153.
Regards,
Matthias
-
- Posts: 4446
- Joined: Sunday 13. May 2007, 18:07
Re: Build the v3.03 with MPLAB
P.S.: To get the hash send a 0x65 via the COM port to the unit.
-
- Posts: 4446
- Joined: Sunday 13. May 2007, 18:07
Re: Build the v3.03 with MPLAB
Another update: I just updated the p2_deco.o which was indeed outdated in the repo.
Regards,
Matthias
Regards,
Matthias
Re: Build the v3.03 with MPLAB
Hello,
Problem resolved with your p2_deco.o update (:D
thanks,
6RiL
Problem resolved with your p2_deco.o update (:D
thanks,
6RiL