MCLoader baud rate


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default MCLoader baud rate

    I see that some of you have been disassembling MC Loader. Awhile back, I did the same thing in order to change some time delays and jump vectors. But one thing I could never figure out -

    In the PLL_18F8722_40.HEX file, MCLoader loads 0x81 into W at location 1FD06, and calls a routine that loads that literal into SPBRG. This would indicate that MCLoader is trying to run at 19.2K, but in actuality, my RS-232 sniffer shows it is running at 115K when I actually perform a bootload. Speed tests indicate the same. If I choose 19.2K in the OPTIONS of MCLoader, my code takes a long time to load (my .HEX files are all around 350K), but if I choose 115K, the code loads at normal speed.

    I checked to see if bit 0 in BAUDCON1 was set anywhere, (which puts the chip in auto baud mode), but couldn't find any reference to that location. Can anyone shed some light on this discrepancy? I need the PIC side of MCLoader to run at a different baud rate (57.6K).
    Charles Linquist

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I need the PIC side of MCLoader to run at a different baud rate (57.6K).
    The only options in the MicroCode Loader PC application are 19200 and 115200.

    If you could modify the PIC program for 57600.
    How would you get the PC to do the same?

    ?
    DT

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    My goal is to bootload over Ethernet.

    I'm using a Lantronix Xport that talks to the PIC at 57600. If I can get the "PC side" of MCLoader to work through a serial <-> Ethernet converter, I'll use it. If not, I think I
    know enough of the protocol to write an application in VB.

    I can't easily change the baud rate between the XPort and the PIC, but I can
    patch MCLoader (PIC side) with a program that I bootload load over RS-232 (the first time) - I have done a similar patch before. After the bootloader is patched, hopefully I can bootload over Ethernet. The goal is to set all this in motion with one "bootloaded" (over RS-232) upgrade.
    Charles Linquist

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Charles Linquis , I too am interested in boot loading over my Ethernet connection. I too am using Xport RS-232 to Ethernet converters and have had great success using them to control my Solar Array Trackers over the internet when I am away. It would be so much easier to be able to boot load new code into the Trackers without having to use the direct RS-232 connection. Please keep me informed as to your progress... Thanks...

    Dave Purola,
    N8NTA

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    PLL_18F8722_40.HEX

    Hmm, I don't seem to have that one.
    There's a bunch of PLL_18Fxxxx_xx.hex, but that's not one of them.

    Was it a special order?
    DT

  6. #6
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Darrel Taylor , I have had my copy of PLL_18F8722_40.HEX since 04/26/2005... I have used it to run one of the microchip demo boards I got a long time ago.. Charles, I only wished that MCLoader had the capability of changing the baud rate for the boot loader. I use 38400 and 57600 baud for my data and control transfers. Today I plan on using the port redirector to setup a port for MCLoader and see if I can get some activity on one of my projects using a NET-232 Jr. The only problem I can see is the latency for the handshaking during the loading process. I have had some success using TinyLoader in the past as I was able to go into the free source and add to the handshaking latency as well as change the baud rate values.. I'll keep you informed as to my progress...

    Dave Purola,
    N8NTA

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts