ds30 Loader free edition forums
PIC18F4550 RS232 bootloader [solved] - Printable Version

+- ds30 Loader free edition forums (https://picbootloader.com/forum)
+-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3)
+--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7)
+--- Thread: PIC18F4550 RS232 bootloader [solved] (/showthread.php?tid=488)



PIC18F4550 RS232 bootloader [solved] - marito - 2012-03-10

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!


RE: PIC18F4550 RS232 bootloader - Mikael Gustavsson - 2012-03-12

Hi,
With the PLL enabled, is the resulting frequency 20MHz?
The oscf define must match the core frequency.


RE: PIC18F4550 RS232 bootloader - marito - 2012-03-23

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!!!


RE: PIC18F4550 RS232 bootloader - Mikael Gustavsson - 2012-03-23

Do you reset the device and press write within 2 seconds?
Is write configs checked on the advanced tab in the gui?


RE: PIC18F4550 RS232 bootloader - marito - 2012-03-23

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


RE: PIC18F4550 RS232 bootloader - Mikael Gustavsson - 2012-03-24

Ok. Why have you disabled boot loader and goto protection in the firmware?


RE: PIC18F4550 RS232 bootloader - marito - 2012-03-24

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


RE: PIC18F4550 RS232 bootloader - Mikael Gustavsson - 2012-03-25

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?


RE: PIC18F4550 RS232 bootloader - marito - 2012-03-25

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!!!


RE: PIC18F4550 RS232 bootloader - Mikael Gustavsson - 2012-03-25

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.


RE: PIC18F4550 RS232 bootloader - marito - 2012-03-25

Mikael thank you very much!!!

The bootloader is working very well!!!

Best regards!!!