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

Problem with the output of the engine control signal

Program to control three DC motor levels and display speed (RPM) on a 7-segment LED using 8051. Use external interrupt 0 to read pulse from encoder. When compiling on keil C there is no error, but ...
user avatar
  • 3
0 votes
2 answers
81 views

Keil C & 8051: DC Motor Speed Control & Display [closed]

I am writing a program to control three DC motor levels and display speed (RPM) on a 7-segment LED display using an 8051. I use an external interrupt to read pulse from encoder. When compiling, the ...
user avatar
  • 3
3 votes
3 answers
229 views

Measuring capacitance with STM32

I'm trying to measure capacitance with my STM32L053-Disco. I'm using the ADC and one output pin to charge the capacitor. I tried measuring the time it takes for the capacitor to charge to 62.3%. The ...
user avatar
0 votes
0 answers
25 views

Does flashing firmware on STM32F051x upsets program just before NRST is pulled low from ST-LINK?

I am wondering does is the main program said to be running smoothly till the last instruction before NRST is pulled low by ST-LINK? I have a converter running that is switching at 66kHz and I can see ...
user avatar
  • 127
0 votes
0 answers
65 views

CAN bus wrong bit rate calculation - stm32f107 keil drivers

I am using keil drivers to use CAN bus on an STM22F107. The method below is used to set CAN baud rate. ...
user avatar
  • 113
2 votes
0 answers
100 views

STM32F107 CAN software driver does not work

I am using ST drivers to use CAN bus on an STM22F107 according to the code below. It does not work. The code is as below and is available here. ...
user avatar
  • 113
0 votes
0 answers
15 views

Debug Network layer in uVision 5.23

For some reason my application running on the MDK network stack is not working properly. I want to debug network components. Through some browsing, I found out we can use Event Recorder feature of ...
user avatar
  • 11
0 votes
1 answer
109 views

Can I download my code from Keil uVision5 or STM32CubeIDE to the STM32F103C6T6 board via FTDI?

Can I download my code from Keil uVision5 or STM32CubeIDE to the STM32F103C6T6 board via FTDI? If yes, then how should I do it? I can't find anything that helps online. If there is no method to do so ...
user avatar
0 votes
0 answers
32 views

RL-TCPnet crash when send and get at the same time

I'm working on a web service with RL-ARM libraries. I want to send some parameters with AJAX as .cgx file and at the same time I want to create a socket and then send a lot of data to the destination. ...
user avatar
2 votes
0 answers
53 views

LPC1788 multichannel ADC DMA

I have problem with reading LPC1788 ADC pins in multichannel with DMA. Here is the procedure I have followed. I use Keil, initialized UART 0 peripheral, have set all of the ADC pins to be analog, set ...
user avatar
  • 59
-1 votes
1 answer
164 views

How to repeat a task every X ms on STM32F303VCT6 (C++) using timers/interrupts?

My aim is to do the following: 1- Repeat a task every 250ms and when the button is pressed the task is repeated every 500ms, and if the button is pressed again go back to every 250ms. 2- I plan on ...
user avatar
0 votes
1 answer
54 views

TLE9879 SoC debug interface only works when under-volted

I'm using a TLE9879 BLDC Shield as a development kit, that is, I'm programming the SoC itself rather than controlling it with an Arduino. The board has a Cortex 10 pin SWD interface, to which I ...
user avatar
0 votes
0 answers
305 views

Receiving garbage values in USART

I wrote a code in bare-metal mode and USART communication in Keil on stm32f107. But it keeps sending garbage while I expect it to send me "HI" repeatedly. Here are my steps: Wrote an ...
user avatar
  • 19
6 votes
2 answers
2k views

How to calculate overflow in ARM mathematical operations

Consider: LDR r0,=(1:SHL:31) ; this means r0 contains = 2^31 = 0x80000000 ADDS r0,r0,r0 ; which means r0 = 0x80000000+ 0x80000000. Firstly, I know it is an ...
user avatar
  • 355
0 votes
3 answers
120 views

C preprocessor problem in KEIL [closed]

Here is my code: ...
user avatar
  • 321
0 votes
0 answers
34 views

lpc2148 IDE support windows

I have been trying to learn ARM development and I saw a recommendation for the lpc2148 as a good learning option, so I bought a development board. The article I read must have been very old though, ...
user avatar
  • 19
1 vote
1 answer
156 views

PA15 doesn't work as GPIO even after Enabling GPIO_Remap_SWJ_JTAGDisable

My MCU is STM32F107. My main program works fine with using different peripherals and function. In my program a very simple task makes me crazy. I need to use PA15 as GPIO (The simplest task:) ) I ...
user avatar
  • 321
