Questions tagged [keil]

Keil IDE and compiler tools for ARM and other embedded microcontrollers. This includes: ARM Development Tools C166 Development Tools C51 Development Tools C251 Development Tools Debug Adapters Evaluation Boards

Filter by
Sorted by
Tagged with
-3 votes
0 answers
13 views

Seek a stm32+ max30102 blood oxygen module code [closed]

Buy modules send routines that are too long and unfair for a good code Buy modules send routines that are too long and unfair for a good code
0 votes
0 answers
32 views

Utilizing Pop to return

This is a re-update to the post. In the comments of the code, the "removed" comment represents the error that has been changed, and a comment with "new" means that it replaced the &...
-3 votes
0 answers
23 views

Need a sample code for max30100 pulse oximeter by STM32F4 [closed]

I want to work with MAX30100 and discovery stm32F4 board in STM32CubeMx and need some sample code. could you help me please?
0 votes
0 answers
17 views

LPC1768 Programming in keil

I have a problem with keil i write a simple peace of code used to turn ON and OFF All GPIO2 in LPC1768 but it return 110 Warning! Here is my Code: #include <LPC17xx.h> void delay_ms(unsigned ...
  • 1
2 votes
0 answers
55 views

"No target connected" in ST-Link Debugger after accidentally removing USB connected to computer without safely ejecting

I am using the Nucleo STM32F446RE board and programming in C in the program Keil for a homework project. Before I start writing the code for any project I would always press the 'configure flash tools'...
  • 29
0 votes
0 answers
26 views

Virtual Port Com C++

Good afternoon. I am creating a project in CubeMX. I select the Virtual Port COM and configure the code in Keil. I open Keil and change the type of main to C++. After that, I try to compile and throws ...
0 votes
0 answers
16 views

Integrate CPPUTest in Keil

I am a fresher in CPPUTest and I already have a project ready in Keil. Now, I need to test the project in Keil using CPPUTest. Can anyone help me on how to integrate and use CPPUTest on Keil in ...
0 votes
0 answers
83 views

Flash Download Failed in Keil uVision 5

I'm trying to load an LED sequencing program onto my STM32F446RE, but every time I build the program, I get this error. .\Objects\Lab #5 LED Sequencing.axf: error: L3906U: Malformed via file '.\...
0 votes
0 answers
69 views

How to Implement a Hall Sensored BLDC Motor Driver using STM32?

I want to implement a BLDC Motor commutation using STM32f446RE with hall sensor interface. I want to do it with STM32Cube. I know that I should config TIM4 in Hall Sensor Mode and 3 channels of Tim1 ...
  • 13
0 votes
1 answer
63 views

Bootloader Jump Function. How to Jump to the right Address?

I am trying to create a bootloader that jumps to my application code on a MKE02Z32VFM4 (KEO2 Series from Freescale). I am working with the Keil IDE 5 and the Armv6 Compiler v6.16. After Issuing the ...
  • 31
0 votes
0 answers
11 views

migrating from lpc54114 to lpc54102 on custom board proj

I am working on migrating from an nxp LPC54114 to a LPC54102 on a custom board. I am a newbie and this task seems a little bit daunting for me. The project has multiple dependencies, and also is using ...
0 votes
0 answers
66 views

Program runs under Keil uVision but not under STM32CubeIDE

I have a small program running on stm32wb55. It tests the TIM2 timer with a delay function called wait_us(). The program runs correctly when I compile it with Keil uVision 5, but when I compile it ...
  • 187
1 vote
0 answers
33 views

STM32f407VEt6 + ethernet + uip + dp83848 how can I do ping project?

Good day! I am writing a project for stm32f407vet6, the essence is simple - exchange over ethernet between the board and the upper level. I tried to use the LWIP stack, but the board does not start ...
0 votes
1 answer
70 views

Why timer interrupts breaks ARM CMSIS DSP functions on STM32L4?

I have a simple function that performs mathematical stuff on some data. It works perfectly fine. However, if TIM2 interrupts are enabled, the functions never completes. Code is being stuck at some ARM ...
  • 136
0 votes
0 answers
36 views

Unable to access main during debug mode on uvision / no problem with mcuxpresso

This might be a newbie question, but I am going crazy already haha. symptom I am having an issue with the lpcxpresso54102 Dev Board, where I am not able to access main.c during debug session, but if ...
1 vote
1 answer
97 views

STM32L072 USB Flash Drive

I am working on an embedded C project in Keil µVision. Part of the project is to make the uC detect and operate as a USB flash drive. I am using a STM32L072 that is connected to external SPI Flash via ...
0 votes
1 answer
165 views

