Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
16F87 BL compile issues ? [solved]
#11
OK, I got it working somewhat.
from the DS30 compile

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


LOC OBJECT CODE LINE SOURCE TEXT
VALUE

00252 ; Start of bootloader code
00253 ;------------------------------------------------------------------------------
0F00 00254 org STARTADDR

This is from my CCS C program.
#build(reset=0x0EFC)
which causes this
*
0EFC: MOVLW 00
0EFD: MOVWF 0A
0EFE: GOTO 0C4
0EFF: NOP

Then on the gui I select custom BL 8 pages from then end and 8 pages long

I also checked "Don't write GOTO to the user app"

The BL stays on the chip and will download a small blinky led "hello world" test program. The led flashing works the "hello world" does not. Based on the flashing led rate I think the timing for rs232 is off.

I will keep working on it as time permits.
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)