Difference between revisions of "4-Pin Trace with STM32F2 / STM32F4"
(Redirected page to Keil MDK-ARM#Configure .C2.B5Vision for 4-Pin Trace with J-Link) (Tag: New redirect) |
|||
Line 1: | Line 1: | ||
+ | #REDIRECT [[Keil_MDK-ARM#Configure_.C2.B5Vision_for_4-Pin_Trace_with_J-Link]] |
||
− | == Configure required pins for trace output == |
||
− | |||
− | === 1. Create a file for the device === |
||
− | |||
− | STM32F429.ini |
||
− | /********************************************************************* |
||
− | * Configure pins to enable the trace port * |
||
− | *********************************************************************/ |
||
− | |||
− | _WDWORD(0x40023830, 0x00000010); // Enable GPIOE clock |
||
− | _WDWORD(0x40021000, 0x00002AA0); // Configure PE2, PE3, PE4, PE5, and PE6 as AF |
||
− | _WDWORD(0xE0042004, 0x000000E0); // Set 4-pin tracing via DBGMCU_CR |
||
− | |||
− | === 2. Set the file as initialization file === |
||
− | |||
− | * Open the dialog "Options for Target - Debug". |
||
− | |||
− | [[File:wiki-trace-initfile-STM32F429.png]] |
||
− | |||
− | * Set the created file as Initialization File. |
||
− | |||
− | == Configure µVision for ETM trace == |
||
− | |||
− | * Click Settings to open the "Target Driver Setup" dialog. |
||
− | * Click the Trace tab. |
||
− | |||
− | [[File:wiki-trace-settings.png]] |
||
− | |||
− | * Set Enable and ETM Trace Enable. |
||
− | * Set Trace Port to "Sync Trace Port with 4-bit Data". |
||
− | * Start the debugging session and open an "Instruction Trace" window. |
||
− | |||
− | == Sample project files == |
||
− | |||
− | *[[Media:STM32F429.zip | STM32F429.zip]] |
||
− | *[[Media:STM32F207_Trace_ETM_Keil_V518.7z | STM32F207_Trace_ETM_Keil_V518.7]] |