I want to program STM32 using keil uVision on a macbook with an m2 processor. How to do it and is it possible at all?

I have keil uVision on Windows using Parallels. I have STM32(a lot of different) and ST-LINK. So, I want to firmware my program from a macbook with m2 processor. Can I do it? I tried to find the ...
  • 23
0 votes
0 answers
28 views

ADuCM360 Microcontroller Hard Fault

We are Producing a device based on ADuCM360 Microcontroller. We have bought 200 PCs of ADuCM360 from China distributors and mount all of them on PCBs. After programming them I discovered that none of ...
0 votes
0 answers
67 views

Using LDR assembly instruction for ARM v7 on Keil Uvision

I am trying to write a simple program to find the largest integer in an array. I actually got this code from a textbook so it's not my own, but anyways when I simulate it in keil simulator it doesn't ...
0 votes
0 answers
130 views

Use daplink with stm32

I bought CMSIS daplink with stm32f103c8 blue pill, and I'm using Keil microvision for programming stm32, when I try to download code to stm32, program shows error "no st link detected", can ...
  • 89
0 votes
0 answers
56 views

C preprocessor, how to change #define value by another #define?

I would like to change #define value according to another #define enabled. Not #if ... #else, not #undef. example: #define xxxx_ScanNumber 5 ..... // if consumeTimeTooMuch == 1, // then change ...
0 votes
0 answers
117 views

Access to register of unclocked peripheral at 0x40000000 cause BUS_FAULT [U2_CM3CORE]

I'm working with STM32F103C6, HCSR-04 Ultrasonic sensor and LCD display. I simulate that in Proteus Professional 8, when I activate Timer 2 in STM32, there are big problems with frequency, frequency ...
  • 89
0 votes
1 answer
92 views

CMSIS and HAL at one project integrating CMSIS and HAL

I am wondering, is it possible to add CMSIS and HAL libraries at the same project in KEIL... based on my knowledge I added CMSIS libraries in different folder but in compiling I got these errors... ...
0 votes
0 answers
49 views

Reading value from HC SR04 in LM016L

I'm programming STM32F103C6, and I'm using Keil Microvision with Proteus Professional 8, I have problem with reading value from HC SR04 Ultrasonic sensor in LCD(LM016L), the code is below #define ...
  • 89
0 votes
0 answers
47 views

How to display a dynamically allocated array in the ARM KEIL 5.36 debugger?

I can easily show static arrays in watch window, but for dynamic arrays KEIL shows only value at the pointer. Is there any way to specify watch window command for that or maybe cast dynamic array ...
  • 109
0 votes
1 answer
44 views

How to enter debug mode without reloading the hex file?

For keil, each time when I select the menu "Debug --> Start/Stop Debug Session", the IDE would do the following actions: reload the hex file into the target device's flash reboot the ...
0 votes
0 answers
16 views

Logging actions - Keil Microvision with Proteus Pro

I work with STM32CubeMX, Keil Microvision and Proteus Simulator, I use C programming language in Keil microvision, how can I print value of some variable and display that value in Proteus log window, ...
  • 89
0 votes
0 answers
26 views

i couldn't step to the main in keil 5 during debugging

