Why use a bootloader?


Closed Thread
Results 1 to 40 of 41

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Why use a bootloader?

    Hello,
    Yes, when you press Program there should pop up two messages/windows, first one with a progress bar that says Programming and then, when it can't reset the PIC, a second one saying Please reset target microcontroller in order to access the bootloader process... When you reset the PIC the second window will close and you can monitor the progress in the first window, it only takes a couple of seconds depending on the size of the program.

    Have you verified that the serial communication is working, ie by using HSEROUT/HSERIN to send and receive data. Perhaps you've mixed up the RX/TX lines?

    /Henrik.

  2. #2
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default Re: Why use a bootloader?

    Same player shout again
    I am still in the same marmelade !
    I have checked the hardware RX TX max232 seems good (no mix)
    I will try to test as you said (transmit between PIC and laptop)
    I suspect also that my programmer is not wonderfull
    I must program sometimes 5 times to avoid errors
    I must compare iniatial file from MCloader (16F874_20.hex) with the data burned in the pic !
    I have tried with two differents PIC

    for this week I will be out for 3 days, so, hold the line !
    I lost already 3 days on this crazy thing, no problem because I am retired ! hi ...
    Francois

  3. #3
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Default Re: Why use a bootloader?

    Still me, with the same problem
    I spent one day without success !
    abstract : I got garbage using Hserout (to test my RS232 line for bootloader function)
    see my terminal V1.9 log file (hexa dump and ascii dump)
    question :
    What is wrong in my design ?
    I have tested in XT and HS clock mode
    I have changed the MAX232
    LCD and Blink led seems normal (pic is alive !)
    I am lost !
    Thnaks in advance
    Francois

    the program test is the following :
    ' Using PIC 16F874 @ 20MHZ
    '
    DEFINE OSC 20
    ' Set LCD Data port
    DEFINE LCD_DREG PORTD
    ' Set starting Data bit (0 or 4) if 4-bit bus
    DEFINE LCD_DBIT 4
    ' Set LCD Register Select port
    DEFINE LCD_RSREG PORTD
    ' Set LCD Register Select bit
    DEFINE LCD_RSBIT 2
    ' Set LCD Enable port
    DEFINE LCD_EREG PORTD
    ' Set LCD Enable bit
    DEFINE LCD_EBIT 3
    ' Set LCD bus size (4 or 8 bits)
    DEFINE LCD_BITS 4
    ' Set number of lines on LCD
    DEFINE LCD_LINES 2

    ' Hardware configuration
    ' ======================
    TRISC = %10000000 ' PORTC.7 is the RX input
    ' PORTC.6 is the TX output

    ' Serial communication definition
    ' ===============================
    ' Using internal USART and MAX232 to interface to PC

    DEFINE HSER_RCSTA 90h ' enable serial port, enable continuous receive
    DEFINE HSER_TXSTA 20h ' enable transmit, BRGH=1
    DEFINE HSER_SPBRG 129 ' 2400 Baud @ 20MHz, 0,17%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically

    Pause 500

    start:
    high portd.1
    pause 100
    low portd.1

    lcdout $FE ,1,"test"
    pause 500
    lcdout $FE ,1, "to see"
    pause 500


    hserout ["test TEST"]
    pause 1000
    goto start
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2005
    Location
    France
    Posts
    97


    Did you find this post helpful? Yes | No

    Lightbulb STOP : It works !

    Stop it works !
    Now I have the solution to lost one week !
    use a bad Xtal/quartz !
    Pic was running at 6 khz ! instead of 20 Mhz

    just one thing ... put HS (high speed) at the config time(first load) for the bootloader
    second think ... close your terminal program to avoid conflict during MCloader time !

    Thanks for helping me ..
    Francois

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 18:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 23:29
  4. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 18:51
  5. Replies: 3
    Last Post: - 26th January 2005, 14:41

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