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

Keil arm startup.s assembly code

I am trying to understand the keil startup assembly code because it initializes the minimal hardware to work with C language. I am stuck at this line: IF PLL_SETUP <> 0 What is the meaning of the above line? Specifically, the <> symbol?…
sanjay
  • 735
  • 1
  • 5
  • 23
0
votes
1 answer

Using scons with Keil compiler/linker

I'm trying to use the Keil C51 compiler with scons as a build system. The final problem I have is how to get $SOURCES to be output comma-separated to the linker. The default uses space as separator. The relevant parts of the SConstruct is path =…
FkYkko
  • 1,015
  • 1
  • 12
  • 18
0
votes
1 answer

armcc (keil uVision4): how to get time() to return time from the RTC?

I'm a developer who's fairly used to working with embedded systems on Linux with free tools. Now I find myself on a project which uses the Keil compiler on Windows (armcc, uVision4... I'm finding the naming of stuff in this area a bit confusing…
Magnus
  • 4,644
  • 1
  • 33
  • 49
0
votes
1 answer

Debugger stops inside mathematical functions that have floating point arguments

I'm using Keil uVision with gcc compiler (Sourcery Codebenchlite for ARM EABI ) to program the STM32F4 cortex M4 chip. The compiler control strings I have set are: -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -std=gnu99…
soonhooi
  • 1
  • 2
0
votes
1 answer

Why doesn't my bit left shift?

I'm using embedded C on Keil. I'm trying to program such that it stores a bit, bit shifts and then it stores it again and it repeats until all eight bits are stored. However, when I debug (maybe debug wrongly), the value only shows "01 00 00 00 00…
xrainxfallx
  • 67
  • 1
  • 9
-1
votes
0 answers

Flash data change after flashing microcontroller

I am using LPC54606J512BD100 and facing issue that after uploading the flash from the hex generated by command using keil IDE the flash data microcontroller has is changed. Using LPC-Link 2 Rev B and Ulink2 as debugger. I am using the following…
rock123A
  • 82
  • 2
  • 11
-1
votes
1 answer

STM32G051K8U7 microcontroller project build problem while transitioning from Arm Compiler v5.06 to Arm Compiler v6.20.1

Simple problem: Started an STM32G051K8U7 microcontroller project using Arm Compiler v6.20.1 in Keil uVision IDE, built a project all good, everything works just fine can debug the program using ST-Link debugger - no problems. And at some point I…
RytisBe
  • 69
  • 8
-1
votes
1 answer

I can't download my code on my ST Nucleo F103RB

I bought recently a ST Nucleo F103RB, but I have a problem to download my code on the board. I'm using Keil µVision for the developement. Here a screenshot of the configuration for the debug : Configuration of debug's board on Keil µVision But if I…
Osika91
  • 1
  • 2
-1
votes
1 answer

Problem that the value of the variable does not changed in keil uvision5

I set the array variable to static in modbusTCP.h. static USHORT usRegInputBuf[REG_INPUT_NREGS]; After that, I include modbusTCP.h and use it in main.c. usRegInputBuf[0] = 1; usRegInputBuf[1] = 4; ... But there is a problem that the variable value…
-1
votes
1 answer

Assembler: What means RAM_SP+16H?

I need your help by this assembler code: LOC OBJ LINE SOURCE 0116 369 controll_time EQU RAM_SP+16H ;enter controll time impulse What does "RAM_SP+16H" means? RAM_SP is the storage for C++ data an is…
Christian01
  • 307
  • 1
  • 5
  • 19
-1
votes
1 answer

KEIL: The reason for working a MUL within a loop only in the 1st iteration

I have written a code in keil in which there is a loop containing a multiplication which can be done either by shift left by 1 or MUL command. However, both are executed only in the 1st iteration and in the next ones, compiler executes the code,…
-1
votes
2 answers

Breathing led in Tiva C series TM4C123G

I have to write a C code so that the RGB LED on the board breaths. My code is blinking not breathing. My teacher said that varying brightness is achieved by varying duty-cycle so in that case I can't use pwm. Please help me to understand this…
Alexa
  • 1
  • 1
-1
votes
1 answer

EXTI line got odd/even interrupts count when push-release button in STM32F103

I met a problem. I used STM32F103. One EXTI line was used to check a button push-and-release. EXTI line was set to be triggered by both falling and raising edge. I know there will be burr when I pushed the bottom. The question is , when I pushed and…
yebii
  • 5
  • 2
-1
votes
1 answer

IF ELSE Statements Operands

I have a very simple IF ELIF ELSE ENDIF statement to check if the value in r0 compared to other values. The code always throws the following errors when assembled: main.s(25): error: A1198E: Unknown operand main.s(27): error: A1198E: Unknown…
Off Beat
  • 25
  • 5
-1
votes
1 answer

Header variable turn to zero

I am using STM32F103 and and Keil for the Compiler. Here is my summary code: There is a header file like abc.h and abc file has a static variable. abc.h is like that: static uint8 a; And there is a function in another header file which named abcd.h…