Author Topic: Beginner arm programming with Keil uvision  (Read 3031 times)

0 Members and 1 Guest are viewing this topic.

Offline RavenghostTopic starter

  • Contributor
  • Posts: 15
  • Country: lt
Beginner arm programming with Keil uvision
« on: June 13, 2016, 08:31:21 am »
Hello,
I want to learn programming arm MCU's. As i'm waiting for my ST-LINK V2 to arrive i began to experiment with keil uvision IDE.
So far my progress is a new project that compiles with added CMSIS CORE; Device GPIO, Startup, StdPeriph drivers Framework and RCC components and main.c bare bones.

From my understanding those components are standard libraries like AVR's <avr/io.h> but i have a hard time finding good documentation of those libraries and how to use all the functions to do basic tasks like setting MCU system clock. I've read ]http://www2.keil.com/docs/default-source/default-document-library/mdk5-getting-started.pdf?sfvrsn=2[NC,L] but that didn't give clear explanation how main.c should look like.
I'd really appreciate any information where to find documentation about those components and guides for starting programming arm MCU's with keil uvision.
MCU: stm32F103C8T6
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginner arm programming with Keil uvision
« Reply #1 on: June 13, 2016, 09:58:50 am »
You are using RTE so you should go to Keil for documentation on that, and compare it to the datasheet.

If you are a beginner, it is a tall order.
================================
https://dannyelectronics.wordpress.com/
 

Offline jnz

  • Frequent Contributor
  • **
  • Posts: 593
Re: Beginner arm programming with Keil uvision
« Reply #2 on: June 13, 2016, 10:00:21 pm »
You are using RTE so you should go to Keil for documentation on that, and compare it to the datasheet.

If you are a beginner, it is a tall order.

Yea, but I've been on Keil for over a year and have HAD to do that about zero times. The only issues with the Keil built-in stuff have been things like the Segger init.ini file to get printf over the debug console, and some ST stuff with their middleware.

The RTE system is a little complex at first, esp when trying to figure out potential incompatibility with what Keil releases and what the mfg will put up. 
 

Offline jnz

  • Frequent Contributor
  • **
  • Posts: 593
Re: Beginner arm programming with Keil uvision
« Reply #3 on: June 13, 2016, 10:04:27 pm »
but that didn't give clear explanation how main.c should look like.
I'd really appreciate any information where to find documentation about those components and guides for starting programming arm MCU's with keil uvision.
MCU: stm32F103C8T6

There is no standard.  Do whatever you like.

Go into the pack installer inside of Keil, click BOARDS, and copy one of the blinky examples. Try starting with that. Esp with RTX, it's nice to get a main.c from the example so you can see how to start the OS and initialize the first threads. It's all very easy.

Now... If you want to move from the Std Peripheral Driver to HAL, there are a couple wierd things with Keil right now. Trying to combine Cube and RTE. It's definitely possible, but there are just a few gotchas with the order and whatever. Basically Keil and Cube are both trying to control things, and you need to chose one or the other. But if you aren't interested in the HAL, don't worry about that.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf