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
4
votes
1 answer

Compiling RTX Kernel files using GCC Compiler in Eclipse IDE

We have a project in KEIL IDE for LPC2148 which has RTX kernel programs along with other programs in it, which was compiled by ARM CC.Now we need to change the IDE from KEIL(ARM CC) to Eclipse(GCC). When we tried to compile it in Eclipse GCC…
3
votes
1 answer

Why whould i call a pointer with no obvious function

In an example from Keil uVision for a STM32 Development Board i find the following function: __NO_RETURN static void thrLED(void *argument) { ... (void)argument; ... } What is the meaning of (void)argument;? As far as i can get it…
thomas0721
  • 442
  • 4
  • 12
3
votes
2 answers

SIM800l - Disable "SMS Ready" and "Call Ready" unsolicited messages

My problem is related to SIM800 connection messages. I use the module with STM32 developlment board. Sometimes module is reporting SMS Ready and Call Ready messages respectively. When I start to send AT commands to the module, it may send these…
3
votes
1 answer

What is __0sprintf in Keil's C library? How to use it to save code size vs. full sprintf?

I am trying to use sprintf standard C function in ARM assembler code, in Keil uVision, for STM32. Looking in example C project disassembly, I can see this: 54: sprintf( test_string, format_string, num); 0x080028C2 F1000110 ADD …
3
votes
2 answers

STM32F103C8T6 can not communicate with HD44780

I'm trying to control a HD44780 16X2 LCD(4 bit communication) using a STM32F103C8T6. I connected the LCD this way: RS => PA0 EN => PA2 RW Ground D7 => PB7 D6 => PB6 D5 => PB5 D4 => PB4 The LCD doesn't display anything. Where might the problem be?…
Ilker Aykut
  • 71
  • 1
  • 5
3
votes
1 answer

stm32l476 ADC not ready

I am trying to bring up one of the ADC's on the STM32L476 Nucleo board. I think i have things configured ok, but i must be missing a step. I know this can be done use the HAL API and CubeMX, but i prefer register level access when bringing up a new…
Sean Smith
  • 181
  • 1
  • 12
3
votes
1 answer

Stop Keil uvision from pushing registers on function call

When I call a C function containing an infinite loop from main() it pushes some registers on the stack before executing that function. And since the function contains an infinite loop, those registers never gets popped. Here's an example, void…
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35
3
votes
1 answer

Embedded C Array indexing literal vs variable issue

I am in my first embedded C project at work and I have run into a behavior that perplexes me. I am usind KEILs uVision 5 IDE and have found how to map to special function registers (SFR) memory space via the following…
3
votes
1 answer

IRQ symbol defined in static library does not override weak IRQ definition from ARM/GCC startup

I have built a static library (*.a for gcc, *.lib for keil). One of its source file, compiled into library, contains definition of RADIO_IRQHandler. An excerpt from this source file, called "ral_irq_handlers.c", is below: ... void…
aldarel
  • 446
  • 2
  • 7
3
votes
1 answer

Building OpenSSL Library on ARM Cortex M4 based STM32F4 controller in an RTOS environment

I am looking at the feasibility of developing an embedded bluetooth application with openSSL-FIPS support on STM32F407 microcontroller(which is ARM Cortex M4 based). The application doesn't run on generic OS like Linux, Windows or andriod but it…
Jinu
  • 69
  • 1
  • 6
3
votes
1 answer

STM32F4 not pushing/popping floating point registers

I have a code const float previousTemperature = getTemperature(); someNestedFunction(); someOtherActions(); setTemperature(previousTemperature); My problem is that in someNestedFunction(); previousTemperature gets modified. I have looked at the…
mactro
  • 518
  • 7
  • 13
3
votes
1 answer

How to reference a pointer to pdata or idata without using generic pointer?

Using Keil C51 on an 8051 target. I have a set of functions that take a pointer to a structure. The structure will only live in pdata or idata. Due to size constraints and memory mapping magic, I can't condense all structures into the same memory…
3
votes
1 answer

malloc not fail in Keil C

How can i check whether malloc() was fail in Keil C? unsigned char xdata malloc_mempool [0x100]; void display() { unsigned char xdata *ptr; int a; init_mempool (&malloc_mempool, sizeof(malloc_mempool)); ptr = malloc(9000000); …
mingpepe
  • 489
  • 5
  • 10
3
votes
1 answer

type of enumeration constants inside enumerator list in C

EDITED I'm currently working on an multi-platform enumeration parser and found this weird behaviour while trying to answer the question above. Question A) Does C standard determine the type of the enumeration constants before the enumeration…
saoPaulo
  • 43
  • 5
3
votes
2 answers

Code size is doubled when compiling with GCC ARM Embedded?

I've just ported a STM32 microcontroller project from Keil uVision (using Keil ARM Compiler) to CooCox CoIDE (using GCC ARM Embedded compiler). Problem is, the code size is the double size when compiled in CoIDE with GCC compared to Keil uVision.…
Jolle
  • 1,336
  • 5
  • 24
  • 36