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
vote
1answer
29 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 ...
0
votes
0answers
18 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. ...
2
votes
0answers
31 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 ...
-1
votes
1answer
45 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 ...
0
votes
1answer
26 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 ...
0
votes
0answers
121 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 ...
6
votes
2answers
1k 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 ...
0
votes
3answers
92 views

C preprocessor problem in KEIL [closed]

Here is my code: ...
0
votes
0answers
51 views

problem with I2C busy bit in stm32f103RE

I want to read values from a max30102 Heart rate and spo2 module. I used several codes from GitHub but none of them worked. now I want to read the id register via I2C. the problem is the i2c busy flag ...
0
votes
0answers
31 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, ...
0
votes
1answer
65 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 ...
0
votes
1answer
121 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 ...
0
votes
1answer
104 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
1
vote
1answer
238 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 ...
0
votes
1answer
813 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 ...
0
votes
0answers
112 views

problem with using DAC with DMA and timer trigger

I'm trying to configure a DAC with DMA and timer trigger to make a sine wave with 1KHz frequency(100 samples) and I'm using registers. my problem is that the DAC is not triggered when the timer value ...
0
votes
0answers
51 views

stm32 keil cannot assign array in interrupt

I can not assign my array in interrupt. My main.c function is like this: ...
0
votes
0answers
45 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 ...
0
votes
1answer
66 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
262 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 ...
-1
votes
2answers
63 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. ...
1
vote
0answers
31 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
96 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 ...
1
vote
1answer
110 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 ...
0
votes
0answers
85 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: ...
2
votes
1answer
105 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 ...
1
vote
0answers
41 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 ...
0
votes
2answers
95 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 ...
0
votes
1answer
62 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 ...
0
votes
1answer
289 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 ...
0
votes
2answers
270 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 (...
0
votes
1answer
706 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 ...
0
votes
1answer
274 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 ...
0
votes
1answer
62 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 ...
0
votes
0answers
23 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 ...
0
votes
3answers
381 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 "...
0
votes
1answer
1k 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: ...
0
votes
2answers
162 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 Hello variable: I have changed the position of Hello variable to prevent from being ...
0
votes
1answer
58 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 -> ...
0
votes
2answers
698 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 ...
0
votes
1answer
799 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 ...
0
votes
1answer
109 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 ...
1
vote
1answer
526 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 ...
0
votes
0answers
610 views

STM32CubeIDE / Keil IDE = Is code portable for STM32 Discovery board?

Somebody gave me an STM32F429I-DISC1 board to build a simple data logger. I (blindly) went to the STM website and grabbed the STM32CubeIDE and ran the demo...board works fine. Now I'm trying to get ...
0
votes
3answers
2k views

bootloader jump to application address problem

I have written a bootloader for my board, but it generates a hard fault when it jumps to the application code. My error is like this question: Bootloader jump to main application problem using STM32 ...
1
vote
2answers
656 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
412 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
3k 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 ...