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.

Filter by
Sorted by
Tagged with
6
votes
2answers
5k 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 ...
0
votes
1answer
112 views

TI TM4C1294XL Programming Issue

I am working on a TI's TM4C1294XL LaunchPad with KEIL and I had a problem at the begining. I installed all the drivers for both USB and KEIL then I succesfully upload TI's blinky example to board it ...
0
votes
1answer
247 views

My keil5 doesn't make RTE_Device.h(Startup) in new projects

When I create a new project, I choose my micro controller(stm32f407VG) and check "CMSIS" and "Startup" in Manage Runtime Time Environment, but it doesn't build "<...
0
votes
1answer
107 views

Why does SendChar code of UART different between IRQ and Polling?

Now I'm trying to analyze STM32F103 Cortex-m3's UART code in IRQ and Polling mode. Ans I found 2 types example code such as the below. This is IRQ. ...
1
vote
2answers
2k views

How to use a Linker File with Keil uVision5 ARM?

I am trying to follow a tutorial implementing a custom bootloader on a STM32F072 (ARM M0 Core), which requires remapping memory areas when compiling for both the 'bootload' application and the 'main-...
4
votes
3answers
456 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 ...
0
votes
1answer
189 views

STM32F4 LIS3MDL Magnetometer Hard-Iron Effect Elimination

I am using LIS3MDL 3 axis magnetometer sensor for car detection project. while I am using raw data, I understand that if sensor is exposed to hard-iron effect then this sensor can not read old values. ...
0
votes
1answer
195 views

CMSIS-RTOSv2 - Access out of bounds in RTX RTOS window

During migrating my project to RTOSv2 and RTXv5, I recognize that after a few minutes my program hangs and the messages appear at the RTX RTOS window: ...
1
vote
0answers
604 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
544 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 ...
0
votes
1answer
985 views

How to receive strings using bluetooth module in 8051

I am doing a project on bluetooth based notice board. ?In this project, a user sends message using voice to text app. The message is then received by bluetooth module and sends to the 8051 which ...
1
vote
0answers
544 views

J-Link device selection error in Keil

I try to load a program into STM32L011K4 using J-Link. The mistakes I get and the steps I follow are as follows: PROBLEM-1. J-link could not find STM32L011K4 My Steps: Click options for Target → ...
0
votes
1answer
37 views

Need help for a trouble with Keil C window

I tried to program STM32 with Keil C but when I try to "Set Path" to the library, there is a problem like this: As you can see, the "Option for Target" window doesn't show all everything, there is ...
1
vote
1answer
4k 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 ...
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 ...
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
795 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 ...
3
votes
2answers
231 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 ...
1
vote
0answers
2k views

Bootloader jump to main application problem using STM32 with Keil Uvision

I am developing for the STM32F0 using Keil uVision. I have a custom bootloader loaded running at address 0x08000000. I need the bootloader to jump to my main application which I flash at address ...
1
vote
0answers
2k views

STM32 Shutting down debug session

I'm facing with a problem regarding debug session. When I start debug session, after the configuration of USART2 the debug session is closed. Keil message: Cannot access target. Shutting down ...
0
votes
1answer
708 views

What is the best way to design GUI on ARM cortex-M microcontrollers? [closed]

STM currently supplemented emWin for free, but it got a Win98-ish style which is not very user friendly. Is it possible to use qt to design UI? What are the recommended approaches?
1
vote
0answers
450 views

How to get Keil Trace to work on stm32f4 for debugging?

I'm using stmf429-disc board with Keil 5.I've enabled trace check in hardware debug's trace window and have set trace clock to 168MHz which is the core clock freq. Also enabled the port 31 for rtx ...
1
vote
1answer
404 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
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 ...
0
votes
3answers
1k views

How to implement precise delay function in Keil c51 (for c8051) that waits exact amount of CPU clocks, the number of clocks ranges from 1 to 255

