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.

13
votes
3answers
7k views

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.
12
votes
2answers
5k views

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 ...
8
votes
1answer
5k views

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 ...
8
votes
1answer
6k views

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 ...
7
votes
1answer
576 views

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 ...
7
votes
2answers
8k views

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 ...
6
votes
2answers
3k views

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 ...
6
votes
2answers
4k views

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 ...
6
votes
1answer
2k views

STM32 interrupts and C++ don't go well together [duplicate]

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 ...
4
votes
1answer
12k views

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 ...
4
votes
1answer
524 views

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 ...
4
votes
3answers
403 views

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 ...
3
votes
2answers
64 views

How to solve Keil compiler 'Error: L6218E: Undefined symbol' on STM32

I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the ...
3
votes
1answer
1k views

Why I cannot to choose some parts as breakpoint in the Keil?

Why I cannot to choose some parts as breakpoint in the Keil? please consider to these pictures: If you consider to some parts that I determined, you will know that I cannot to select those as a ...
3
votes
2answers
7k views

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 ...
3
votes
1answer
163 views

Can't run code in Keil for STM32L433RCT6P on NUCLEO-L433RC-P

Recently at Embedded World 2018 in Nuremberg I got, for free, NUCLEO-L433RC-P with STM32L433RCT6P chip onboard. I want to broaden my knowledge in STM32 chips. Before, I did simple stuf on STM32F4. ...
3
votes
1answer
1k views

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 ...
3
votes
2answers
213 views

Micrium Rtos - OSTimeDly not working

I have initialized the Micrium Rtos and there is no error when I compile the project but there is a OSTimeDly function in my code that is not working. I should notify that when I give the first ...
2
votes
4answers
19k views

How to implement delay functions in Keil ARM MDK [closed]

How to implement delay function in Keil ARM MDK that waits given time in microseconds that can be recompiled to any reasonable clock speed defined in Keil project settings ? And all of this without ...
2
votes
2answers
255 views

FatFs f_write not working in LPC1788 Timer ISR

I’m using LPC1788 MCU with KeilV5 compiler. I Have a Timer ISR in which I read a value form specific ADC channel and write it into a SD-Card using FATFS library. Here is my Timer ISR code: ...
2
votes
1answer
11k views

Using CooCox as an alternative to Keil MDK-ARM - any limitations?

A very popular and advertised tool for programming ARM microcontrollers is Keil MDK-ARM. The evaluation version can be downloaded here. However there is a code-size limitation of 32 kB for using ...
2
votes
1answer
67 views

single or multiple interrupt handlers in stm32

I am coming from 8-bit world to 32-bit world specifically stm32f103. At present I am only doing study and discussion with my fellows to know the major differences in the two worlds and also to select ...
2
votes
1answer
270 views

STM32F4 - DMA Transfer Error with ADC

Code here is configuring DMA2 for transferring 160 samples each from two analog channels from ADC1 to memory. The ADC,DMA,NVIC etc. seem properly configured but for some reason I am getting transfer ...
2
votes
2answers
1k views

Initialize ARM registers to specific value via Inline assembly

I have a need to initialize the ARM registers of my ARM7TDMI development board to a specific values using inline assembly. For example currently I do something like the following : ...
2
votes
2answers
5k views

Timer interrupt on stm32f103

I'm having a little suprise with timer interrupt on update event. I thought that if timer is configured to count up, update event will occure just after the overflow, i.e. when CNT will become equal ...
2
votes
2answers
2k views

Why doesn't my program execute (work)?

I have bought this board for working on Cortex-M0 series microcontrollers. its MCU is STM32F030F4P6. this is the board: and its schematic: I used STM32CubeMX for configure the MCU and then used MDK-...
2
votes
1answer
2k views

Init code for reading and writing SD card with MCS51?

Do you know how to interface SD card with MCS51, AT89S52 with SD card and code example in Keil if there's any... Thanks for the info...
2
votes
1answer
190 views

How to interpret the values sent by an MPU-9255?

Well, I am using this holiday in Brazil to improve my skills in C. I have learned how to use I2C and how to communicate with the MPU9255 (with help from this question). The last trouble I am facing is ...
2
votes
0answers
1k views

How can I use mbed TLS library in my ARM project in Keil IDE?

I want to do an RSA encryption/decryption using my AT91SAM7S256 ARM MCU. After googling I found mbed TLS library. I download it on my Windows and extracted it in the directory of my project. I was ...
1
vote
3answers
2k views

How can I find the current position of the stack without a stack pointer in micro controller programming?

How can I find stack position without using stack pointer you were given with upper bound of stack and depth of stack using embedded C or assembly language for 8051. Can anybody please help me finding ...
1
vote
1answer
284 views

Chip Erase vs. Sector Erase

In Keil IDE Software there are two ways to erase chip before program it. What does do "Erase Sectors" mode? When to use "Erase sectors" mode and when to use "Erase Full Chip" Mode?
1
vote
1answer
270 views