i write simple counter program and compiled successfully when I try to debug it, the debugger cursor is not stepping in to the main program[[enter image description here](https://i.stack.imgur.com/...
0 votes
1 answer
36 views

How to set the breakpoint when acessing the memory area(write) on the Keil ARM MDK

The hardfault exception sometime occurs during the system is running. Because the LR in the stack area is overwitten by a garbage data. So I want to set the breakpoint when the LR in the stack is ...
  • 97
-3 votes
1 answer
96 views

what operations in the __main of KEIL

Before running main() function in users' application, it will IMPORT __main and execute __main, so I wonder that what does this function do? __main copy rw variables from flash to ram? initialize bss ...
-1 votes
1 answer
54 views

I can't download my code on my ST Nucleo F103RB

I bought recently a ST Nucleo F103RB, but I have a problem to download my code on the board. I'm using Keil µVision for the developement. Here a screenshot of the configuration for the debug : ...
0 votes
0 answers
14 views

Incrementing variable based on IR sensor

I'm trying to create a system using a MSP432 and IR sensor that increments every time the sensor is triggered. This variable then needs to be displayed on a 16x2 LCD. I currently have the IR sensors ...
0 votes
1 answer
65 views

Tensorflow Lite Micro package in Keil custom MCU platform

I have tried to use tflite default package in Keil MDK environment, but I am facing some compiling problems. project code My Device: Armv8-M Mainline based device My TFlite runtime environment: ...
0 votes
0 answers
251 views

PWM input capture and repeat. STM32F4

guys. I generated PWM signal with timer TIM1. I want get this PWM from TIM1 with timer TIM2 and repeat it on the some GPIO pin. I used Standart Peripheral Library. PWM has generated on pin PA8 with ...
  • 1
0 votes
0 answers
234 views

Inline assembly: Saving the stack pointer on ARM

I'm working on building an RTOS from the ground up and getting stuck on some of the inline assembly used for the context switch. I have a thread object that currently stores the stack pointer for that ...
0 votes
0 answers
13 views

Keil 5 doesn't build empty project

After reviewing a lot of the same type of video instructions, I decided to build my first project in Keil. Downloaded the library for the corresponding controller (STM32F103C8T6). Connected CMSIS-Core ...
0 votes
0 answers
161 views

How to disable GCC warnings for multiple library files in Keil?

I know that you can write a #pragma directive at the beginning of the file to disable warnings, for example: #pragma GCC diagnostic ignored "-Wmissing-variable-declarations". But this ...
  • 1
0 votes
0 answers
60 views

STM32WB55: I2C RXNE flag cleared prematurely

I am running an assembly language project in Keil uVision 5. I am trying to read the WHO_AM_I register of an attached accelerometer through I2C. When I send the repeated start for the read operation,...
  • 187
0 votes
0 answers
16 views

I need to use the value stored into a10[1] and use that as an index into another array in Keil

Here is my instructions: Set a “Result” register value equal to the result of the behavior described here: index0 = a10[0]; index1 = a10[1]; Result = Result + a10[ index0 ] + a10[ index1 ] * a10[ ...
-2 votes
2 answers
55 views

How to Compare the Numerical value of the Second-lowest Byte of L to the Second Lowest Byte of M

How to Compare the Numerical value of the Second-lowest Byte of L to the Second Lowest Byte of M? I have a pseudo-random number generator, but I am unsure how to sort the bytes. I need to find the ...
0 votes
2 answers
163 views

Unexpected characters at end of line

I Writing a code that loops 1000 times in assembly language, although I keep getting these errors: main.s(48): error: A1137E: Unexpected characters at end of line main.s(53): error: A1137E: Unexpected ...
0 votes
0 answers
95 views

Show complete commands during build in Keil uVision

When doing a build in Keil uVision v5.37 and ARM Compiler v6.13 (armclang), the build output window only shows: compiling file1.c... compiling file2.c... Is there a way to show the complete compiler ...
  • 967
0 votes
0 answers
51 views

Error #5: cannot open source input file "stm324xx_gpio.h" : no such file or directory on keil mdk

I am having a problem with this error, I am new to Keil MDK and I am facing this problem with multiple files or directories, is there any way to resolve this problem?
  • 111
0 votes
0 answers
157 views

why UART is not working in STM32 nucleo 144 Board?

I am using Nucleo L552ZE-Q Board and Realterm terminal,but after debugging, terminal is blank.Here with I have attached the code.It shows no error and no warnings,Led is toggling.I am using LPUART1,...
  • 1
0 votes
1 answer
280 views

Unreset GPIO Pins While System Resetting

Is it possible to unreset some GPIO pins while using NVIC_SystemReset function at STM32 ? Thanks in advance for your answers Best Regards I try to reach NVIC_SystemReset function. But not clear inside ...
  • 1
0 votes
0 answers
113 views

Getting C202 and C141 errors in Keil

I've been trying to write c code in keil to convert string to binary. While compiling, the code is running into C202 and C141 errors. I'm new to keil and I've no idea regarding those errors. The ...
0 votes
0 answers
140 views

i have a problem while using FreeRTOS with keil

i am using keil version 5 and i install all the packages that needed to run freeRTOS on it. but it always gives me an error with portmacro.h here is some error lines: C:/Users/Mohamed Radwan/AppData/...
1 vote
1 answer
119 views

Basic question about header file inclusion

I'm creating a new project in keil to learn how to add files and headers and link them properly. I need some help in understanding the optimised way to add header files. I've a main.h file, in that I'...
0 votes
0 answers
142 views

STM32F407ZTE6 LwIP problem with DP83848 - does not ping

I have one STM32F407ZTE board with DP83848 as PHY. I want to use STM32cubeMX as initialization code generator. STM32F4 version is 1.27.1. I try with and without RTOS v2, but I can get ping. enter ...
  • 1
0 votes
0 answers
496 views

use of undeclared identifier error in libraries

I have made a project in Keil for the stm32f4 discovery board. I have added all the necessary libraries and when I compile my project, I do get the error "use of undeclared identifier" in ...

1
2 3 4 5
17