0 votes
1 answer
155 views

STM32F103C8 resets after a couple of hours

I have an STM32F103C8 board and my program is switching the GPIOB1 with frequency of 500 kHz. At first, microcontroller runs the program perfectly, but the main problem is that MCU resets after a ...
user avatar
0 votes
1 answer
212 views

Expected a "," Error in keil

Error: ../Src/main.c(107): error: #253: expected a "," code part: uint8_t maskPWR_MGMT_2[2] = {0x6c, 0b00000111};//6c
user avatar
1 vote
1 answer
588 views

STM32F103 Debug Error - Cannot Access Target

Im having problem at debugging, tried to load basic led toggle program for test purpose and its work fine but when i tried to debug it, im getting " Cannot Access Target, Shutting Down Debug ...
user avatar
  • 69
0 votes
2 answers
1k views

Keil Error: Not a genuine ST Device! Abort connection

I am using ST-link V2 for programming/ debugging my STM32F103C8t MCU using Keil. So the problem is that when I try to program the STM32 controller it shows a popup error Not a genuine ST Device! Abort ...
user avatar
  • 76
0 votes
0 answers
73 views

stm32 keil cannot assign array in interrupt

I can not assign my array in interrupt. My main.c function is like this: ...
user avatar
0 votes
0 answers
76 views

problem with capacitance measuring with stm32f103RE

I'm trying to measure a capacitor's value and send it to the uart terminal. I'm using stm32f103re and I'm using registers. I attached the circuit I'm using and also my code. the code is working now ...
user avatar
0 votes
1 answer
94 views

problem with ili9341 touch interface using stm32f103ret6

I successfully used a HAL library to drive a TFT ili9341 LCD with xpt2046 touch driver and tried drawing a line on the LCD by touching the LCD and the code was perfectly accurate then I rewrote the ...
user avatar
0 votes
1 answer
119 views

problem with using ili9341 TFT LCD with stm32f103RE

i successfully used a HAL code i found on Github for driving an ili9341 TFT LCD with SPI then I rewrote the code with registers. Part of my code works and i am able to fill pixels with color but when ...
user avatar
0 votes
0 answers
416 views

STM32L476RG ADC bare metal

I bought STM32L476RG nucleo to learn bare metal programming. Im following a online course on udemy and so far i have suceeded with everything except hitting a wall now with ADC. First of all i have ...
user avatar
-1 votes
2 answers
83 views

Why PORT D pin 15 LED not turning on, in STM32F407 Discovery

I am trying to turn on a LED for STM32F407 Discovery which is PORT D pin 15, as shown in the diagram below and the link attached to it. I am using Keil and an ST-Link debugger setting as shown below. ...
user avatar
  • 127
1 vote
0 answers
40 views

Change DMA memory content

I need to change the DMA content(the values of the memory) for my application(doing animation on ws2812b strips). DMA circular mode DMA with PWM generation To further clarify, here's code for a ...
user avatar
0 votes
0 answers
28 views

stc12c5a60s2 similar code but typed in different PC not working in keil

Is there any reason why the code typed in my friends pc(bottom) works properly while the code I typed in my pc(top) doesn't? Both doesn't seem to have any error when compiled on my PC, but when ...
user avatar
0 votes
0 answers
126 views

STM32f103 ADC 1 strange behavior

I'm currently working on a project which uses the STM32f103c8 blue pill to read analog signals from a 3 current sense amplifiers. I noticed that the values were correct most of the time but would ...
user avatar
1 vote
1 answer
469 views

ST-link doesnt run the MCU after programming and reset in KEIL 5.33

I have updated my KEIL from 5.15 to 5.33. In KEIL 5.15 I set Reset and Run option in Flash->Configure Flash Tools->Debug( Selecting St-link) Settings->flash download and after programming my ...
user avatar
  • 321
0 votes
0 answers
106 views

Convert decimal fraction to binary number

I have this code that works for me to convert a double into a binary representation, I want to know how to convert the Fractional Part if it were separately. Example Function Prototype would be: ...
user avatar
2 votes
1 answer
130 views

IEEE-754 Floating Point Converter

I have in hexadecimal representation a IEEE-754 Floating Point: uint32_t _u_IEEE_754 = 0x41100000; //9.0 The decimal representation is: 9.0 I am working in C under ...
user avatar
1 vote
0 answers
66 views

No debug information in Keil when I try to simulate a STM32F103C6 in proteus ISIS

