Hello I want to use logic analyzer . When i try to add signals of my GPIO thats GPIOB (STM32) i get error message as Unknown signals What can be added? Could anyone let me know pls
Thanks
Use the example Blinky_ULp from e. g. Keil\Arm\Boards\Keil\MCBSTM32F400.
But for SWO trace there the ini file STM32_SWO.INI is not correct.
Use the following INI file:
FUNC void DebugSetup (void) { _WDWORD(0x40023830, _RDWORD(0x40023830) | 0x00000002); // RCC_AHB1ENR: IO port B clock enable _WDWORD(0x40020400, 0x00000080); // GPIOB_MODER: PB3 = Alternate function mode _WDWORD(0x40020408, 0x000000C0); // GPIOB_OSPEEDR: PB3 = 100 MHz speed _WDWORD(0x4002040C, 0x00000000); // GPIOB_PUPDR: PB3 = No Pull-up/Pull-down _WDWORD(0x40020420, 0x00000000); // GPIOB_AFRL: PB3 = AF0 // <h> Debug MCU Configuration // <o1.0> DBG_SLEEP Debug Sleep Mode // <o1.1> DBG_STOP Debug Stop Mode // <o1.2> DBG_STANDBY Debug Standby Mode // <o1.5> TRACE_IOEN Trace I/O Enable // <o1.6..7> TRACE_MODE Trace Mode // <0=> Asynchronous // <1=> Synchronous: TRACEDATA Size 1 // <2=> Synchronous: TRACEDATA Size 2 // <3=> Synchronous: TRACEDATA Size 4 // </h> _WDWORD(0xE0042004, 0x00000027); // DBGMCU_CR } DebugSetup(); // Debugger Setup /*------------------------------------------------------------------- ** Execute upon software RESET **-----------------------------------------------------------------*/ FUNC void OnResetExec(void) { DebugSetup(); }
And check the uVision Help file for uLINK pro - SWO debugging.