Search this Blog

Thursday, February 12, 2009

Au PIC Bootloader Application Note

Author: Huihui Duan, Chaonan Chen, Au Group Electronics
WHAT’S NEEDED BEFORE INSTALL AU PIC BOOTLOADER?
• A PC equipped with serial port or PC equipped with USB port + “USB to Serial Converter".
• Serial cable to connect a PC to a PIC target board.
• Au PIC Bootloader installation program (it is available through Au Group Electronics)
• An encrypted PIC-code file with extension of "Aud" (it will be provided by Au Group Electronics for different products, e.g. SAE-J1939 simulator, etc.)

HOW TO INSTALL AND USE THE Au PIC BOOTLOADER?
Note: If you have the Au PIC Bootloader installed on your PC before, please bypass step 1 to step 8, and start with step 9.
1. Double click icon of the “Setup Au PIC Bootloader V1.00A” to start installing Au PIC Bootloader, as shown in figure 1

2. “Welcome to the Au PIC Bootloader Setup Wizard” window show up, click “Next” (figure 2)

3. “License Agreement” window show up, read the license agreement and select “I accept the agreement”, then click “Next” to continue (figure 3).

4. “Select Destination” window shows up, use default path: C:\Program Files\ AU PIC Bootloader”, then click “next” to continue (figure 4).

5. “Select Start Menu Folder” window show up, use default setting “AU PIC Bootloader”, then click “next” (figure 5).

6. “Select Additional Task” window shows up, check both “create a desktop icon” and “Create a quick launch icon”, and then click “next” to continue (figure 6).

7. “Ready to Install” window shows up. Click “Install” (figure 7).

8. After a few seconds, “Completing the Au PIC Bootloader Setup Wizard” window shows up, leave the “launch Au Bootloader” checked, click “Finish” to exit setup (figure 8).

9. Au PIC Bootloader program launched, four steps are shown in the Bootloader GUI.
Step 1. Load Program File:
Use serial-cable to connect PC with target board, then click “Load File” button (figure 9). Select file type with “.Aud” extension, then click “Open” (figure 10).


Step 2. Select communication port, set communication speed, and trigger target board into Bootloader mode
• Select the communication port on your PC, which has been connected with the target board through the serial cable. Without a correct Port selection, the connection between PC and the target board won’t be build.

• Most of the Au Group Electronics products support 115200 bps communication baud-rate if no special notice has been published.

• Trigger target board into Bootloader mode by one of the following 2 ways:
For most of Au Group products, Bootloader mode on the target board can be triggered either from Bootloader software or from target board itself. This demonstration is shown in an example of an Au® SAE-J1939 simulator product.
From target board: Press and hold MENU button on an Au® SAE-J1939 simulator, then plug in +9~+12V DC power supply to power on, the "WARNING" LED will blink indicating it has entered the Bootloader mode.
From software (Au PIC Bootloader User Interface): If the PIC target board has already been powered on, Bootloader mode can be triggered by click “Reset PIC” button (figure 11).

Note: Most of the products from Au Group Electronics has a 10 seconds time-out-period to let the Bootloader program connect to the board, if the user fail to connect the board in this time period, please repeat this step.

Step 3. Connect to target board
Within 10 seconds, click “Connect” button, the "WARNING" LED on Au® J1939 Simulator will be constant on, also the connection status indicator – the Green light on Bootloader GUI will be on, notice that “Program” button now been activated, Also the target board PIC Bootloader information "Au-CB0301, F458, 20M, BTL232-E-001 1.00A" will show up, as shown in figure 12.
Note: Different product might show different messages here.

Step 4. Download program to target board
Click “Program” button, the flash of the target board will be erased first, it takes a few seconds. Then the pre-loaded "xxxx.Aud" file will be programmed into the target board, and the programming status will show up, as shown in figure 13. This process may take a few minutes depending on the file size and the communication speed.

10. Exit Bootloader upon finish:
When programming finished, click “exit” to exit Bootloader mode. The target board should function normally with the new code now.



No comments:

Post a Comment

Any comments, suggestion, idea? Please posted here.