Questions tagged [compiler]

A compiler transforms code written in a source language to a (binary) target language.

Filter by
Sorted by
Tagged with
-1
votes
4answers
195 views

Are Verilog and VHDL Register Transfer Languages?

I have seen the term Register Transfer Language being used as the expansion of RTL in the context of Hardware Description Languages (HDLs). Specifically over here: https://www.cl.cam.ac.uk/teaching/...
1
vote
3answers
87 views

Why are data records in intel hex files often limited to 16 bytes, even for long contiguous blocks?

I'm not sure if this is true in general, but all intel hex files I have seen (from Atmel Studio, STM32CubeIDE and MPLAB) use data records with a length of 16 bytes. Even when the addresses written to ...
0
votes
0answers
61 views

Error with no description with compling a project in MPLAB X - might be HEXMATE problem

I've got a project from a retired colleague that I'm trying to get up and going so I can make some modifications to it, but I'm having some problems compiling it. Below is the compiler, processor, and ...
4
votes
6answers
2k views

Order of operations and rounding for microcontrollers

I was working on a project where I read a value from a 16-bit ADC and scaled it to obtain the reading of a sensor. For example: ...
1
vote
1answer
87 views

C++ AVR big code size & excess unused symbols in build file

I'm developing the program for the AVR microcontroller in C++. I have created a class that contains 8 methods(with constructors) but used only 3. Class code: ...
2
votes
1answer
103 views

C++ AVR microcontroller optimization problem

I'm faced with a weird problem. I'm developing a program for AVR. Microcontroller ATtiny85. Frequency 1 MHz. Programmer ...
-1
votes
1answer
87 views

Can I assume a compiler for a 32 bit microcontroller supports C99 variable-length arrays?

I'm making a C library for the embedded system community. I was wondering: In your experiences, do most people use compilers that support C99 VLA?
0
votes
1answer
92 views

.c to .hex file conversion without using any IDE

I am new to microcontroller programming. I have a program written in C or assembly language which I need to convert into a .HEX file to flash into the 8051 microcontroller. I do not want to use an IDE ...
0
votes
0answers
857 views

Makefile error with my MPLAB X

I am working on a PIC24 project, and I went to the project folder and moved a file to another directory inside the project folder, however, I got a makefile error. I created a new project and copied ...
2
votes
0answers
80 views

Difference in SystemVerilog-2005 HDL simulation behavior between Quartus Prime Lite (20.1) and ModelSim-Intel Starter Edition(2020.1)

A SystemVerilog module using an always@ block with a gated trigger does not compile in Quartus Prime Lite (20.1). Quartus Prime reports the following compiler error message: Error (10170): Verilog ...
0
votes
0answers
84 views

How to solve the compiler error of USB debugging probe of C2000 series Texas Instrument Microcontroller?

I am using Launchpad-F28027F to generate PWM for buck converter. I am currently using simple example of PWM from Resource Explorer of CCS but it's no working due to the error shown in the below ...
0
votes
0answers
26 views

Setting up pre-made MPLAB project with include errors

I am attempting to get an open-source potentiostat board up and running but an having issues when it comes to compiling the project. The firmware MPLAB project was provided, but it is not recognized ...
0
votes
1answer
74 views

XC8 compiler: Same variable names across different C source files causes issues

I am currently working with a PIC18F25k80 device using the XC8 compiler and MPLABX. I spent the whole of yesterday trying to debug some code I ported from a PIC32 micro project. This code did not ...
23
votes
7answers
2k views

What do HDLs compile/synthesize to?

I'm a software engineer. As a programmer, I have an understanding of what my compiler does for me because I've manually written a close textual representation of what it outputs (e.g. assembly). For ...
0
votes
1answer
47 views

Compiling a project without .uvprojx in KEIL

I am learning keil. And I want to compile a project that I found in GITHUB link here. But some of them doesn't include .uvprojx file. So I decided to create an empty uvision project and coppied all ...
0
votes
1answer
42 views

Control systems composed of several different parts just as program blocks

