This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug with Logic Analyzer to show GPIOB bit signal

hi, I am trying to use the logic analyzer to capture the output pin on my MCBSTM32 board. I have try to add "GPIOB" into Current Logic Analyzer Signals under Setup Logic Analyzer Menu, but couldn't seems to do that successfully. May i know whats the right way to add and monitor the signal? This pin is connected to an IR Emitter and the 38Khz carrier frequency toggle by a Timer ISR.

regards
Thanks for any input.
clgo

  • I'm quite sure that the ports are called PORTA, PORTB, ... in the simulator.

    Where did you get the name GPIOB from?

    Have you looked at keils documentation about simulated peripherials for your specific processor? That information also includes the names of the virtual registers you need to use.

  • I could find no documentation on the ARM version of the Logic Analyzer but in the C51, an output pin cannot be displayed directly because the simulator does not connect to the output pins. Instead you can display the virtual register or a variable.
    So a quick way would be to assign the value of the output pin to a variable and display the variable or display the corresponding VTR (virtual register). Look up the VTR in the Debugger Manuals. You may need to review the C51 manuals as the ARM manuals appear useless. However, I'm running an older version of the ARM tools so they may have been updated.
    If you need to see the actual hardware pin value then you need an oscilloscope.
    Bradford

  • The ARM documentation isn't useles, but you need to search along a bit.

    This is the documentation for I/O for one STM32 chip. I haven't checked which chip is on the evaluation board:
    http://www.keil.com/dd/vtr/4235/9067.htm

  • "This is the documentation for I/O for one STM32 chip ... http://www.keil.com/dd/vtr/4235/9067.htm "

    and that refers to GPIOB!

  • The debugger dialog refers to GPIO, but the section at the bottom of the page discussing the virtual registers do not refer to GPIO but to PORTA, PORTB, ...

  • Thank you for all the input. The GPIOB signal is found in ST Micro STM32F10xx Reference Manual. What i am trying to do is read the levels from an input port connected to an IR Receiver, save and retransmit it in 38Khz modulated frequency through GPIOB.0 pin. The 38Khz carrier is generated by toggling the GPIOB.0 pin with period set to 1/38Khz. I have try to store the value read from the output pin into a variable and in stimulated mode it works but not in debugging mode using the ULink Cortex Debugger. Where the value doesn't toggle. Is there a debugging tool in keil to measure the period generated from the output in simulation?

  • The logic analyzer can show you high-resolution timing for the simulated signal.

    When running real hardware, it will be up to you to feed real signals to the processor pins. If you suspect that your processor can't handle the signal in real time - try reducing the frequency of the physical signal just to make sure.

    And always make sure that you separate the internal registers in the processor from the virtual register names used by the debugger when simulating external hardware stimuli for a simulated virtual processor.