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

Keil IDE and compiler tools for ARM and other embedded microcontrollers.

The Keil IDE includes:

  • ARM Development Tools
  • C166 Development Tools
  • C51 Development Tools
  • C251 Development Tools
  • Debug Adapters
  • Evaluation Boards

More information is available at http://www.keil.com/

818 questions
2
votes
0 answers

Keil uVision compiles my code into 0xfff-s

I have a weird problem. For some reason, my compiler generates 0xfff-s instead of real code. This happens for a whole file (see screenshot, sim800.c is whole like this), other files are compiled fine. This does not necessarily happens to this…
larts
  • 67
  • 8
2
votes
1 answer

How to send float data over BLE and display it properly on the UART (nRF Toolbox)

I'm sending a command over BLE from the central (Android) to the nRF52832, and receive SPI data back, but in wrong format. How can I convert/display this data as it is. I expect to receive [1.2 2.2 3.2] when I send '1' to the nRF52832. All I get…
Guldberg
  • 23
  • 7
2
votes
1 answer

Keil stm32, using assembly, scatter file and c. How to export c code entry point to assembly?

In order to combine .c and assembly, I want to pass start address of my .c code, and program microcontroller to know that its program starts at that address. As I am writing my startup file in assembly, I need to pass .c code starting address to…
Vaso
  • 811
  • 6
  • 12
2
votes
2 answers

uVision Keil STM32 Error on debuging "*** error 57: illegal address (0x08000000)"

I write a simple code that just setup clock and initial conditions for STM32F103RBT6, and program it on my board via ULINK2 successfully. But while I'm going to debug mode, I see this error : *** error 57: illegal address (0x08000000) Also, I can…
2
votes
0 answers

Wrong output sprintf C51 8051 MCU embedded system

I have the following fragment of C code for an AT89S52 microcontroller: unsigned char x = 0x10; unsigned char str[21]; sprintf(str, "%u", (x >> 4) ); sprintf function prototype in stdio.h: extern int sprintf (char *, const char *, ...); Can…
MLuna
  • 35
  • 7
2
votes
2 answers

Prevent "enumerated type mixed with another type" warnings for boolean values in Keil uVision

I'm migrating an application I was developing in CodeWarrior v5.2 to Keil uVision v5.25, which uses the ARM C compiler v5.06. Throughout my code I've used bool to represent boolean values, which is defined in a types.h file in my project as: typedef…
Tagc
  • 8,736
  • 7
  • 61
  • 114
2
votes
1 answer

Why compiler assembly C program into this?

I don't understand why the C51 compiler (in Keil) convert C source to this assembly language code: (As p is a pointer to unsigned char) ; p++; ; SOURCE LINE # 216 MOV R3,pDisplay?253 INC pDisplay?253+02H MOV …
Gamcheong
  • 41
  • 2
2
votes
2 answers

How to install CMSIS package for Eclipse?

I want to install CMSIS pack provided by Keil. The page says to download the source code and install from Help Menu of Eclipse. But when I select the folder it is showing an error "Could not find file 'jar:file:/path/cmsis-pack-eclipse-master'".…
Naveen Kumar
  • 325
  • 1
  • 3
  • 14
2
votes
1 answer

Create object files in one folder from different source folders

I am creating a Makefile of a Keil based project. I have a working Makefile now, but I have manually written rules for all the source files, something like this: out/abc.o: ../../../src/modules/abc.c ARMCC -o $@ $(FLAGS) $^ out/def.o:…
rookie
  • 1,168
  • 3
  • 14
  • 25
2
votes
0 answers

define two execution regions on arm9

I am using ARM 9, all code stored on flash. Flash contains booter (boot loader) and two load regions. How can I build my binary so I can use same binary and be able to store it in load region 1 or load region 2? Using the scatter file I configured…
kslavka
  • 54
  • 6
2
votes
3 answers

Copy constructor for C volatile bitfield struct

Good day I am trying to use a C SD driver/file system libary (Keil MDK), in a C++11 project. It was added by the Pack manager in Keil MDK 5.23. I am compiling with ARMCC 5.06u4 I get the warning class "_ARM_MCI_STATUS" has no suitable copy…
Flip
  • 881
  • 7
  • 13
2
votes
1 answer

Is there a way to export the predefined macros from a Keil build configuration?

Context: I'm trying to automate some of the more mundane tasks in embedded development with Keil. The end result I'm aiming for is that clicking build in a Keil project will run a pre-build step that runs all the code through Uncrustify (a source…
P Moody
  • 33
  • 6
2
votes
1 answer

Undefined symbol even when include header file?

When I try to compile my code, I'm getting the error: .\Objects\Lab4.axf: Error: L6218E: Undefined symbol l_init (referred from lab4_t0.o). .\Objects\Lab4.axf: Error: L6218E: Undefined symbol l_lock (referred from lab4_t0.o). .\Objects\Lab4.axf:…
14wml
  • 4,048
  • 11
  • 49
  • 97
2
votes
1 answer

How can I change my function inputs with chracter array

Hello every one I am writing an embedded C code on STM32Fxx micro processors with Keil MicroVision IDE. In my project I am using 8 piece of relay. I decleared each of my relays with following code sample. #define DO9_Pin GPIO_PIN_14 #define…
Cagri Candan
  • 90
  • 1
  • 9
2
votes
2 answers

Error: L6218E: Undefined symbol referred from main.o Keil STM32F4

I am facing a linker error: .\STM32F4xx-Nucleo\DMA_LP_App.axf: Error: L6218E: Undefined symbol HAL_UART_Init (referred from main.o). I have added the file stm32f4xx_hal_uart.c and its path in option -> C/C++ -> include path but it's still showing…
ghalibjanjua
  • 49
  • 1
  • 7