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

Getting PC (R15) set to point to my code after placing it in RAM at the desired address with Keil, on an embedded ARM device

I need to place my program at the address in memory 0x20000000. In the project options in Keil I opened the tab "Target" and set the following settings (screenshot is here --> https://i.stack.imgur.com/EPGru.png): IROM1 start = 0x20000000 IROM1 size…
MadEvil
  • 41
  • 2
-1
votes
1 answer

include paths setting in keil

I know the path has an error. But I don't know what to do in ARM-keil. The only thing I can think of is that I have to change all the paths there, But I do not think this is the right way. Do you have any other way? I just want to add '..\' and add…
윤대희
  • 1
  • 2
-1
votes
1 answer

Keil microVision "Cannot download file ... Cannot write destination file"

Trying to download the ARM::CMSIS-RTOS pack my mouse is hovering over and I get the errors in red at the bottom ("Cannot download file http://www.keil.com/pack/ARM.CMSIS-RTOS_Validation.1.1.0.pack: Cannot write destination file"). The project is…
-1
votes
1 answer

how can i use store registers in memory in CODE section that is ReadOnly (ARM Assembly)?

here's my code : AREA Swap, CODE ENTRY EXPORT __main __main ADR R0, VAR_1 ADR R1, VAR_2 LDR R2, [R0] LDR R3, [R1] STR R2, [R1] STR R3, [R0] stop B stop AREA Swap, DATA, READWRITE VAR_1 DCD 8 VAR_2 DCD 7 END i can load values from…
Ahmadreza_HK
  • 364
  • 1
  • 5
  • 10
-1
votes
1 answer

Keil C51 8051 Port 0 I/O

Check this two cases in Keil C51 and observe P0 peripheral option in debugger for both cases. The result is different in two cases.Why P0=0xFF; instruction doesn't produce same result? case 1) main() {P0=0x00; P0=0xFF; while(1); } case…
Lelouch Yagami
  • 159
  • 2
  • 10
-1
votes
1 answer

Bin File generation from keil IDE for STM32 MCU

Hello EveryOne, I am working with STM32 MCU and need to generate the binary(.bin) file from the KEIL-IDE(Development tool chain) So that I can upload the new firmware file to the HTTP/FTP server to do the Firmware over the…
SACHIN RAJPUT
  • 11
  • 1
  • 4
-1
votes
1 answer

How to Benchmark Runtime on Cortex-M4

I'm pretty new to ARM and am trying to get timing results for functions written in C for a Cortex-M4 processor. Would any of you be able to tell me what steps I need to take to get timing results? I've been running my code on Keil uVision, but I'm…
Domovoi
  • 9
  • 1
-1
votes
1 answer

Accelerometer Reading

I am using an STM accelerometer with STM controller. While getting the readings from the accelerometer, it gives a random value. It even shows a false value, when used in a steady position. Here, somehow, I am facing problem and need some idea and…
SACHIN RAJPUT
  • 11
  • 1
  • 4
-1
votes
1 answer

calling function inside function without parameters

Calling a function without calling its parameters inside another function is a little bit confusing as follows: ppp = pppos_create(&ppp_netif, output_cb, status_cb, 0); Where output_cb and status_cb are functions that their parameters are not set…
-1
votes
1 answer

Syntax error on pointer definition that seems valid (from a working library) SDCC

I'm trying to compile a firmware for Crazyradio PA (but the issue is not specific to it), in which I added a library I needed from Nordic Semiconductor's SDK. The library is initially meant to be compiled under Keil µVision IDE, so I naturally…
JMA
  • 1
  • 2
-1
votes
1 answer

I need help building openvibe sourcecode for lpc1768

I'm using keil for debugging lpc1768 and here is the link for downloading the source code: http://openvibe.inria.fr/pub/src/openvibe-2.0.0-src.tar.xz I need to build openvibe for an application project i am migrating to an lpc1768 baseboard but i…
Socrates
  • 335
  • 2
  • 3
  • 11
-1
votes
4 answers

Will the Heap Scope be freed successfully while the Pointer Value was changed?

For example: void heaptest(){ int *a; a=(int*)malloc(1024*4); int i=1024; while(i--){ *a=i; //printf("%d",*a); a++; } free(a); …
-1
votes
1 answer

Pointer At Functions

While i was developing code at Keil there is a transmit function; HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) While i was using pData as a pointer as i add above like *(buf+spi_ri)…
Said Ediz
  • 13
  • 5
-1
votes
1 answer

Raw 2D arrays as function parameters in C++

Are raw arrays unsafe to use in C++ considering there are libraries such as std::array and std::vector? For embedded systems, using std::vector I believe may not be efficient particularly when there are several functions to implement and there's…
Doej
  • 75
  • 5
-1
votes
2 answers

any way to terminate a hex entry without using a space

KEIL 9.55 This works: unsigned char code ID_Data_02[9]="\x02 1234567"; but what I really want is: unsigned char code ID_Data_02[8]="\x021234567"; in the first case I just transmit using *(p+0), followed by *(p+2) and ignore the white space that is…
JDL
  • 1