PTA1 (Not broken out on PCB, available on McHCK) (Pull-up)
PTA2 (")
PTA4 (Pull-up)
PTA18 (EXTAL)
PTC0
PTC1
PTC2
PTC3
PTC6
PTC7
* Analog
ADC0_DP0
ADC0_DM0
Freescale kinetis MK20DX128
===========================
If FSEC of flash config at 0x400-40F is changed accidentally SWD/JTAG debug access will be lost and very difficult to get back.
For example, high level adapter like stlink cannot work to get access back after FSEC is changed. To regain the chip to be programmable low level DAP inteface like JTAG, CMSIS-DAP or OpenSAD.
The tapname reflects the role of that TAP, and should follow this convention:
bs – For boundary scan if this is a separate TAP;
cpu – The main CPU of the chip, alternatively arm and dsp on chips with both ARM and DSP CPUs, arm1 and arm2 on chips with two ARMs, and so forth;
etb – For an embedded trace buffer (example: an ARM ETB11);
flash – If the chip has a flash TAP, like the str912;
jrc – For JTAG route controller (example: the ICEPick modules on many Texas Instruments chips, like the OMAP3530 on Beagleboards);
tap – Should be used only for FPGA- or CPLD-like devices with a single TAP;
unknownN – If you have no idea what the TAP is for (N is a number);
when in doubt – Use the chip maker's name in their data sheet. For example, the Freescale i.MX31 has a SDMA (Smart DMA) with a JTAG TAP; that TAP should be named sdma.
-irlen NUMBER
The length in bits of the instruction register, such as 4 or 5 bits.
-chain-position dotted.name – names the TAP used to access this target.
-endian (big|little) – specifies whether the CPU uses big or little endian conventions
-event event_name event_body – See Target Events. Note that this updates a list of named event handlers. Calling this twice with two different event names assigns two different handlers, but calling it twice with the same event name assigns only one handler.
-work-area-backup (0|1) – says whether the work area gets backed up; by default, it is not backed up. When possible, use a working_area that doesn't need to be backed up, since performing a backup slows down operations. For example, the beginning of an SRAM block is likely to be used by most build systems, but the end is often unused.
-work-area-size size – specify work are size, in bytes. The same size applies regardless of whether its physical or virtual address is being used.
-work-area-phys address – set the work area base address to be used when no MMU is active.
-work-area-virt address – set the work area base address to be used when an MMU is active. Do not specify a value for this except on targets with an MMU. The value should normally correspond to a static mapping for the -work-area-phys address, set up by the current operating system.
-rtos rtos_type – enable rtos support for target, rtos_type can be one of auto|eCos|ThreadX| FreeRTOS|linux|ChibiOS|embKernel See RTOS Support.
flash bank name driver base size chip_width bus_width target [driver_options]
name ... may be used to reference the flash bank in other flash commands. A number is also available.
driver ... identifies the controller driver associated with the flash bank being declared. This is usually cfi for external flash, or else the name of a microcontroller with embedded flash memory. See Flash Driver List.
base ... Base address of the flash chip.
size ... Size of the chip, in bytes. For some drivers, this value is detected from the hardware.
chip_width ... Width of the flash chip, in bytes; ignored for most microcontroller drivers.
bus_width ... Width of the data bus used to access the chip, in bytes; ignored for most microcontroller drivers.
target ... Names the target used to issue commands to the flash controller.
driver_options ... drivers may support, or require, additional parameters. See the driver-specific documentation for more information.