Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC18F4550 RS232 bootloader [solved]
#1
Hi! I need to run a serial bootloader for a PIC 18F4550. I´m working with an external crystal of 20MHz.
Up to now, I configure the settings file and when I try to check bootloader from the gui, not detected the PIC.
I attached DS30 project I'm using.
What i'm doing wrong? Thanks!


Attached Files
.zip   firmware PIC18F.zip (Size: 78.5 KB / Downloads: 35)
Reply
#2
Hi,
With the PLL enabled, is the resulting frequency 20MHz?
The oscf define must match the core frequency.
Reply
#3
Hello!
I managed to download my application with the bootloader into the PIC, but only get it once. Then I did not even detect the PIC. What i´m doing wrong?

Thanks!!!
Reply
#4
Do you reset the device and press write within 2 seconds?
Is write configs checked on the advanced tab in the gui?
Reply
#5
Yes, I reset the device first and then press write with write program selected in the basic config.

In the advanced tab in the gui i don´t pick anything.

At the moment i only can write program once
Reply
#6
Ok. Why have you disabled boot loader and goto protection in the firmware?
Reply
#7
Sorry, at the moment i'm using bootloader that i attached.

I downloaded the last version of DS30 loader

I attached my bit's configuration too.

When I download my application, the check bootloader detect

Searching for bl .
Found dsPIC30F2023 fw ver. 2.6.5
Wrong pic detected(32)/selected(301), aborting


Attached Files Thumbnail(s)
   

.zip   firmware PIC18F.zip (Size: 74.41 KB / Downloads: 49)
Reply
#8
You have uncommented this line without loading w with a proper value first
Code:
movwf     ADCON1            ;xxx analog on tx/rx

Is the "Configuration Bits set in code" checkbox properly checked/unchecked?
Reply
#9
Perfect!!! I commented this line

;movwf ADCON1 ;xxx analog on tx/rx

And now is working!!! I have to reset the pic and the ds30loader detect the pic and then reset again and download correctly my application.

I need to ask you about the configuration bit, if a realized a configuration in the bootloader program, the configuration bit in my appplication have eny effect?

Thanks you very much!!!
Reply
#10
Great!

The configuration bits in your application does not have any effect unless you check the "write configs" checkbox in the GUI. But that is not recommended.
It is recommended to copy the configuration bits from your application to the boot loader.
Reply
#11
Mikael thank you very much!!!

The bootloader is working very well!!!

Best regards!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)