Home > other >  Keil programming questions, consult predecessors
Keil programming questions, consult predecessors

Time:10-24

Freshman, elective course chose embedded, error in the process of build files
Board is stm32f103c8, writing program is to make the LED lights will shine intermittent
No problem, the teacher said to compile process is in the compiled software began to connect other peripherals, however I did not add the peripherals (professional term don't understand the understanding QAQ)
O predecessors taught how to deal with TAT

CodePudding user response:

Lack of ADC, DMA, and other peripheral drive

Add the file corresponding to the project can

CodePudding user response:

Missing library file, add on ADC library file

CodePudding user response:

reference 1st floor dceacho response:
the lack of ADC and the DMA, and other peripheral drive

The corresponding files can be added to the project in the

Thank you, has been solved, and then is there a problem, my code after the load of the led light is not on

CodePudding user response:

reference RyuuYang reply: 3/f
Quote: refer to 1st floor dceacho response:
the lack of ADC and the DMA, and other peripheral drive

The corresponding files can be added to the project in the

Thank you, has been solved, and then my code if you have any questions, please load after the led light is not on

Didn't see any questions on the code, after you download the program, simulators, unplug after power on again change C13 mouth voltage by the multimeter

CodePudding user response:

Advice, operated by register directly! I also use library before, MLGB, playing more than a year, video and books, a mess I don't know the words! Later, the fire up, directly to stop, to plane C, plane STM manual, plane registers, about half a year, clear thread!!!!! Instead feel more simple, a variety of peripherals, come and go is their register operation, for example, USART, from port initialization, grouping, refactoring pritnf, counting braces, about 40 lines! More simple and clear!

CodePudding user response:

In library, to two pages, still have to add the RCC and usart peripheral library,,,, stupid

CodePudding user response:

First take a look at your own add to use file is "read only" mode, through the file attributes view, if being changed, if not share the information provided by the temporary not to come out now,
  • Related