So as the title says, I need exact delays, not too long, ideally in the range of 0 - 350 CPU clocks, but if anything would work in narrower range the absolute minimum range is 20 - 127 CPU clocks. So ...
-1
votes
2answers
1k views

Getting started with STM32F4 with Keil

I bought a STM32F410RB Nucleo board which has a STM32F410RB Cortex-M4 MCU. I'm trying to program it with Keil but I didn't find any example for my board. All examples are for other nucleo boards. I ...
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.
0
votes
1answer
293 views

Why event flag related functions does not work correctly outside of tasks in keil rtx?

As you know event flags are very useful (e.g. let task running),but unfortunately their control functions (os_evt_clr/set/wait) does not work outside of tasks bodies correctly(e.g. in interrupt ...
0
votes
1answer
732 views

“error #28: expression must have a constant value” - with nRF51822 app_twi

I have been attempting to copy the nRF51822 app_twi example for own application in order to get a better understanding of how the HAL works. However, now I have an error now that I don't understand ...
0
votes
1answer
211 views

FRDM-KL25z assembly delay loop causes reset

I'm currently working on a project using the FRDM-KL25Z development board and programming using Keil MDK-lite (5.14a). What we're supposed to do is create a simple traffic light using three ...
1
vote
0answers
474 views

Retargeting printf in Keil on STM32F4-Discovery

I've found lots of ways on the internet to retarget printf to SWO (Single Wire Output) but none worked for me. I'm using Keil µVision 5 which contains a "software component" to retarget printf but ...
0
votes
1answer
601 views

How to print data from register(8051) to terminal(serial monitor)

I have written a program that uses printf statement to write to the TERMINAL program using serial communication. Now, for my actual code, I want to transfer the ...
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 : ...
-3
votes
1answer
513 views

Search for matching string on the other string

I have a problem with strstr function, I receive characters from UART with interrupt & save them in the n length array(buffer array). Then in main loop I check ...
0
votes
1answer
1k views

What is the difference between CMSIS RTOS and Keil RTX?

I have read the articles about them separately, but there are no information about the relation between them. What I understood is that there is CMSIS RTOS that ARM created and Keil extended it to ...
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 ...
0
votes
1answer
2k views

Resolve SWD Communication Failure

I have developed a board with stm32f373VB and I'm trying to test the PCB with ULINK/2 and uVision V4.70.0. I got a SWD Communication Failure, and I can't program the uC. And here is the layout: Any ...
1
vote
2answers
457 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
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
1answer
452 views

Using the STM32 Nucleo L152RE with uVision

I've been messing around with the Nucleo with mbed for the last week or so, but I'm keen to get out of that and back into some lower level C to give me more flexbility. I have the problem, however, ...
1
vote
2answers
563 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
579 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 ...
0
votes
2answers
761 views

Problem with update to Keil uVision 5 with STM32F4 discovery

My dev system doesnt work in Keil with STM32F4 discovery (STM32F407VG). I am using uVision 5. All my drivers are up to date. The code gets compiled without any errors, however, I cant get the Logic ...
0
votes
1answer
906 views

nRF51 DK with Keil uVision. I2C library compilation error

I am working with the nRF DK trying to read a sensor over I2C. I wrote some code in Keil uVision and I finally could read the sensor. However, for some weird reason I can't figure out, recently the ...
4
votes
1answer
542 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 ...
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 ...
1
vote
1answer
508 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
votes
1answer
195 views

led blinking using 89v51

I had written program to blink 8 led's one by one in 8051.it is working fine. Is possible to indicate if any one of the led goes bad? I know through multi meter we can check led is good or bad.Is it ...
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 ...
0
votes
1answer
1k views

Why doesn't the STM32f0 go to the interrupt routine? (in the debugger)

I'm trying to execute my project in the debugger but it doesn't go to the interrupt routine. the project is correct and it works without the debugger nicely. How do I use it? Ok, here we go! at ...