Questions tagged [keil]

The MDK-ARM is a complete software development environment for Cortex™-M, Cortex-R4, ARM7™ and ARM9™ processor-based devices. MDK-ARM is specifically designed for microcontroller applications.

The MDK-ARM is a complete software development environment for Cortex™-M, Cortex-R4, ARM7™ and ARM9™ processor-based devices. MDK-ARM is specifically designed for microcontroller applications.

MDK-ARM Microcontroller Development Kit

177 questions
17
votes
3 answers

Minimal code required to startup a STM32F4?

Which is the most efficient way/minimal code required to startup a STM32F4? The startup files that come from ST seem to have a lot of unnecessary code.
John
  • 1,361
  • 2
  • 12
  • 23
13
votes
2 answers

How can I use a build server with Keil uVision4 (MDK-ARM), script a build, use a makefile?

I would like run daily builds, or check-in/commit triggered builds of Keil MDK-ARM based projects. So far I've gotten things going with the batch file feature of the IDE. This does require you to build the project at least once with the IDE, then…
rmaVT
  • 211
  • 2
  • 7
10
votes
2 answers

What's the difference between setting SysTick Interrupt in NVIC and using it as an exception?

I'm using an STM32F303 MCU and I've noticed that the SysTick can be set up to cause an exception, which seems to mentioned quite often in various User Guides. This way, it will have a priority level higher than regular Interrupts. On the other hand,…
AndrejaKo
  • 23,261
  • 25
  • 110
  • 186
9
votes
2 answers

Move embedded programming from Keil to Linux

I'm currently using Keil to develop for an STM32 discovery board. My project is close to finished, and I'd like to move to a Linux based building environment. I've been using the preconfigured flashing tool and the STLink drivers for windows to…
Lg102
  • 479
  • 1
  • 4
  • 16
9
votes
1 answer

Bug in Keil ARM compiler with interrupt handlers and C++?

I have a problem with writing interrupt handlers in Keil ARM compiler for LPC1114. When I write program in C++ and specify --cpp compiler option all code from interrupt handlers disappears, it is replaced with infinite loop. I wrote simple program…
x4mer
  • 986
  • 1
  • 9
  • 13
9
votes
1 answer

STM32 interrupts and C++ don't go well together

I set up TIM3 to fire an interrupt in my project and it just wouldn't work. I tried everything I could and still couldn't find whats the problem. Then I created a clean project and copy/pasted only the code that sets up TIM3 and interrupts and it…
John
  • 1,361
  • 2
  • 12
  • 23
8
votes
1 answer

What does [WEAK] mean in STM32 startup assembly code?

I was reading the STM32F407 startup file in Keil software to gather some information. I faced this problem: What is the [WEAK] symbol used for? A part of the code that this symbol has been used in is: Reset_Handler PROC EXPORT …
Amin Rostami
  • 889
  • 3
  • 12
  • 29
8
votes
1 answer

Drawing on 8x32 LED matrix with 74HC154

How do I send a pattern into an 8x32 LED matrix? I'm using the AT89S52 microcontroller with a 74HC154 4-16 line decoder, programming in C with the Keil IDE. I've done vertical scanning, but am stumped at the next step. I will include the schematic…
Rick Ant
  • 536
  • 2
  • 10
  • 24
6
votes
2 answers

How to calculate overflow in ARM mathematical operations

Consider: LDR r0,=(1:SHL:31) ; this means r0 contains = 2^31 = 0x80000000 ADDS r0,r0,r0 ; which means r0 = 0x80000000+ 0x80000000. Firstly, I know it is an overflow from the looks of it, but how do I exactly calculate it? Do I use the brute-force…
Meep
  • 375
  • 1
  • 6
6
votes
2 answers

STM32 RTC freeze when power is off

I am using an STM32F745VGT6 user board with Keil µVision 5. I want to use the internal RTC calendar with the internal clock (LSI). My question is: first power on clock start 02:00:00 then time is going. For example, when time is 02:05:00 suddenly I…
O.Blue
  • 533
  • 6
  • 11
5
votes
1 answer

Writing bootloader for STM32 by C language in Keil

I want to write a bootloader for my MCU. It's an STM32F103RET6. I searched for information about writing a bootloader for it, but I couldn't find anything. Now I have these questions: Where can I find any information (website, book etc.) about…
Roh
  • 4,598
  • 6
  • 41
  • 86
4
votes
3 answers

smt32 f10x invalid characters over uart

I'm currently working on a quadcopter using the STM32F103. Instead of using the provided Std Periph Driver which is big I'm creating my own Periph Driver which is object oriented which also helps me understand the processor better. I've gotten to…
kelvinmac
  • 90
  • 4
4
votes
3 answers

STM32, Keil and *** error 65: access violation at 0x60000000 : no 'write' permission

I tried to run LCD software in Keil for STM32, but I got *** error 65: access violation at 0x60000000 : no 'write' permission Do you know how to solve that error ? I saw that I can create a MAP, but it didn't work MAP 0x00000000, 0x70000000 READ…
Rick Ant
  • 536
  • 2
  • 10
  • 24
4
votes
1 answer

Automatically upload binary file to nucleo after compiling in Keil

I bought Nucleo F411RE and I'm using Keil uVision 5 as IDE for programming it. To download program to Nucleo, you simply copy it in the virtual nucleo drive: Of course, I'd like to have this task automated. To do so, I tried to use the Keil project…
Tomáš Zato
  • 1,044
  • 4
  • 21
  • 40
3
votes
1 answer

Writing parameters into Code memory at Run time during Initializations - 8051

I need to make this possibly. I am using keil IDE and the AT89c51RD2 MCU. At initialization, a function will be called to derive about 1500bytes. I want to write this byte to code memory (byte by byte), because it will never change through the…
Paul A.
  • 1,052
  • 5
  • 18
  • 29
1
2 3
11 12