.. \.. \SYSTEM\USART\USART.C (1): Error: #5: Cannot open source input file "Sys.h": No such file or directory
#include ". \sys\sys.h "So we can find the path.
There was a problem with compiling again
.. \.. \system\usart\. \sys\sys.h (3): Error: #5: Cannot open source input file "Stm32f10x_lib.h": No such file or directory does not stm32f10x_lib.h this library Number
What to do???
On the internet to find a lot of information, said the new version number of the MDK stm32f10x_lib.h this file has become
It's stm32f10x.h.
And it's all about changing stm32f10x.h to stm32f10x_lib.h. But how to change it
No explanation. First find this directory under the installation path
Note that this must be found in the ARM of the backup.001. Just this stm32f10x.
There are "Stm32f10x_lib.h" in the catalogue, not in other places. And put stm32f10x this article
Copy the entire piece.
Paste into the project file, the path is random, but be sure to and other things of the project
Put it in the same directory
This is just going to take. \.. \ Use the CD as well as Linux below. /.. /..
Folder structure can solve the problem
But my computer does not have this header file, my compilation again have difficulty?????
Later on the Internet to see a post found that this is the old version of only the new version of the only need to use stm32f10x.h to be able to
There's another one in the back. \SYSTEM\SYS\SYS.C: Error: #136: struct "<unnamed>" has no field "IPR"
.. \HARDWARE\EXTI\EXTI.C (+): Error: #20: identifier "EXTI15_10_IRQN" is undefined
Replace with 40 directly
.. \hardware\exti\exti.c-0 Error (s), 0 Warning (s).
.. \HARDWARE\TIMER\TIMER.C: Error: #20: identifier "TIM4_IRQN" is undefined
Replace with 30 directly
.. \HARDWARE\TIMER\TIMER.C: Error: #20: identifier "TIM3_IRQN" is undefined
Replace with 29 directly
.. \hardware\timer\timer.c-0 Error (s), 0 Warning (s).
Configuration vector Table
#ifdef Vect_tab_ram
My_nvic_setvectortable (Nvic_vecttab_ram, 0x0);
#else
My_nvic_setvectortable (Nvic_vecttab_flash, 0x0);
#endif
.. \SYSTEM\SYS\SYS.C (127): Error: #20: identifier "Nvic_vecttab_flash" is undefined
With a 8-bit microcontroller, the general C language can be a register or output port for the shift operation and the reverse operation, can make the LED lights running water or flashing. I would like to ask: 1. STM32 for GPIO operations generally use library functions, then how to make a certain port reverse? How to make a mouth shift water? Please write a demo code. 2. I see an example of a pc6port led flashing code such as the following, do not know what it means? Is it a counter-operation? Why read a bit first?Gpio_writebit (GPIOC, Gpio_pin_6, (bitaction) (1-gpio_readoutputdatabit (GPIOC, Gpio_pin_6))); 3. Interrupt vector table is not all fixed such as the following? Or does it have to be reset in some cases?
/* Set the Vector Table base at 0x20000000 * /nvic_setvectortable (Nvic_vecttab_ram, 0x0); #else/ * vect_t Ab_flash * /* Set the Vector Table base location at 0x08000000 * /nvic_setvectortable (Nvic_vecttab_flash, 0x0);
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Based on STM32 Rotary encoder