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
5
votes
2 answers

Why am I getting a namespace identifier error?

I am using Keil uVision and I keep getting this error: C:\Keil_v5\ARM\ARMCC\bin\..\include\rw/_defs.h(781): error: #20: identifier "namespace" is undefined What could lead to this error? Isn´t namespace automatically defined?
user3729617
  • 113
  • 1
  • 14
5
votes
5 answers

"Expected a statement" error in embedded C

I'm getting error like "expected an statement" my code is as follows #define IN_Tamper 0X00001000 /*P2.12 = EINT2*/ #define DIR_IN_Tamper { FIO2DIR &= ~0X00001000 ; } /* main */ DIR_IN_Tamper(); if(((IN_Tamper >> 12) & 0x01) == 1) …
YMJ
  • 154
  • 1
  • 2
  • 7
5
votes
1 answer

How to set up build for multiple combined binaries

When working with embedded systems, it is sometimes necessary for a processor to be loaded with several independently compiled and linked binaries; in my present project, a processor is supposed to have both its own code image and a code image which…
supercat
  • 77,689
  • 9
  • 166
  • 211
5
votes
1 answer

How to jump between programs in Stellaris

I am working on a boot loader for Stellaris LM3S1607 chip. I am using Keil MicroVision4 C compiler. The idea is to create 2 independent firmware that one will update another. In firmware1 i downloaded firmware2 file and write it to flash in…
Shihab
  • 531
  • 1
  • 12
  • 25
5
votes
2 answers

Is multithreading supported in embedded Keil C?

I am developing an embedded application in LM3S6965 evaluation board using Keil C compiler. Is there any option for creating multithreaded embedded application?
Shihab
  • 531
  • 1
  • 12
  • 25
4
votes
1 answer

Code Size Comparison Cortex M3: IAR ARM vs Keil µVision

I am currently developing a small project for an STM32F103 microcontroller which features a Cortex-M3 CPU. Due to CMSIS standard header files it is possible to use the exact same code with IAR and Keil µVision. Because of that, I found it…
binaryBigInt
  • 1,526
  • 2
  • 18
  • 44
4
votes
2 answers

C Keil compiler uses malloc for local variables,why?

I had a problem somewhere in my code in a function that I wanted to declare an array but it failed. after some debugging I found out that it uses malloc in disassembly window so I increased the heap size and it works fine! So my question is why…
Alireza
  • 47
  • 1
  • 7
4
votes
1 answer

C - Using enum for bit flags - warning: enumerated type mixed with another type

I'm passing enumeration constants as bit-flags to a function that expects the enumeration type as input, like this: // Enumeration type typedef enum { LED_RED = (1 << 0), LED_GREEN = (1 << 1), LED_YELLOW = (1 <<…
Eliahu Aaron
  • 4,103
  • 5
  • 27
  • 37
4
votes
2 answers

Keil UV5.23/24/25 crashes on a 2nd start of debug session on Emulator

I have encountered a problem with uVision and Hitex emulator (Tanto2) on a Win10 laptop (fresh install). My initial setup was UV5.23, I updated to 5.24 and made tentative with 5.25 on Keil's request. I have a dedicated SDK release for UV5.23, I…
JCV
  • 41
  • 3
4
votes
2 answers

How to Auto-Alignment Shortcut Key in Keil uVision?

I want to find Auto-Alignment Shortcut Key in Keil uVision. I tried some shortcut keys but I can not find. In Visual Studio I used to: CTRL + K + D , but in keil uVision I don't know how it is work. For example : When you type below ( usually copied…
Purgoufr
  • 761
  • 14
  • 22
4
votes
1 answer

Twice handled (by rising/falling edge) interruption of the button

I have written some code that must turn on leds one by another (in a round) by each click of the button, but sometimes with one click of the button lights not the next led but one random from four leds. It's something like one or more leds skips its…
Alexander Hryk
  • 585
  • 2
  • 4
  • 16
4
votes
7 answers

Error: L6218E: Undefined symbol main (referred from __rtentry2.o)

anyone can help me?? my board is LPC1768 and the sensor is BMP180 Rebuild target 'Target 1' compiling BMP180.c... compiling I2C.c... assembling startup_LPC17xx.s... compiling system_LPC17xx.c... compiling GPIO_LPC17xx.c... compiling…
Sepehr Aghili
  • 51
  • 1
  • 1
  • 2
4
votes
2 answers

How to store text file on embedded systems flash memory and read from it

I'm trying to do the following: Storing a text file (7kB) in the flash memory of a STEVAL-MKI109V2 (running with freeRTOS) board and read this text file and doing some computation with it on the device itself. I have 2 problems regarding that: 1)…
Unfixable
  • 440
  • 1
  • 7
  • 20
4
votes
4 answers

Ways to divide the high/low byte from a 16bit address?

I'm developing a software on 8051 processor. A frequent job is to divide the high and low byte of a 16bit address. I want to see there are how many ways to achieve it. The ways I come up so far are: (say ptr is a 16bit pointer, and int is 16bit int)…
Grissiom
  • 11,355
  • 3
  • 18
  • 23
4
votes
2 answers

How do I combine two hex files created by Keil uVision?

I am using the Keil uVision4 IDE to program an NXP LPC1768. I need recommendations for combining two hex files. The two files are going to be a boot loader and an application that will be used for production programming. Currently, I am…
whitedog
  • 95
  • 1
  • 7
1 2
3
54 55