This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Debugging in keil



Is there a way to use the debug mode in keil to give inputs and view results? For example, going to Peripherals->System Viewer->Gpio will show the values of gpio_portf_data_r (portf data register), but how do I give inputs?

Say, using the switch connected to portf, pin4 to toggle the led connected to portf, pin2?? How do I do this in simulation?

  • Hi,

    In principle, go to the view memory and select the port data register; modify the bit corresponding to the input pin and go further step by step and verify the writing of the bit for led. Alternatively, write a script.

    But the best is to not waist your time with simulations, get a real board and debug a real world...

    Petrei