Slide - ssalvatori
Transcript
Slide - ssalvatori
Progettazione nell'ambiente LPCXpresso Introduzione alla progettazione di sistemi embedded a microcontrollore L'ambiente LPCXpresso Ambiente per lo sviluppo dei progetti S. Salvatori - Microelettronica – febbraio 2016 – (1 di 80) Sommario NXP LPCware LPCXpresso IDE LPCXpresso evaluation boards Consigli per gli acquisti S. Salvatori - Microelettronica - febbraio 2016 2/80 Longevity: NXP (già Philips) http://www.nxp.com/techzones/microcontrollers-techzone/longevity.html S. Salvatori - Microelettronica - febbraio 2016 3/80 Longevity: Freescale (già Motorola) http://www.freescale.com/webapp/sps/site/overview.jsp?code=PRDCT_LONGEVITY_HM S. Salvatori - Microelettronica - febbraio 2016 4/80 Parliamo di NXP S. Salvatori - Microelettronica - febbraio 2016 5/80 NXP S. Salvatori - Microelettronica - febbraio 2016 6/80 S. Salvatori - Microelettronica - febbraio 2016 7/80 S. Salvatori - Microelettronica - febbraio 2016 8/80 Leader per i microcontrollori basati su ARM Stategia chiara: focalizzata su ARM Stato dell'arte: tecnologia e architettura Flessibilità nella progettazione con compatibilità sia pin-to-pin che nel software memoria scalabile ampia scelta di periferiche Scelta su famiglie basate su diversi processori S. Salvatori - Microelettronica - febbraio 2016 9/80 Le soluzioni NXP S. Salvatori - Microelettronica - febbraio 2016 10/80 LPC portfolio S. Salvatori - Microelettronica - febbraio 2016 11/80 LPCware S. Salvatori - Microelettronica - febbraio 2016 12/80 LPCware: Forum S. Salvatori - Microelettronica - febbraio 2016 13/80 LPCware: Blogs S. Salvatori - Microelettronica - febbraio 2016 14/80 Sistemi di sviluppo sezione software S. Salvatori - Microelettronica - febbraio 2016 15/80 Soluzioni per lo sviluppo Toolchain di NXP (basso costo) Toolchain on-line (sviluppo rapido) Toolchain tradizionali (assistenza) S. Salvatori - Microelettronica - febbraio 2016 16/80 LPCXpresso IDE Basato su Eclipse singola prospettiva per semplificare la stesura supporta tutti i prodotti di NXP limite di codice 256k (attuale) interfaccia per il debug basata su LPC3154 S. Salvatori - Microelettronica - febbraio 2016 17/80 LPCXpresso IDE Overview The LPCXpresso IDE is a comprehensive, highly-integrated Eclipse-based IDE software development toolchain for NXP LPC microcontrollers based on Cortex-M, ARM7, and ARM9 cores. It features the industry-standard GNU toolchain with a proprietary, optimized C library based on the standard Newlib library, plus many enhancements to simplify development with NXP LPC microcontrollers. NXP is continually updating the LPCXpresso IDE to make sure the latest advances from ARM’s compiler development team and the Eclipse Foundation are available for your LPC projects. The LPCXpresso IDE also integrates an evergrowing set of specialist tools for developers to reduce development time, such as pin mux configuration and state configurable time (SCT) design tools. S. Salvatori - Microelettronica - febbraio 2016 18/80 What's New on LPCXpresso 7.9.0 ● Initial support for Windows 10 ● Upgraded GNU tools to ARM launchpad GCC 4.9 update 2 ● ● ● New Generic SPIFI flash driver mechanism, which will autoconfigure based on SPIFI device detected in target system Enhanced managed linker script template mechanism Support for generating LPC MCU vector table checksums directly in the image, using the startup file and linker script ● "Active Config" is now the default for the indexer ● Fixes to Multicore projects ● Fixed an issue that was preventing MTB trace with LPC82x parts ● Extended CMSIS-DAP JTAG support (for Cortex-M parts) to include Keil ULINK2/ULINK-ME probes S. Salvatori - Microelettronica - febbraio 2016 19/80 Features S. Salvatori - Microelettronica - febbraio 2016 20/80 Features: Red Trace S. Salvatori - Microelettronica - febbraio 2016 21/80 e... S. Salvatori - Microelettronica - febbraio 2016 22/80 Versioni disponibili S. Salvatori - Microelettronica - febbraio 2016 23/80 https://www.lpcware.com/lpcxpresso S. Salvatori - Microelettronica - febbraio 2016 24/80 https://www.lpcware.com/lpcxpresso/download S. Salvatori - Microelettronica - febbraio 2016 25/80 https://www.lpcware.com/lpcxpresso/download S. Salvatori - Microelettronica - febbraio 2016 26/80 IDE: Integrated Development Interface S. Salvatori - Microelettronica - febbraio 2016 27/80 Peripheral Window S. Salvatori - Microelettronica - febbraio 2016 28/80 Ambiente di sviluppo: Sezione hardware S. Salvatori - Microelettronica - febbraio 2016 29/80 Schede di sviluppo S. Salvatori - Microelettronica - febbraio 2016 30/80 Caratteristiche S. Salvatori - Microelettronica - febbraio 2016 31/80 NXP LPCXpresso Development boards S. Salvatori - Microelettronica - febbraio 2016 32/80 NXP LPCXpresso Development boards S. Salvatori - Microelettronica - febbraio 2016 33/80 NXP LPCXpresso Development boards S. Salvatori - Microelettronica - febbraio 2016 34/80 LPCXpresso board S. Salvatori - Microelettronica - febbraio 2016 35/80 Sviluppo di un progetto Stadi di sviluppo con LPCXpresso: S. Salvatori - Microelettronica - febbraio 2016 36/80 NXP LPCXpresso Development boards The latest generation of LPCXpresso boards are an evolution of the V2 version, maintaining the Arduino UNO compatible shield connectors on the board top side, and adding additional rows of expansion connectors adjacent to them. As with V2 boards, they include an onboard LPC-Link2 based debug probe, compatible with the LPCXpresso IDE out-of-the-box, and with other toolchains via optional firmware, including ARM CMSISDAP. These boards can also be configured to act as a standalone probe to allowing debugging of an external board, and the 10-pin debug connector also allows debugging of target MCU via an external probe. S. Salvatori - Microelettronica - febbraio 2016 37/80 NXP LPCXpresso Development boards LPCXpresso V2 boards build upon the original and highly successful V1 design. These boards provide "Arduino UNO" compatible shield connectors on the board top side, as well as a ‘standard LPCXpresso/mbed’ expansion connector (board bottom side). They also include an onboard LPC-Link2 based debug probe, compatible with the LPCXpresso IDE out-of-the-box, and with other toolchains via optional firmware, including ARM CMSIS-DAP. These boards can also be configured to act as a standalone probe to allowing debugging of an external board, and the 10-pin debug connector also allows debugging of target MCU via an external probe. S. Salvatori - Microelettronica - febbraio 2016 38/80 NXP LPCXpresso Development boards Designed to provide a flexible hardware platform for low-end LPC MCUs, the LPCXpresso MAX boards comes pre-programmed for mbed compatibility. They also include an onboard CMSIS-DAP based debug probe for compatibility with a wide range of toolchains, and can also be used with an external probe. These boards provide "Arduino UNO" compatible shield connectors on the board top side, as well as a ‘standard LPCXpresso/mbed’ expansion connector (board bottom side). S. Salvatori - Microelettronica - febbraio 2016 39/80 NXP LPCXpresso Development boards Designed to replace the original LPCXpresso board, this CMSIS-DAP (or CD) version replaces the original on-board debug probe called "LPC-Link" with a CMSIS-DAP probe implemented using an LPC11U3x MCU. The board still seamlessly connects the LPCXpresso IDE (version 7.9 onwards required) to the target MCU via full speed USB. The target includes a small prototyping area and easily accessible connections for expansion. An RGB LED is fitted as standard, as are reset and ISP buttons for easier operation. Other features (such as peripheral connectors) are dependent on the variant used. S. Salvatori - Microelettronica - febbraio 2016 40/80 NXP LPCXpresso Development boards Due to the debug probe (MCU) no longer being available, most original LPCXpresso boards featuring the LPC-Link debug probe are being replaced with LPCXpresso CD, LPCXpresso MAX type boards (with CMSIS-DAP debug probes). For other MCUs alternative boards are recommended Since first introduced in 2009, the original LPCXpresso family of boards, along with the associated LPCXpresso IDE, has reenergised the whole MCU evaluation board market. Each LPCXpresso board includes an on-board debug probe called "LPC-Link" and a target MCU. LPC-Link seamlessly connects the LPCXpresso IDE to the target MCU via USB, and can also be modified to allow debugging of an external board. The target includes a small prototyping area and easily accessible connections for expansion. An LED is also fitted as standard, with some board variants having additional fittings such as an RGB LED, potentiometer or USB device connector. S. Salvatori - Microelettronica - febbraio 2016 41/80 NXP LPCXpresso Development boards LPC-Link 2 is an extensible, stand-alone debug probe that is compatible out of the box with the LPCXpresso IDE. It can also be configured to support various development tools and IDEs using a number of different downloadable firmware images, include CMSIS-DAP and Seggar J-Link. It can also be used as an evaluation board in its own right for the NXP LPC4370 triple core MCU. S. Salvatori - Microelettronica - febbraio 2016 42/80 NXP LPCXpresso Development boards LPCXpresso MAX, V2 and V3 boards feature Arduino UNO R3 compatible expansion connectors, so can be used with a range of third party Arduino shield (check individual LPCXpresso boards for compatibility). V3 boards have extended expansion sites that add several more signals for interfaces such as Ethernet, CAN and SDIO, along with extra UART, I2C and SPI connectivity. Current products: LPC General Purpose Shield (OM13082) Sensor Shield Board (only available as part of the LPC54102 Sensor Processing/Motion Solution OM13078) S. Salvatori - Microelettronica - febbraio 2016 43/80 NXP LPCXpresso Development boards Example Code - LPCOpen An integral part of the LPCXpresso platform is the driver and example code that we provide => LPCOpen. Packages for the various LPCXpresso boards can be downloaded, suitable for use out of the box with Keil, IAR and our own LPCXpresso IDE. http://www.lpcware.com/lpcopen S. Salvatori - Microelettronica - febbraio 2016 44/80 Social-media per uC LPC S. Salvatori - Microelettronica - febbraio 2016 45/80 Panoramica per cominciare a lavorare S. Salvatori - Microelettronica - febbraio 2016 46/80 Dove cominciare Microcontrollori con ARM LPC Zone LPCXpresso S. Salvatori - Microelettronica - febbraio 2016 47/80 LPCXpresso Video di presentazione http://www.nxp.com/techzones/microcontrollers-techzone/tools-ecosystem/lpcxpresso.html S. Salvatori - Microelettronica - febbraio 2016 48/80 LPCXpresso download http://www.lpcware.com/lpcxpresso/download S. Salvatori - Microelettronica - febbraio 2016 49/80 LPCXpresso User Guide http://www.lpcware.com/lpcxpresso/download S. Salvatori - Microelettronica - febbraio 2016 50/80 “Consigli per gli acquisti” S. Salvatori - Microelettronica - febbraio 2016 51/80 LPCXpresso: LPC1769 (Cortex-M3) http://www.lpcware.com/LPCXpressoCDBoards S. Salvatori - Microelettronica - febbraio 2016 52/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 53/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 54/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 55/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 56/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 57/80 LPCXpresso: LPC1769 (Cortex-M3) S. Salvatori - Microelettronica - febbraio 2016 58/80 Altro materiale necessario (dettaglio più avanti) Cavo USB (alimentazione e JTAG) basetta sperimentale connettore da saldare sulla board 3x1.5 V + “case” componenti vari ... S. Salvatori - Microelettronica - febbraio 2016 59/80 LPCXpresso: Experiment Kit S. Salvatori - Microelettronica - febbraio 2016 60/80 LPCXpresso: Experiment Kit S. Salvatori - Microelettronica - febbraio 2016 61/80 Materiale per le esercitazioni S. Salvatori - Microelettronica - febbraio 2016 62/80 Materiale per le esercitazioni LPC1769 LPCXpresso / LPCXpresso1769 with CMSIS-DAP + 2 strip 27 pin 5V? S. Salvatori - Microelettronica - febbraio 2016 63/80 Materiale per le esercitazioni LPC1769 LPCXpresso saldare S. Salvatori - Microelettronica - febbraio 2016 64/80 Materiale per le esercitazioni Cavo USB: spina USB 2.0 A, spina USB Mini B Sia per alimentazione che debug S. Salvatori - Microelettronica - febbraio 2016 65/80 Materiale per le esercitazioni più comoda Basetta per connessioni senza saldatura S. Salvatori - Microelettronica - febbraio 2016 66/80 Materiale per le esercitazioni Assortimento cavi Assortimento jumper per breadboard S. Salvatori - Microelettronica - febbraio 2016 67/80 Materiale per le esercitazioni Display a cristalli liquidi (2x16 caratteri) Compatib. HD44780 + strip per connessione S. Salvatori - Microelettronica - febbraio 2016 68/80 Materiale per le esercitazioni LED Switch comodi per breadboard S. Salvatori - Microelettronica - febbraio 2016 69/80 Materiale per le esercitazioni Trimmer: 10 kΩ (per LCD) più comodo 2x 50 kΩ (per ing. ADC) scomodo S. Salvatori - Microelettronica - febbraio 2016 70/80 Materiale per le esercitazioni Resistori vari: 1 kΩ (per LED) 10 kΩ (pull up) Condensatori: 100 nF S. Salvatori - Microelettronica - febbraio 2016 71/80 Materiale per le esercitazioni Trasduttore di temperatura LM35 Fotoresistore S. Salvatori - Microelettronica - febbraio 2016 72/80 Altro materiale S. Salvatori - Microelettronica - febbraio 2016 73/80 LPCXpresso: Experiment Kit (futuro) S. Salvatori - Microelettronica - febbraio 2016 74/80 LPC1114 (Cortex-M0) (futuro) S. Salvatori - Microelettronica - febbraio 2016 75/80 LPC810 (Cortex-M0) (futuro) S. Salvatori - Microelettronica - febbraio 2016 76/80 Compiti per casa S. Salvatori - Microelettronica - febbraio 2016 77/80 Per il prossimo futuro http://www.lpcware.com/lpcxpresso/download Scaricare l'IDE LPCXpresso Scaricare la User Guide Installare LPCXpresso sul proprio PC e attivare la licenza fare almeno una prova di compilazione di un progetto d'esempio S. Salvatori - Microelettronica - febbraio 2016 78/80 Riferimenti http://www.nxp.com/techzones/microcontrollers-techzone/ longevity.html http://www.nxp.com/techzones/microcontrollers-techzone/toolsecosystem/lpcxpresso.html www.mbed.org http://www.lpcnow.com/articles/343528/lpc812-max-experimentoverview/ ... S. Salvatori - Microelettronica - febbraio 2016 79/80 Grazie per l'attenzione … … domande? All text and image content in this document is licensed under the Creative Commons Attribution-Share Alike 3.0 License (unless otherwise specified). S. Salvatori - Microelettronica - febbraio 2016 80/80