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

The garbled text of Keil u vision4

i want to write a program to rank the score there's my attempt: int i,j,s[5][2],tmp,p; for(i=0;i<5;i++) { printf("plz input student numder:\n"); scanf("%d",&s[i][0]); printf("score:\n"); scanf("%d",&s[i][1]); } for(p=0;p<5;p++) { …
賴言厚
  • 45
  • 1
  • 1
  • 3
-2
votes
2 answers

How to Compare the Numerical value of the Second-lowest Byte of L to the Second Lowest Byte of M

How to Compare the Numerical value of the Second-lowest Byte of L to the Second Lowest Byte of M? I have a pseudo-random number generator, but I am unsure how to sort the bytes. I need to find the second lowest byte of "L" and "M" and then increment…
-2
votes
1 answer

How to interface Keypad & LCD using 8051 Microcontroller

I got a project from college, i have to do "Keypad to LCD interference using 8051 microcontroller". Explained: Means when i press key 1, it'll show my name on lcd, by pressing key 2, it'll show my roll number & vice versa. I just know one thing…
Damon
  • 11
  • 4
-2
votes
1 answer

realloc char array c language arm

I'm new on C and embedded systems and I need to reallocate a variable type char which is an array by definition. I have: char payLoad[1]; chrNum = 16 + strlen("\"message\":") + strlen(strMsg) + strlen(",…
GIJOW
  • 2,307
  • 1
  • 17
  • 37
-2
votes
1 answer

Weird error in Keil compiler

As you see in the following image, when I comment one of the include "gui.cpp" or include , I have a red cross error in the right side of using namespace GUI. but when I include both of them, the error removed. Does anyone have any idea?
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
-2
votes
1 answer

Infinite loop during debugging

I am working with a STM32 eval2 board and trying to debug it. It used to work fine, and I haven´t changed anything, but for the last week or so I am always getting stuck in this loop while I am in debugger mode, but when I am not, the program runs…
Dude
  • 261
  • 2
  • 5
  • 14
-2
votes
1 answer

Error 28: Expression must have a constant value

I have a section of c++ code in keil uvision5 that is getting error 28: expression must have a constant value. I am trying to figure out how to fix it. this is the line (inside of a function) that it is happening on: osPoolDef_t pool_def = {…
user3729617
  • 113
  • 1
  • 14
-2
votes
1 answer

Musical instrument automated teaching via microcontroller

The premise of the project will be: There will be a prerecorded track of guitar, for example. The student will play the same track on his guitar. I need to compare these two sounds and find out whether the student played it good or not. I will be…
Roy
  • 31
  • 5
-2
votes
1 answer

Knowing _irol_ function in c

prio = _irol_(prio, 2); This was present in one of my code. Could you explain the _irol_ present there.
-3
votes
1 answer

Error in Tivaware Migration for ARM Compiler

I have been trying to migrate The Tivaware SDK from ARM Compiler5 to 6, for some reason when I try to build the Blinky example, it gives me this error: assembling startup_rvmdk.S... linking... .\rvmdk\blinky.axf: error: L6002U: Could not open file…
-3
votes
1 answer

I am getting a weird error while programing in C for microcontroller 8051

I am trying to make a mini model of radar using 8051 microcontroller, servo motor, ultrasonic sensor, and 16*2 LCD. I give my code as follows: #include // include header file for 8051 microcontroller // Define pins for ultrasonic…
-3
votes
1 answer

what operations in the __main of KEIL

Before running main() function in users' application, it will IMPORT __main and execute __main, so I wonder that what does this function do? __main copy rw variables from flash to ram? initialize bss section? initialzie stack/heap section? anything…
George Ma
  • 11
  • 1
-3
votes
3 answers

making OBD-II reader using STM32F3

i start making my own obd2 reader with stm32f303k8 and MCP2551 transciever CAN BUS . For that i start with CubeMX for configuration and Keil using Hal functions but i still trying to get data from car.. until i found stm32f10x code who remplace…
-3
votes
1 answer

Delay function in C not delaying

It is very strange problem because it should works but it doesn't. My task is to do a a simply function which delay a program. So time before use a function And after using a function: time after using I want to have a 1 second delay so i increased…
-3
votes
1 answer

Local variables in c prgramming AT89C51

I am trying to use recursion in a function and for that I have to use local variables. The compiler gives error c141 in the line where I am defining my local variable. int minimax(int board[9], int player) { int winner; winner = win(board); if…
1 2 3
54
55