Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC16f1509 new issue
#1
Hi,

I have some define issue... i think...in the UART.INC 116,118 line (SPBRG)??

log:

Release build of project `Z:\DOKSIK\ELEKTRONIKA\Bootloader\new\ds30 Loader\firmware PIC12F PIC16F\ds30Loader.mcp' started.
Language tool versions: MPASMWIN.exe v5.45, mplink.exe v4.43, mplib.exe v4.43
Tue Mar 12 16:37:14 2013
----------------------------------------------------------------------
Make: The target "Z:\DOKSIK\ELEKTRONIKA\Bootloader\new\ds30 Loader\firmware PIC12F PIC16F\src\ds30loader.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F1509 "ds30loader.asm" /l"ds30loader.lst" /e"ds30loader.err"
Error[113] Z:\DOKSIK\ELEKTRONIKA\BOOTLOADER\NEW\DS30 LOADER\FIRMWARE PIC12F PIC16F\SRC\UART.INC 116 : Symbol not previously defined (SPBRG)
Error[113] Z:\DOKSIK\ELEKTRONIKA\BOOTLOADER\NEW\DS30 LOADER\FIRMWARE PIC12F PIC16F\SRC\UART.INC 118 : Symbol not previously defined (SPBRG)

Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `Z:\DOKSIK\ELEKTRONIKA\Bootloader\new\ds30 Loader\firmware PIC12F PIC16F\ds30Loader.mcp' failed.
Language tool versions: MPASMWIN.exe v5.45, mplink.exe v4.43, mplib.exe v4.43
Tue Mar 12 16:37:17 2013
----------------------------------------------------------------------
BUILD FAILED

Need help...
Thanx
Krisztian
Reply
#2
Some idea how to solve?
Thx
Krisztian
Reply
#3
Hi,
Try with this new uart.inc and let me know the result.

Thanks


Attached Files
.zip   uart.zip (Size: 1.92 KB / Downloads: 8)
Reply
#4
(2013-03-13, 13:02:27)Mikael Gustavsson Wrote: Hi,
Try with this new uart.inc and let me know the result.

Thanks

Build succeeded!
Thx! Smile
Reply
#5
Build succeeded, but can't communicate with the bootloader, i think it isn't at the right place....(the goto is in the second line and...)
Hex file attached, please take a look.

Thank you
K...


Attached Files
.txt   ds30loader.HEX.txt (Size: 1,023 bytes / Downloads: 8)
Reply
#6
Attach the entire zipped MPLAB IDE project.
Thanks
Reply
#7
Hi

Here it is..I've made only the necessary settings and config mod.

Thanks
Krisztian


Attached Files
.zip   16f1509.zip (Size: 43.71 KB / Downloads: 13)
Reply
#8
INTOSC defaults to 500kHz, you need to configure it for 16MHz if that is what you want
Reply
#9
Hi,

I'm using the ds30 loader, most recent version, which supports the 16F1509 with the attached uart.inc in this thread.
I'm running the PIC at 16 MHz, internal Oscillator, no Watchdog, no Brownout reset (for debugging purposes).

When I connect the windows application it detects the correct PIC and then fails when writing the flash memory with a timeout.
Sometimes Erasing gets acknowledged successfully by the PIC. I've attached a screenshot of a serial port monitoring software to show the communication.
It seems as if the PIC suddenly resets itself.
My MPLAB project is attached, too.

Do you have any ideas? The same configuration runs perfectly on lots of different PICs, it's a great bootloader!

Thanks a lot in advance Shy


Attached Files Thumbnail(s)
   

.zip   PIC16F1509_16MHz_intosc_9k6_firmware_PIC12F_PIC16F.zip (Size: 67.56 KB / Downloads: 3)
Reply
#10
Hi,
Please start a separate thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)