Kiel debugger exits automatically

I am using Keil uVision5 for programming TI launchpad TM4C123GXL. The Keil work perfectly fine for Building and flashing the programs (examples projects of Tiva Ware). But when I start the Debug ...
1
vote
1answer
2k views

How do I get a chinese nRF51822 development kit running examples with an ST-link, Keil uVision?

I've been working at this for days with not much information out there to assist me in fixing my issues, so I figured I'd make a post here. I'm using a cheap chinese nRF51822 module and motherboard ...
1
vote
2answers
522 views

ESC not starting the motor

I have a 20A ESC, I have connected it to the brushless dc motor as shown in picture. When i apply a 1ms + signal with rate of 50hz it produces beeps but doesn do any thing. i have connected the wire ...
1
vote
2answers
48 views

Task Execution time measurement on Keil for STM32F103

Is there any builtin feature available in Keil uVision to measure execution time of a function or task for STM32F103?
1
vote
2answers
187 views

Program counter goes to the end of code and 8051 Restarts

I have an 8051 MCU which I use keil to program it with C. My problem is that the micro-controller restarts at the end of some functions while they should return. Using a debugger I tried to check it ...
1
vote
2answers
2k views

How to set up Keil Logic Analyzer to read specific pin?

How can I set the Keil uVision 5 Logic Analyzer so that I can read the status of a specific pin, example high or low? I have read the official docs here, however it does not say anything of the sort. ...
1
vote
2answers
1k views

Function called in ISR and Overlay Directive -Keil / 8051 core

My C code has an ISR, where a decision has to be made to execute a particular function "A". Now I know that its not good to run a function in an ISR. But in this case of my application, I do not see ...
1
vote
1answer
116 views

How to update MCU application

I'm currently developing with Keil µvision5 and STM32CubeMX on a Nucléo Board L053R8 (LQP64). Now I would like to transfer my program to my prototype board which has a STM32F051K6T8 (LQP32). Do I ...
1
vote
1answer
3k views

MicroSD card reading problem with an STM32 chip

I am practicing the microSD card on a PCB board with the STM32F405 chip. The testing program is generated by STM32CubeMX. The code is very easy to understand. The problem is that an error happens ...
1
vote
1answer
392 views

AT89S8253 and Keil ULINK2 debugger connection?

I'm trying to connect AT89S8253 with Keil ULINK2. But the documentation is nil about 8051 controllers. As per the web, the pin connection is this. ref: http://www2.keil.com/coresight/coresight-...
1
vote
2answers
562 views

How to use characters in strings outside of the printable ASCII range?

I am trying to create a string with characters outside the ASCII printable range. I am using an STM32 microcontroller using the µVision IDE with the Keil compiler. The documentation allows various ...
1
vote
1answer
758 views

How to use a CAN database .dbc with STM32F using Keil Uvision?

I am a beginner in software / firmware development, I've only just got away from Arduino and onto STM32F105. I am using Keil Uvision to develop my code. I have built a simple CAN Bus gateway using 2 ...
1
vote
1answer
2k views

Standard Peripheral Library and HAL drivers together in Keil

it seems that: ST has moved to Cubemx code initializer and generates only HAL drivers Keil has introduced DFP and Manage-Run-time-Environment which use HAL drives although ST's cubemx and Keil's ...
1
vote
2answers
449 views

Keil Dialog Semiconductor

I'm trying to make a project with keil uVision 5, for DA14580 (Dialog Semiconductor). http://www.keil.com/dd/chip/6853.htm But in Select Device dialog there's no device from Dialog Semiconductor. The ...
1
vote
1answer
497 views

What does the “OPT” build target stand for?

When exploring the example projects, I've noticed that the regular Blinky project has 3 targets. I think I understand what Flash and RAM stand for (it's all a bit confusing), but I haven't seen "OPT" ...
1
vote
1answer
286 views

Interfacing keypad with 8051 microcontroller in Proteus

I am trying to simulate this project in Proteus using keil C. We are basically interfacing 4x4 keypad with 8051 microcontroller. This is the code for the project: ...
1
vote
0answers
561 views

How to use functions from math library in Keil uVision MDK ARM?

I want to use log() function (natural logarithm) in one of my calculation of Temperature using the Stein Hart Equation. Microcontroller used is STM32L476 . ...
1
vote
0answers
490 views

Keil - Configuring Logic Analyzer tool

I am working with the Keil compiler in a project using the STM32F769I-DISC1. For debugging I use the ST-Link provided by the board. The idea is to use the on-chip DAC using TIM6 for triggering the ...
1
vote
0answers
106 views

Defining a variable in the bit-banded area

I wonder to know is there anyone who define a variable in bit-banded region in c programming language for cortex-M3 particularly LPC17XX. I have followed the compiler attribute for Keil (...