Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
25 views

I need help on interfacing STM32F103C8T6 with MPU6050 on keil uvision

I need help with this piece of code. I don't know what I did wrong, or what I'm missing. It is a simple program to interface the stm32f103c8t6 with a gy-521 (the MPU6050 on it), I was able to get it ...
0
votes
1answer
29 views

Using ulink2 with nrf52840 and keil

I am trying to flash the blink example from SDK v15 into my custom nrf52840 board, I am using pc10056 example. I connected my ulink2 to swdio, swclck, gnd and vcc of my custom board and I can see on ...
0
votes
0answers
42 views

LPC2148 EEPROM Emulation

I want to store some calibration and configuration data in lpc2148 flash memory. Also this data must be loaded into ram at startup. When data is changed i will write it into the flash(using IAP). ...
0
votes
1answer
107 views

Why I can't change variable in it.c?

I have stm32vldiscovery project. I want to use external interrupt by PA0 (user button). When I press the button (PA0), then function EXTI0_IRQHandler must set ldOn equal 0. But ldOn always is 1. ...
0
votes
0answers
42 views

Error: L6218E: Undefined symbol LCD_X_Config in Keil

I encountered a problem working with the EMWIN package in keil, this error message: ...
0
votes
1answer
111 views

Keil Error: L6406E: No space in execution regions - Using STM32F103RE

I have written a sample EMWIN Project in KEIL using its package manager, shown below. When I use the Build Project icon I get the following error: ...
0
votes
2answers
55 views

STM32F103 stuck in PLL Ready Flag Set Loop forever! [closed]

we working on stm32f103ret ic and using CMSIS library for setting GPIO Ports, so i have debuged program in keil v5.14 so in debugign mode it's stuck in line 1043 of systme_stm32f10x.c file which is ...
-1
votes
1answer
31 views

guidance for working with STM32L476RG to complete my project [closed]

I bought a STM32L476RG Nucleo board which has a STM32 Cortex-M4 MCU. I'm trying to program it with Keil but I didn't find any example for my board. How to set up the keil for my board and start ...
0
votes
1answer
31 views

How do I add existing files to a newly created group in Keil u Vision 4

I have struggled with this problem for hours now. I have created a new group in the project structure called inc. I have some existing header files that initialize the hardware in a separate folder ...
0
votes
1answer
215 views

Call member function from interrupt in STM32 [closed]

I have created a new STM32 project using cube. I have changed main.c to main.cpp and enabled ...
7
votes
1answer
564 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 ...
1
vote
1answer
247 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?
2
votes
1answer
250 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 ...
0
votes
1answer
410 views

DS18S20 Temp sensor HAL Library

I am using stm32f303k8t6 nucleo board and Keil V5 IDE. I want to measure temperature with DS18S20 sensor over one wire interface. I have downloaded the HAL library from https://github.com/nimaltd/...
0
votes
0answers
43 views

SoftConsole VS Keil for Smatfusion2 or any other development environment?

In order to program the ARM Cortex-M3 processor which is embedded in the Microsemi FPGA board SmartFusion2, I think there is two possibilities (correct me if wrong): Keil MDK (Microcontroller ...
0
votes
2answers
423 views

Keil : LPC1768 UART : Error: L6200E: Symbol a multiply defined (by main.o and uart.o)

I am learning ARM programming. I've configured uart of lpc2148 before. But there I included entire code in single file. Today I separated them in .c and .h file. But When tried to build, I got ...
0
votes
1answer
47 views

Migrating uVision project within the same controller family

I've have a uVision project which is built on STM32F030C8 microcontroller. I'm using STM32F0xx standard peripheral library in my application. Now I need to migrate to a higher version of the ...
0
votes
0answers
44 views

Cant select NUCLEO-L433RC-P in Keil

I recently received NUCLEO-L433RC-P, which I want to start using with the Keil application. I installed the STM32L4xx_DFP package, but I can't select the board under the "Manage Run-Time Environment" ...
-3
votes
1answer
137 views

can someone explain me this error #error 35 #error directive [closed]

i would like to know if someone can help me on this issue I have two lines nearly the same, the only difference is "!" before the condition ( if .... is good but not if ! ....) error: #35: #error ...
-4
votes
3answers
394 views
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
votes
1answer
248 views

how to create a hex file in keil?

I want to programme at89s52 micro controller...using Keil u5. I searched on youtube googled it tried everything but cannot see the hex file. it says creating a hex file/location but there are no hex ...
0
votes
0answers
124 views

How to use Logic Analyzer and Event Viewer in Keil uVision with TM4C123GXL launchpad

I am using Keil uVision5 for programming TI launchpad TM4C123GXL with TIVA WARE Library. How to use Logic Analyzer and Event Viewer in Keil uVision ? While in a debug mode; I tried to set up ...
1
vote
2answers
186 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 ...
0
votes
0answers
117 views

Microcontroller is being restarted on function return [duplicate]

I have 8051 MCU and I use keil to program it with C. But in some functions when the function ends and it gets to the return line the MCU is restated. For example a piece of my code is ...
3
votes
1answer
157 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. ...
0
votes
1answer
315 views

Placing a key variable in internal flash Memory

I am trying to place a variable named secret_key at location 0x08002000 in STM32Nucleo-board which has STM32L476RG on board with 1MB flash. Question 1: Why am i ...
0
votes
3answers
1k views

keil v5 STM32F4 - Cannot access memory

I am using an STM32F407VGT board with an STLINK V2 programmer in keil IDE. I have downloaded to the board a very simple code: ...
2
votes
1answer
185 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 ...
0
votes
1answer
465 views

MPU9255 without lib on STM32

I have a code on Arduino to read the data from MPU9255 with no libraries, using it direct through I2C. I am trying to do the same on Keil uVision with Bluepill, just to learn how to use I2C with HAL ...
1
vote
2answers
1k 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. ...
0
votes
1answer
256 views

Reason of MOSFET over current?

I have a 3 phase inverter H bridge which has 6 MOSFETs (IPD90N04S4_05) as shown in the picture. I have numbered each leg of a MOSFET as 1, 2, 3, 4. The middle leg (number 2) of the MOSFET has been ...
0
votes
1answer
48 views

Send a command in keil as soon as Breakpint is hit

I want to store a variable every time a breakpoints is hit, while i am running a test. Any idea how can i automate the task?? Or How can we monitor keil via python or any other script language ?
1
vote
1answer
279 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: ...
0
votes
1answer
133 views

Not Able to Simulate STM32 Program In Keil

I just start Working on Stm32F070RBT6.I am using CubeMx to Configure Keil and And Keil uVision5 to simulate.I tried Blinky Example and run it in simulator mode.But The Example Is not working perfectly....
1
vote
1answer
243 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 ...
-3
votes
1answer
133 views

Is function in struct efficient in c? [closed]

I'm using keil for working with arm mcu If I put all function that related to each other to a struct , my code will be so easy to read  I do this and in dis assembly code I saw five line for that But ...
0
votes
1answer
637 views

What is causing my error in executing arm-none-eabi-gcc.exe from Keil uVision?

I'm attempting to set up Keil uVision to build a simple C++ program for the STM32F3 microcontroller. I've downloaded the GNU ARM toolchain on my Windows computer and placed it into the directory ...
2
votes
2answers
236 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: ...
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 ...
0
votes
1answer
104 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
185 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
103 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. ...
0
votes
2answers
1k 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
392 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
163 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
169 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
546 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
475 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 ...