Instalação Do Keil e LaunchPad - SENAI

22
Instalação do Keil e LaunchPad no SENAI Serão instalados dois programas (Keil e TivaWare), os drivers da LaunchPad e um conjunto de exemplos do livro do professor Valvano da universidade de Austin no Texas. Observação: Todos os arquivos necessários já estão disponíveis no pacote de arquivos disponibilizados juntamente com este tutorial e não precisam ser baixados. Siga os passos 1º Passo – Criar um diretório com nome “ti” na raiz do computador (c:\ti) e copiar o pacote de arquivos disponibilizados. 2º Passo - Baixar o instalador da IDE Keil versão 4.74 (590 MB) e instalar. Link: https://www.keil.com/demo/eval/armv4.htm Preencher o formulário. Company: SENAI Device: TM4C123GH6PM 3º Passo – Baixar o instalador do TivaWare e instalar. Escolher a opção “SW-TM4C: TivaWare for C Series Software (Complete)”. Link: http://www.ti.com/tool/sw-tm4c Esse é o pacote de exemplos da Texas que será usado através do Keil. Usar os guias de referência para instalação (www.ti.com/lit/pdf/spmu355). 4º Passo – Baixar e instalar os drivers da Stellaris ICDI (In-Circuit Debug Interface). Link: http://www.ti.com/tool/ek-tm4c123gxl Usar os guias de referência para instalação (http://www.ti.com/tool/stellaris_icdi_drivers). A instalação no Windows 8 requer algumas ações especiais, vide detalhes no final deste documento. Também disponível passos para instalação no Windows 7. 5º Passo – Copiar a pasta de exemplos TExaSware na pasta de instalação do Keil (normalmente c:\Keil) 6º Passo – Copiar a DLL LaunchPadDLL.dll na pasta C:\Keil\ARM\BIN. Isso permitirá a simulação dos periféricos da LaunchPad no Keil. Fim da instalação!

description

Keil