how are you?. I need to simulate a project I what I'm working made with keil in proteus, Labcenter's people enfasizes in that those simulations needs both the .elf file and the dwarf2 file, in Keil ...
user avatar
  • 128
0 votes
2 answers
148 views

Help with the use of STM32 peripheral library, error definition with for example GPIO_Typedef

I really need help here because I'm trying to make a project for stm32f10x microcontrollers, I've found in the following thread of Keil forum Libray forum that the best way to add the library to a ...
user avatar
  • 128
1 vote
1 answer
93 views

TIVA TM4C123G Driverlib Function Question

I have a question about how to use a basic GPIO function from the TIVA driver library to set an output pin high. See the below image for more detail. The red underline on the code on the left hand ...
user avatar
  • 986
0 votes
1 answer
506 views

TM4C123 Header File Problem

I'm having trouble getting a simple blinky project working using the on-board LED's on the TIVA TM4C123G evaluation board. I am using the header files from the driver libraries so I don't have to ...
user avatar
  • 986
0 votes
2 answers
359 views

Peripheral Driver Libraries on TI TM4C123 / Keil uVision

I am trying to use the peripheral driver library for the TIVA TM4C123 development board instead of accessing the registers directly. I have tried to copy the programming example in the GPIO section (...
user avatar
  • 986
0 votes
1 answer
972 views

STM32 ADC EOC Flag never set: Using CMSIS Core

I am using Keil uvision 5 for my STM32F103C8 microcontroller. I am debugging the code for ADC single channel polling example using CMSIS Core. I am not using any Standard peripheral library or HAL ...
user avatar
0 votes
1 answer
331 views

STM32f103 NRF24L01 Communication Problem

I am trying to apply communication between two stm32f103c8t6 with NRF24L01 modules. And using uart with usb to ttl module to reach putty terminal. I am using KEIL and for generating code CUBEMX. Here ...
user avatar
  • 69
0 votes
1 answer
95 views

Compiling a project without .uvprojx in KEIL

I am learning keil. And I want to compile a project that I found in GITHUB link here. But some of them doesn't include .uvprojx file. So I decided to create an empty uvision project and coppied all ...
user avatar
  • 69
0 votes
0 answers
33 views

vTaskPrioritySet needs extra TaskHandle_t to function

Im using STM32F429I-DISC1 and Keil uVision v5 Ive written a simple example to demonstrate task priority setting using handles however the code only functions if I first delcare an unused TaskHandle_t ...
user avatar
  • 980
0 votes
3 answers
543 views

Implicit declaration is invalid warning for __set_BASEPRI() function in Keil

I'm trying to use a __set_BASEPRI() function in Keil to set up interrupts in STM32F407 but it doesn't work when I compile the code and the IDE shows warning "...
user avatar
0 votes
1 answer
2k views

Stop DMA USART in STM32

In a noisy media, I need to receive 10bytes with DMA (about 1Mb). I have set the DMA and its interrupt as shown below: ...
user avatar
  • 127
0 votes
2 answers
269 views

Keil watch window and clock of STM32f103

Here is my public variable definition and value: As you can see in this picture I can't track the value of the Hello variable: I have changed the position of the Hello variable to prevent it from ...
user avatar
  • 127
0 votes
1 answer
76 views

Problems with interfacing Nucleo-F446RE and ADF4153 via SPI

I am trying to interface with a ADF4153 device via SPI, the problem is that the ADF4153 is not responding. I expect the problem is with the SPI connection. The pin connections are as follows; MOSI -> ...
user avatar
  • 3
0 votes
2 answers
953 views

STM32f103 and St-link

I designed this circuit on PCB (ARM:STM32f103) My crystal freq is 25Mhz. After connecting st-link in Keil I got this error: Invalid ROM Table ST-Link However, after changing the crystal value to ...
user avatar
  • 127
0 votes
1 answer
958 views

stm32f103 I2C Bare Metal Programming Question

I am trying to send a simple data from STM32f103 to another one. But I am having trouble with my code. I have been working on it since 2 weeks and I couldn't find any solution. I am using PROTEUS to ...
user avatar
0 votes
1 answer
134 views

Two switches and two LEDs using 8051

I am trying to work around a circuit and my requirement is as follows: - There are two inputs and two outputs. Each input controls an individual led. I am writing a code for this requirement using a ...
user avatar
  • 105
1 vote
1 answer
712 views

EEPROM Read Operation Always Returns 0xFF

I'm working with a AT24C04 EEPROM which communicates with a LPC1768 MCU on a I2C bus. I try to write a 8 bit data (0xF0) on the 0x00 Address of the memory but when I want to read the content of this ...
user avatar
  • 166