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

Getting started with nrf51882a

I'm currently trying to start with the nordic development kits, I installed all the tools required to be able to start the development & also I get some files which have the following: drivers' codes ?& header files which contain their…
2
votes
5 answers

Enable C++ support ARMCC compiler

I'm setting up a basic project in Keil (V5). I want to use C++ in my project. I'm using the ARMCC compiler. I created a simple class CTest. But it seems that my project settings/compiler doesn't support C++. C code compiles well, but the keyword…
MvHorssen
  • 111
  • 2
  • 12
2
votes
3 answers

need help configuring port to input in 8051

The connection is as follows An infrared sensor circuit which yields 0 or 5v depending on closed or open circuit output line to port 2_0 pin of microcontroller 8051 philips.Problem is when i do this the circuit value are overridden by the…
Aabid Ali
  • 109
  • 2
  • 13
2
votes
2 answers

Unnecessary ASM code

I'm preparing to optimize some code for cortex-m4 (educationally only) so I write simple inline function like this: inline int8_t recalculate_val(uint16_t ADC_val){ int16_t value; value += fuzzywynik1 + ADC_val; return value; } Now when I'm…
PatLas_work
  • 89
  • 1
  • 3
2
votes
2 answers

Pop{pc} in assembly

This may be a stupid question, but in my assembly code, during debugging, I have pop{r2-r6,pc} and I think it is giving me an hard fault exception. I understand what pop does, but I am unsure what the pc part means. I cannot find it explained…
Dude
  • 261
  • 2
  • 5
  • 14
2
votes
2 answers

C function declaration syntax - why does this work?

I have been going through some RTOS example code (a slightly old version of Keil RTX, if anyone's interested) and I came across some syntax I didn't understand: void job1 (void) __task; void job2 (void) __task; This was giving errors (error: #130:…
2
votes
1 answer

No serial output after retargetting and calling fopen()

I'm trying to implement a basic application on an embedded device using lwIP. I got the basic project set up, the retarget-ing works as expected. However when I add lwIP into the project and call lwip_init() I have no more output. If I leave out the…
Paul
  • 20,883
  • 7
  • 57
  • 74
2
votes
2 answers

Using JMP instead of CALLS

Can a JMP instruction be used to jump to the start address of a function, and why would one do so?
damat-perdigannat
  • 5,780
  • 1
  • 17
  • 33
2
votes
1 answer

How to setup TDD in Keil uVision 4?

I'm doing a course "Embedded Systems - Shape the World" through Edx.org We are using the TM4C123 board and Keil uVision 4.73 IDE, and all the code in written in C. I want to do Test Driven Development (TDD), however I'm having a lot of trouble…
TheLukeMcCarthy
  • 2,253
  • 2
  • 25
  • 34
2
votes
3 answers

Can not find string defined in Data Area at the correct address

I have two segments defined in ARM assembly for cortex - M4, one is code (Read only) and another is data (read write). The read only memory is defined to start at address 0x08000000 and the RW memory at 0x20000000. Each segment is defined in its own…
The Byzantine
  • 619
  • 1
  • 6
  • 21
2
votes
1 answer

How to compare and swap atomically in ARM7?

I would like to modify a global variable which is shared by different tasks and IRQ contexts in a RTOS. Therefore I need to modify this variable atomically. In my current implementation, I have been using enable_irq/disable_irq functions to modify…
albin
  • 773
  • 1
  • 8
  • 27
2
votes
2 answers

MemFault in GC when calling back a closure from C

I working with Keil, MDK-ARM Pro 4.71 for a Cortex-M3 target(STM32F107). I have compiled the Lua interpreter and a Lua "timer" module that interfaces the chip's timers. I'd like to call a lua function when the timer is elapsed. Here is a sample use…
Julien
  • 1,181
  • 10
  • 31
2
votes
2 answers

argument of type "uint8_t" is incompatible with parameter of type "uint8_t *"

I am trying to compile a USB HID example code on Keil for a STM32F4-Discovery. This code allows me to send and receive message to and from a software called "USB HID Demonstrator". But I have a problem in the USBD_HID_DataOut function. The…
Pansoul
  • 718
  • 1
  • 7
  • 15
2
votes
2 answers

Keil: virtual or protected destructor and heap

I'm using Keil 4 with ARM toolset for Cortex M3 (if that even matters). I tried this simple code: class Base { public: virtual ~Base() {} }; class Derived : public Base { public: int b; virtual ~Derived() {} }; If I create an…
Amomum
  • 6,217
  • 8
  • 34
  • 62
2
votes
0 answers

RTX kernel porting

We have a project in KEIL IDE for LPC2148 which has RTX kernel programs along with other programs in it.Now we need to change the IDE from KEIL to Eclipse. When we tried to compile it in Eclipse GCC Compiler it is showing errors in RTX_Config.c and…