We're having a course on System Software this semester and we're covering the chapter on Assemblers presently. Our professor gave us some questions to think about. One of them is this: Control ...
0
votes
2answers
978 views

Altium - Linking Sheet Entries/Ports with Net Labels

I am struggling to find a way to get the compiler in Altium to see a Sheet Entry/Port (tried with both) and a net label on the same sheet to link. This redacted schematic page shows what I have (this ...
28
votes
9answers
4k views

What is the process of going from machine code to electrically controlling individual transistors? [closed]

For someone who writes software but doesn't have a computer engineering background, the dozens of abstraction layers have always bewildered me. I know all source code in their most fundamental level ...
1
vote
0answers
214 views

PIC18F4550 - Display 16X4 and menu with more than 4 items

I need to print a list of items of a menu in a 16x4 LCD using a PIC18F4550. I already did it using MPLABX and XC8 compiler and it worked fine, however, I need to migrate it to mikroC environment. But, ...
0
votes
2answers
123 views

Prevent compiler optimization for memory access in reflashable memory area

I am working with an embedded software in which part of the software(some CONST config values) are reflashable, without modifying the application software. Consider the following code: ...
3
votes
2answers
2k views

How to solve Keil compiler 'Error: L6218E: Undefined symbol' on STM32

I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the ...
1
vote
0answers
93 views

How to specify in the project or firmware of the application, where to start writing the code?

I have a bootloader to PIC18F4550 that was written using Mikro C for PIC and I have two firmware applications, one was written using Mikro C for PIC and the other using MPLAB X with XC8 compiler. With ...
3
votes
1answer
1k views

How to include paths for the C compiler in atmel studio?

I have a folder project and it consists of multiple folder and .c and .h files what is the best way to include them all without including the individual folders?
0
votes
1answer
157 views

Application and bootloader written in different tools can not be compatible?

I have a bootloader to PIC18F4550 that was written using Mikro C for PIC and I have two firmware applications, one was written using Mikro C for PIC and the other using MPLAB X with XC8 compiler. ...
4
votes
1answer
234 views

Moving brute-force search to FPGA

I am currently working on a scientific hobby project about computing the error detection capabilities of CRCs. Unfortunately the C++ code used for such computations has up to years of run time on ...
3
votes
4answers
2k views

How can we determine memory usage of a microcontroller

How can we determine how much memory is being used, or will be used by firmware in a microcontroller? What tools can support this? Generally we don't use dynamic memory in embedded systems, but how ...
0
votes
0answers
95 views

Elaborating a VHDL design with Generics

So this query is related to DC synthesis compiler for digital design. I have a hierarchical VHDL design, with each entity having "Generics". When elaborating the design, should I add the -parameters ...
0
votes
1answer
539 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
1
vote
2answers
118 views

What comes after you have programmed a Bluetooth Low Energy chip with Nordic SDK and are ready for deployment?

I am working on this project with bluetooth low energy and it seems I will have to order the Nordic Semi DK kit for one of their nRF51 series chips. I am just curious (and an amateur at this), once ...
1
vote
2answers
178 views

Memory allocation of constants and statics in structure?

I am working on IIR Filter implementation where I am initializing filter coefficients and memory (form-2 w) memory as follows. ...
-1
votes
1answer
719 views

Using compiler directives and macros in verilog, how to use multiple macros conditionally in verilog?

I have 2 macros in verilog used them as below. ...
0
votes
1answer
224 views

Altium compiler gives error on old designator

Whenever I change a designator in the schematics, the old designator will be placed in grey between parenthesis behind the new one. For some sort of reason Altium decided to give errors on the old ...
0
votes
1answer
682 views

Renesas Compiler: KPIT vs GCC-Renesas (CyberThor)

When looking around at Renesas (RL78) compilers, I noticed GCC mentioned a decent amount, but the links are different. Many of the older (<= 2015) URLs point to an India company, KPIT, and is ...
1
vote
2answers
465 views

What is the difference between the different types of PIC compilers?

What is the difference between the different types of pic compilers such XC, Hi Tech etc?
0
votes
0answers
219 views

Using C++ objects within FreeRTOS Tasks

I'd like to make use of object-oriented practises inside a FreeRTOS application. Is this as simple renaming files with task functions as .CPP, and instantiating objects, etc. inside the function, ...
12
votes
2answers
3k views

What is 'unsigned char near'?

I read a datasheet and I found variable defined as unsigned char near Sample_X. What is this, and how does this differ from ...
2
votes
1answer
182 views

How does the ARM Compiler (Version 5) handle double-precision floats in devices whose floating-point unit hardware only supports single precision?

After reading ARM Compiler version 5's manual, it says that for devices without a floating point unit, floats are dealt with through software implementations, which is likely going to be slower than ...
0
votes
2answers
820 views

STM32 Simple Timer in Eclipse

EDIT: Edited in response to question in comment (1) I'm trying to work through some examples from Carmine Noviello's book, Mastering STM32. In the chapter introducing timers, I adapted his very ...
1
vote
0answers
263 views

Syntax error(10500) when compiling VHDL code: near text “when”, expecting “:”

I want to compile my code but I get multiple errors surrounding a statement which is repeated several times in the architecture. The error message (Error 10500) says a ":" is missing near "when" but ...
1
vote
1answer
759 views

Assembler basic question : translation to machine code

How does a assembler (at very basic level) work in translation of Assembly language to machine code ? [What my understanding is that when a Programme is written it is written in text and then ...
-5
votes
1answer
104 views

The interface between the abstract assembly instructions and the physical electrical logic in the processor [closed]

I just learned that there is an interface between the abstract assembly instructions and the physical electrical logic in the processor. Can someone please explain that interface to me ?(I Hope I ...
1
vote
1answer
171 views

Synopsys Synthesis with underlying modules as gate libraries

I am trying to synthesize my Verilog modules into 1 top module which contains all the modules extracted into 1 top module. With setting -hierarchy option in write_file, I get all the modules ...
3
votes
1answer
1k views

Execution time problem of Memset() function in C

I have a typedef struct that stores my cumulative ADC parameters. When I clear my ADC_Sum struct it takes less than 300 ns to achieve the clearing process between size 1-8. But when size is ...
1
vote
1answer
560 views

What ISA is used by Cortex-M/R/A and what compilers are available? [closed]

What ISA is used by Cortex-M/R/A? What is the difference between arm-none-eabi and arm-elf-gcc? Are there any other compilers for ARM devices worth mentioning?
0
votes
1answer
1k views

Divide 32-bit by 16-bit number on a dsPIC

I'm working with a dsPIC33EP64GS506, and here you can find its datasheet: link. In the dsPIC datasheet (page 294) it says that it supports 4 divide instructions: <...
2
votes
1answer
314 views

XC32 optimizes vaiable used for register reading

I am facing a problem with XC32 compiler's optimization. Whenever I write a function to read something from register, XC32 optimizes (read: Removes) the variable which holds the return value. I have ...
0
votes
3answers
501 views

Purpose of linker files in placing code in internal flash [closed]

How linker file has to be programmed to place a code in internal flash?how linker filer files are different for different compilers?
4
votes
1answer
2k views

Using XC8 compiler instead CCS [closed]

I'm programming PIC with CCS. It's quite simple and functional. It's libraries are the best. Recently, I look for XC8 compiler, from Microchip. What are the advantages of using XC8 instead CCS?
3
votes
2answers
3k views

Makefile for STM32

I want to write code in just a text editor (not an IDE) and then build it with a simple Makefile. I've got: small STM32F103 board ST-Link/V2 SWD programmer gcc-arm-none-eabi toolchain stlink ...
2
votes
0answers
198 views

Operator synthesis VHDL, numeric_std.vhd

if i include the library numeric_std.vhd (the implementation is here https://standards.ieee.org/downloads/1076/1076.2-1996/numeric_std-body.vhdl) you can see that the operator *,+ (as instance are ...