stm32 MDK5 software simulation to view io port output

Publisher:温柔的爱情Latest update time:2018-12-12 Source: eefocusKeywords:stm32  MDK5 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The first step is to compile the program and check the compile output window. If there are no errors or warnings, click the debug button.




The second step is to set the pin port to be viewed and click Setup.



Step 3. Click Insert



Step 4. Enter the pin you want to view. For example, for GPIOA_Pin_0, enter PORTA.0. Note that there is a decimal point after A, and all letters are uppercase, not lowercase.


\



At this point an error will occur and the software cannot recognize the port pins we set



Click the button shown in the figure to set up the project




Click the Debug tab, go to the Debug Settings interface, and modify the text inside



Modify the text to the one shown in the figure, where the two boxes need to be changed according to the actual microcontroller model used



After the settings are completed, click OK to re-set the port pins to be viewed, click the blank part, and after the settings are completed, click Close




Return to the debugging interface, click Run at full speed, click auto in the figure to use the automatic signal capture function, and you can see the signal waveform.



 

////////////////////////////////////////////////////////////////////////////////////////


stm32 MDK5 software simulation to view io port output - simonlin - Blog Park


https://www.cnblogs.com/simonlin/p/5036437.html

  

SoftwareMDK5


stm32 pack

  

Open MDK and add a project


1. First, find the Project Options option, and select Use Simulator in Debug, that is, select software simulation.


Then add the IO you want to observe and analyze in the Setup option of Logic Analyzer, such as PORTA.0. After starting the simulation, you will see the waveform in the logic analysis window. You can see it by adjusting the In or Out of Zoom.


①Click on debug


②Add io


③Run

 

2. During software simulation, MDK Logic Analyzer displays Unknown Signal when adding current logic analyzer signals

 

①. First make sure the input format is correct PXn is input PORTX.n             


X is A, B, C...; 


n is the corresponding pin number  


The corresponding input of routine PA6 is PORTA.6

 

②. Set the Dialog DLL (select debug in Options) to DARMSTM.DLL and TARMSTM.DLL, and the parameters are: 


-pSTM32F103RC, used to set up hardware and software emulation support for STM32F103RC (i.e., it can be used through Peripherals 
Select the corresponding peripheral dialog box to observe the simulation results).
Keywords:stm32  MDK5 Reference address:stm32 MDK5 software simulation to view io port output

Previous article:stm32 KEIL software setting program burning starting address
Next article:Keil project cannot be debugged

Recommended ReadingLatest update time:2024-11-16 15:55

FreeModbus ported to STM32 to implement Modbus RTU communication
       For my graduation project, I want to make a PLC based on STM32 that can run statement tables directly. It seems that there is nothing innovative now, but the implementation method is definitely innovative...haha. In the opening report I wrote, I mentioned that it must have advanced communication functions. It is
[Microcontroller]
FreeModbus ported to STM32 to implement Modbus RTU communication
Driver code for TM1629 based on STM32
One year, I wrote a Panyu Longmei game console IO board using STM32F103VBT6 and TM1629. I wrote a driver. I hope it can help friends in need. Without further ado, the code is as follows: #ifdef GAME #include "stm32f10x.h" #include "stdio.h" //TM1629 chip select //STB #define TM1629_STB GPIOC #define TM1629_CSA GPIOC,
[Microcontroller]
STM32 Learning Notes 6——Writing floating point numbers to the 24C02 chip
Method: Use union (1) Union type definition #define FLOAT_BYTE_NUM 4 //Number of bytes occupied by float type //Floating point storage common typedef union {     float value;     uint8_t byte ; } largeFloatData; (2) Function definition /************************************************************************
[Microcontroller]
STM32 (II) GPIO Operation (2) - Control the switch of LED light by button
      STM32 is a low-power chip, so its peripherals all have a corresponding clock, and these clocks are turned off when the chip is just powered on, so if you want the peripherals to work, you must turn on the corresponding clock.       This article introduces how to control the switch of the LEN lamp by pressing but
[Microcontroller]
Remote software upgrade method for vehicle terminal based on WiFi
introduction With the continuous improvement of system functions and performance requirements, or in order to eliminate defects, users often need to upgrade the software of embedded terminal devices. At present, the methods for upgrading embedded terminal software include burning with special tools, in-system progra
[Microcontroller]
Remote software upgrade method for vehicle terminal based on WiFi
STM32 CAN filter analysis summary
Recently I looked at STM32 CAN communication and found that the setting of identifier filter is very particular. Especially when you want to use ST library functions, when the filter works in shield mode and you set the shield bit to 1, that is, the corresponding bits of the identifier must all match in order to pass,
[Microcontroller]
Strange problem of STM32 not being able to delay after calling SysTick_Config
Operating environment (blue bold words are special attention contents) 1. Development board: STM32F103C8T6 minimum system core board. 2. Development environment: Keil uv5 The SysTick_Config function is used in my project as follows: RCC_Configuration(); //System clock settings NVIC_Configuration(); GPIO_Con
[Microcontroller]
Design and implementation of digital oscilloscope based on STM32
0 Introduction With the development of integrated circuits and the adoption of digital signal processing technology, digital oscilloscopes have become intelligent measuring instruments that integrate various functions such as display, measurement, calculation, analysis, and recording. Digital oscilloscopes have gradu
[Test Measurement]
Design and implementation of digital oscilloscope based on STM32
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号