Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
16F87 BL compile issues ? [solved]
#10
I set the bootloader pagesize to 8 and said it was 8 pages from the end.
Is that right the code sizw BLPLW was set to 256 ?

0000 00237 org 0x0000
0000 158A 00238 PAGESEL blstart
0001 2F00 00239 goto blstart
00240
00241
00242 ;-------------------------------------
00243 ; GOTO user application
00244 ;-------------------------------------
0EFD 00245 org STARTADDR - 3;space to deposit goto to user application
0EFD 00246 loadusr
0EFD 0000 00247 nop ;page select, replaced by gui
0EFE 0000 00248 nop ;page select, replaced by gui
MPASM 5.42 DS30LOADER.ASM 9-11-2011 14:08:25 PAGE 18

This is the .lst file from the compile.
(2011-09-11, 21:25:02)KiloBravo Wrote: I set the bootloader pagesize to 8 and said it was 8 pages from the end.
Is that right the code sizw BLPLW was set to 256 ?

0000 00237 org 0x0000
0000 158A 00238 PAGESEL blstart
0001 2F00 00239 goto blstart
00240
00241
00242 ;-------------------------------------
00243 ; GOTO user application
00244 ;-------------------------------------
0EFD 00245 org STARTADDR - 3;space to deposit goto to user application
0EFD 00246 loadusr
0EFD 0000 00247 nop ;page select, replaced by gui
0EFE 0000 00248 nop ;page select, replaced by gui
MPASM 5.42 DS30LOADER.ASM 9-11-2011 14:08:25 PAGE 18

This is the .lst file from the compile.

In my CCS C program I have this .....

#build(reset=0x1, interrupt=0x5) // Necessary for Bootloader
#ORG 0x0EFD,0x0FFF {} // Necessary for Bootloader
If I load the F87 with the bootloader I can talk to the chip thru the DS30 gui. However, it will not load the program as soon as I reset the chip it appears that the boot loader gets trashed.

Initiating write...
Searching for bl . . .
Found PIC16F87 fw ver. 1.0.1
Waiting for bootloader to be ready...ok
Hex file successfully parsed
Writing flash...response timed out
Tx 9 bytes / Rx 4 bytes / 4.3s
Write failed

It's no longer trashing the chip on reset. It just does not write.

Chip Read with BL
:200000008A15002FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FAE

Chip Read after reset with chip trashed.
:20000000FF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3FFF3F00

This is from my CCS C code
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 030
0003: NOP

Be a long jump ???

(2011-09-11, 20:38:16)Mikael Gustafsson Wrote: When I download the latest version and assemble there are more than 20 words available. 192 should be enough.


This is what I get when I uncomment that section

MPLINK 4.40, Linker
Device Database Version 1.0
Copyright © 1998-2011 Microchip Technology Inc.
Error - section '.org_3' can not fit the absolute section. Section '.org_3' start=0x00000f40, length=0x00000182
Errors : 1

Link step failed.
----------------------------------------------------------------------
Release build of project `F:\DS30\ds30 Loader\firmware PIC12F PIC16F\ds30Loader.mcp' failed.
Language tool versions: MPASMWIN.exe v5.42, mplink.exe v4.40, mplib.exe v4.40
Sun Sep 11 16:13:01 2011
----------------------------------------------------------------------
BUILD FAILED
Reply


Messages In This Thread
16F87 BL compile issues ? [solved] - by KiloBravo - 2011-09-09, 20:19:34
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-10, 01:47:37
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-11, 01:59:51
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-11, 15:35:50
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-11, 20:20:44
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-11, 21:25:02
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-12, 21:56:56
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-12, 23:59:13
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-15, 02:01:25
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-15, 03:11:42
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-18, 00:29:18
RE: 16F87 BL compile issues ? - by KiloBravo - 2011-09-22, 17:48:25

Forum Jump:


Users browsing this thread: 1 Guest(s)