Transcript of Instalação Do Keil e LaunchPad - SENAI

  • Instalao do Keil e LaunchPad no SENAI

    Sero instalados dois programas (Keil e TivaWare), os drivers da LaunchPad e um conjunto de

    exemplos do livro do professor Valvano da universidade de Austin no Texas.

    Observao: Todos os arquivos necessrios j esto disponveis no pacote de arquivos

    disponibilizados juntamente com este tutorial e no precisam ser baixados.

    Siga os passos

    1 Passo Criar um diretrio com nome ti na raiz do computador (c:\ti) e copiar o pacote de

    arquivos disponibilizados.

    2 Passo - Baixar o instalador da IDE Keil verso 4.74 (590 MB) e instalar.

    Link: https://www.keil.com/demo/eval/armv4.htm

    Preencher o formulrio.

    Company: SENAI

    Device: TM4C123GH6PM

    3 Passo Baixar o instalador do TivaWare e instalar. Escolher a opo SW-TM4C: TivaWare

    for C Series Software (Complete).

    Link: http://www.ti.com/tool/sw-tm4c

    Esse o pacote de exemplos da Texas que ser usado atravs do Keil.

    Usar os guias de referncia para instalao (www.ti.com/lit/pdf/spmu355).

    4 Passo Baixar e instalar os drivers da Stellaris ICDI (In-Circuit Debug Interface).

    Link: http://www.ti.com/tool/ek-tm4c123gxl

    Usar os guias de referncia para instalao (http://www.ti.com/tool/stellaris_icdi_drivers).

    A instalao no Windows 8 requer algumas aes especiais, vide detalhes no final deste

    documento.

    Tambm disponvel passos para instalao no Windows 7.

    5 Passo Copiar a pasta de exemplos TExaSware na pasta de instalao do Keil (normalmente

    c:\Keil)

    6 Passo Copiar a DLL LaunchPadDLL.dll na pasta C:\Keil\ARM\BIN.

    Isso permitir a simulao dos perifricos da LaunchPad no Keil.

    Fim da instalao!

  • Como habilitar os perifricos da LaunchPad

    Arquivos fornecidos:

    LaunchPadDLL.dll (C:\Keil\ARM\BIN): kit para simulao no Keil. tm4c123gh6pm.h (C:\Keil\TExaSware): declarao de todos os registradores.

    Aps criar um projeto, clique no menu Project -> Options for Target -> Aba Debug.

    Complete o cdigo como mostrado abaixo.

  • How to install windows drivers for the LaunchPad on Windows 8

    This is the third of three steps. First you install Keil, and then you install TExaS. After these two

    steps are complete then you follow these directions to install drivers for the LaunchPad. There

    are a total of three drivers to install, which will be installed separately.

    Problem: The kernel-mode code signing policy for 64-bit versions of Windows Vista and later

    versions of Windows specifies that a kernel-mode driver must be signed for the driver to load.

    So drivers that are not signed like the ones for the Texas Instruments microcontroller boards.

    Solution: The steps to install drivers that are not signed on windows 8 is as follows.

    0. Take a snapshot of this window of steps on your cellphone for reference. You will be

    restarting your system and this window will not be available for the next sequence of steps.

    1. Press "Windows keyboard button + I" button to open a slide window to the right of your

    screen. Select "PC settings" at the bottom of the slide window.

    For Windows 8: From PC settings -> General-> Advanced Startup ->Restart now.

  • For Windows 8.1: From PC settings -> Update and recovery -> Recovery ->Advanced Startup.

  • 2. The system will restart and might take some minutes to show up the boot menu. Wait for it

    patiently.

    3. After some time you will be prompted with a menu with following options.

    ...Continue

    ...Troubleshoot

    ...Turn off

  • 4. Choose Troubleshoot. Then the following menu appears.

    ...Refresh your PC

    ...Reset your PC

    ...Advanced Options

  • 5. Choose Advanced Options. Then the following menu appears

    ...System Restore System

    ...Image Recovery

    ...Automatic Repair

    ...Command Prompt Windows

    ...Startup settings

  • 6. Choose Windows Startup Settings, then Click Restart.

    7. Now the computer will restart and the boot menu appears. Choose Disable Driver signature

    Enforcement from the menu.

  • Now windows will start and you can do the installation of the driver that is not signed

    according to the normal procedure.

    8) Find the folder named windows_drivers, which includes the drivers. If you have installed

    TExaS then the drivers will be in: ../Keil/TExaSware/windows_drivers

    9) Plug in the LaunchPad into a USB port. Pick the USB port you will most likely want to use.

    Plug the mini-USB into the socket labelled Debug. Make sure the LaunchPad power is on.

    There is a slider switch near the USB that should be in the Debug position. The green LED near

    the USB will illuminate when power is applied. Open the device manager program (click Start,

    and then in the Search for files and programs window type device manager) and you should

    see three In-Circuit Debug Interface devices that do not have drivers (yellow exclamation

  • point)

  • 10) For each of the three devices, first right-click on the device and then select Update Driver

    Software.

  • 11) You will be given a choice to Search automatically or to Browse my computer. Click

    Browse my computer for driver software.

    12) Browse your computer and find the location of the windows-drivers folder installed with

    TExaS. On this computer Keil was installed on D:, but on your computer search for Keil then

  • TExaSware and then select the windows_drivers folder. Click Next.

    13) You may get this warning. If so, click Install this driver anyway

  • 14) You will get a success screen. Click Next.

    Repeat steps 10, 11, 12, 13 and 14 for the other two devices. After you have repeated the process a total of three times there should be no error flags. I.e., there should be no yellow exclamation points. However, if you do see one of the three Stellaris devices with a driver error, try right-clicking on the device with error and select update driver, and try the process again. Sometimes it doesn't install on the first try, but does install on the second try.

  • Note that the computer shown above has one COM port (COM4 is the Stellaris board). If you see more than one COM port, write down the number associated with the Stellaris Virtual Serial Port. This number will be used in the settings command of TExaSdisplay you will use for labs 5, 11, and 14.

    Reference

    1) http://www.ti.com/tool/stellaris_icdi_drivers 2) http://www.ti.com/lit/ml/spmu287c/spmu287c.pdf Stellaris Driver Installation Guide 3) http://dhakshinamoorthy.wordpress.com/2012/05/14/installing-an-unsigned-driver-in-windows-8-x64/

  • How to install windows drivers for the LaunchPad on Windows 7

    This is the third of three steps. First you install Keil, and then you install TExaS. After these two

    steps are complete then you follow these directions to install drivers for the LaunchPad. There

    are a total of three drivers to install, which will be installed separately.

    1) Find the folder named windows_drivers, which includes the drivers. If you have installed

    TExaS then the drivers will be in: ../Keil/TExaSware/windows_drivers

    2) Plug in the LaunchPad into a USB port. Pick the USB port you will most likely want to use.

    Plug the mini-USB into the socket labelled Debug. Make sure the LaunchPad power is on.

    There is a slider switch near the USB that should be in the Debug position. The green LED near

    the USB will illuminate when power is applied. Open the device manager program (click Start,

    and then in the Search for files and programs window type device manager) and you should

    see three In-Circuit Debug Interface devices that do not have drivers (yellow exclamation

    point)

  • 3) For each of the three devices, first right-click on the device and then select Update Driver

    Software.

  • 4) You will be given a choice to Search automatically... or to Browse my computer.... Click

    Browse my computer for driver software.

    5) Browse your computer and find the location of the windows driver installed with TExaS. On

    this computer Keil was installed on D:, but on your computer search for Keil then TExaSware

  • and then select the windows_drivers folder. Click Next.

    6) You may get this warning. If so, click Install this driver anyway

  • 7) You will get a success screen. Click Next.

    Repeat steps 3, 4, 5, 6 and 7 for the other two devices. After you have repeated the process a total of three times there should be no error flags. I.e., there should be no yellow exclamation points. However, if you do see one of the three Stellaris devices with a driver error, try right-clicking on the device with error and select Update driver software, and try the process again. Sometimes it doesn't install on the first try, but does install on the second try.

  • Note that the computer shown above has one COM port (COM4 is the Stellaris board). If you see more than one COM port, write down the number associated with the Stellaris Virtual Serial Port. This number will be used in the settings command of TExaSdisplay you will use for labs 5, 11, and 14.

    Reference

    1) http://www.ti.com/tool/stellaris_icdi_drivers 2) http://www.ti.com/lit/ml/spmu287c/spmu287c.pdf Stellaris Driver Installation Guide