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

Feasibility of using the same code on both embedded and Windows platforms

We have a program written in VBA that is running on Windows machines. We have a very similar program written in ANSI C, using a Keil IDE and compiler that is running on an STR9x uP. Our plans were to rewrite the VBA code in .NET using C#. What…
qxn
  • 17,162
  • 3
  • 49
  • 72
2
votes
0 answers

"No target connected" in ST-Link Debugger after accidentally removing USB connected to computer without safely ejecting

I am using the Nucleo STM32F446RE board and programming in C in the program Keil for a homework project. Before I start writing the code for any project I would always press the 'configure flash tools' option, go into the 'target' tab change my…
Zianne
  • 29
  • 5
2
votes
1 answer

Keil C51 doesn't allocate memory for struct pointers at compile time

I'm trying to created a linked list of structs for an EFM8 microcontroller project. I want to have the compiler allocate memory for all of the nodes at compile time. The issue I'm having is that no memory is being allocated for struct…
Mike Szczys
  • 125
  • 1
  • 10
2
votes
0 answers

Stm32 Arm Assembly Timer interrupt

I'm trying to write the timer interrupt code I wrote in C (pa3 pin blinks at 10 ms intervals) with arm assembly language, I checked the tim2_cnt value in debug mode, it works fine, but when I look at tim2 from nvic, it is not enabled, it is in…
dogukanbicer
  • 25
  • 1
  • 5
2
votes
2 answers

How to resolve: failed to insert all hardware breakpoints; you may have requested too many hardware breakpoints/watchpoints

I am using STM32 Cube IDE and I frequently get an error dialog that says: failed to insert all hardware breakpoints; you may have requested too many hardware breakpoints/watchpoints I know the ARM Cortex M0+ I use supports only 4 hardware…
user103185
  • 925
  • 2
  • 8
  • 20
2
votes
2 answers

How to do bare-metal LED blink on STM32F103C8T6?

I have just started exploring STM32 MCUs. I want to blink the LED on the BluePill(having STM32F103C8T6 MCU) board. I suspect I have been mislead by something. As per the Reference Manual of F1 series, There are 3 main steps: Enable Clock for the…
Sajil
  • 87
  • 8
2
votes
0 answers

Binary not loaded automatically to target by Keil MDK v5

I've been using Keil MDK (currently v5.31) for a long time on different products and boards. Right now, I've ported a project of mine from a Nucleo/STM32H743 to a EVAL2/STM32H753. Usually when I click on "Start/Stop debug session" button it starts…
Guillaume Petitjean
  • 2,408
  • 1
  • 21
  • 47
2
votes
0 answers

what is the name of a DATA directive is used for?

I am really new to the assembly language(Started to learn just a couple of days ago). I am trying to figure out directives in assembly. As far as I understand, directives are like a variable declaration in high-level languages. For example, after…
2
votes
3 answers

How to debug a freeRTOS application?

How do you debug an RTOS application? I am using KEIL µVision and when I hit debug, the program steps through the main function until the function that initializes the RTOS kernel and then you can't step any further. The code itself works though. It…
neolith
  • 699
  • 1
  • 11
  • 20
2
votes
1 answer

STM32 Keil - Can not access target while debugging (AT Command UART)

I am trying to communicate with GSM module via UART communication. I could get message from the module as I expected. However when it comes to while loop (it is empty), debug session ends with "can not access target" error. Stepo by step, I am going…
2
votes
0 answers

Need to convert OMF file to ELF file format

I'm using a Keil C51 tool to compile my firmware which outputs a .obj file (I'm writing firmware for an 8051). However, I'm looking towards using another tool to debug the firmware which only takes in elf or dwarf files as an input. So I was…
user3547407
  • 187
  • 1
  • 12
2
votes
1 answer

What is the equivalent of Keil _at_ in gcc

Does gcc have any keyword exactly equivalent to _at_ in Keil? struct Location { uint_32 x; uint_32 y; uint_32 z; char protocol[10]; }; struct link idata list _at_ 0x40; /* list at idata 0x40 */ Note: I do not want to define a pointer…
hadoop
  • 85
  • 1
  • 1
  • 9
2
votes
3 answers

What is the best way to block all threads except one?

I am working on a project where I need to block all threads when a certain thread starts execution. I have considered using thread flags, but I believe this would involve adding checks to all the threads. I have also considered using a mutex to…
wolly981
  • 29
  • 8
2
votes
0 answers

Find the address and value of SQSUM in memory before and after the program is executed. (KEIL Uvision5)

This is on a Homework assignment for my intro to computer architecture and organization class. Here is the full question: Write code to calculate the sum of the square of numbers between 1 and 5. Create a variable SQSUM, initialize it with 0, and…
Spam Spam
  • 21
  • 2
2
votes
2 answers

Array size defined in a Variable in C cannot compile in IAR but builds fine in Keil

#include int main() { int x = 5; int length = 5+x; int arrayw[length]; return 0; } This code builds fine in gcc and Keil but not in IAR. I get this error : Error[Pe028]: expression must have a constant value…
Raulp
  • 7,758
  • 20
  • 93
  • 155