Then you can use CN4 (Nucleo-64) or CN6 (Nucleo-144) to connect to your target board. To use the built-in debugger, you must remove the jumpers from CN2 (Nucleo-64) or CN4 (Nucleo-144). The ST-LINK/V2 built into the Nucleo-64 and Nucleo-144 boards can also be used as stand-alone debugger. The pinout of this connector can be found below. This debugger has a 20-pin IDC conenctor for connecting to target boards. This isolation withstands voltages up to 1000V rms. In addition to the standard ST-LINK/V2, ST offers a ST-LINK/V2-ISOL variant which features digital isolation between the PC and target board. The official ST-LINK/V2 is a debugger manufactured by ST Microelectronics and can be bought at any major electronics distributor. There are a few different debuggers that can be used. This is essentially the same as connecting your debugger via a SWD or JTAG header, although a bit more cumbersome. If you have a development board that does not have a SWD or JTAG header, you can also connect your debugger to some specific GPIO ports. Refer to the image below for an overview of a typical ARM JTAG header. This includes the pins a SWD header would expose. This connector exposes all the pins needed for full JTAG support. If your development board does not have a 4-pin SWD header, it most likely does have a 20-pin JTAG header. The table below provides an overview of which pins to connect: Pin function This may cause damage your board, debugger or PC. Warning: Do not connect the +3.3V pin if you are powering your board externally, as most Chinese development boards do not have any protection on the power pins. Note: There is no particular order in which these pins are arranged. The header exposes a ground pin, a +3.3V pin, a clock pin, and a data pin. This header is usually a male dupont header, but female headers are also used. The easiest way to connect your development board to your debugger is by using the 4-pin SWD header, if present. If you are using one of the many Chinese development boards, you most likely need to connect an external debugger to flash and debug the device on your development board as these board normally do not include a on-board ST-LINK/V2. Just connect the board via USB to your PC and you are ready to go! Connecting Chinese development boards These board come with an on-board ST-LINK/V2 debugger. If you are using one of ST’s official Nucleo or Discovery boards, you do not have to connect an external debugger. Connecting ST’s Nucleo and Discovery boards There are two commonly used connectors which expose only the SWD (Serial Wire Debug) interface or the full JTAG interface. These Expansion Boards plug on top of the Nucleo development boards and simplify the task of project development considerably.This small guide will explain how to connect your debugger to your development board. In addition, several projects are given using the Nucleo Expansion Boards, including popular expansion boards such as solid-state relay, MEMS and environmental sensors, DC motor driver, Wi-Fi, and stepper motor driver. The projects range from simple flashing LEDs to more complex projects using modules and devices such as GPIO, ADC, DAC, I☬, LCD, analog inputs and others. The book covers many projects using most features of the STM32 Nucleo development boards where the full software listings for Mbed and System Workbench are given for every project. Software development tools that can be used with the Nucleo boards such as the Mbed, Keil MDK, TrueSTUDIO, and the System Workbench are described briefly in later Chapters. In the early chapters of the book, the architecture of the Nucleo family is briefly described. This book is about developing projects using the popular Nucleo development board. These are low-cost ARM microcontroller development boards. STM32 Nucleo family of processors are manufactured by STMicroelectronics.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |