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
0
votes
0answers
60 views

stm32 HardFault in keil

a few hours ago , i created C++ project in keil i wrote my code and next i download in to my board. when i went debug it , code directly get to HardFault exception ...
0
votes
2answers
66 views

Custom bootloader passing control to application code in STM32

I am trying to understand that if for STM32F405 MCU a custom bootloader is used on the MCU then each of the two projects for the custom bootloader and the application code will have their own 'startup....
0
votes
2answers
66 views

How to upgrade StdPeriph drivers for STM32F103 project [closed]

I have an old project which is built on using "StdPeriph drivers" for STM32F103 MCU and Keil environment. It uses various drivers for gpio, adc, can, dac, dma, i2c, spi, tim, uart etc. As these ...
3
votes
2answers
103 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 ...
0
votes
2answers
66 views

Building NXP QN9020 firmware on GNU/Linux?

I just inherited a project that is based on the NXP SDK samples, (not quite sure which one). It is currently being built with µVision 4; but I would like to convert the build system to use ...
0
votes
0answers
26 views

How to solve STM32CubeMX keil error?

I have installed keil v5 and installed STM32 package. When I start the STM32 project and add the Software components Here is the directory
0
votes
0answers
13 views

Where to find StdPerieph Library for SPL programming with Nucleo-F746ZG?

I want to start SPL programming with Keil software. I did not find the StdPeriph Library for Nucleo-F746ZG board. Where to find the library on the ST website?
1
vote
2answers
74 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?
2
votes
1answer
163 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 ...
0
votes
0answers
37 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
43 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
44 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
116 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
67 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
268 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
78 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
34 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
58 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
319 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
602 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
422 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
328 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
514 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
49 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
669 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
50 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
56 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
166 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
487 views
1
vote
1answer
117 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
261 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
158 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 can I use the Logic Analyzer and Event Viewer in Keil uVision? While in a debug mode, I tried to set up ...
1
vote
2answers
193 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
121 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
180 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
385 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
2k 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
204 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
532 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
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. ...
0
votes
1answer
270 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
307 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
162 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
301 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
134 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
699 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
267 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
4k 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
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 ...