Questions tagged [compiler]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
81 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
34 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
53 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
49 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
16 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
43 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
35 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
572 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
3k 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
185 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
116 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
982 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
77 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
598 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
133 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
226 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
1k 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
93 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
380 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...
1
vote
2answers
98 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
137 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
506 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
141 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
552 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
297 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
208 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
160 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
644 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
241 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
714 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 ...
2
votes
1answer
156 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
956 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
526 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
274 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
478 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
1k 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
2k 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
182 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 ...
1
vote
0answers
63 views

Using different compilers in same vhdl project

I am currently working on a mips microprocessor for one of my class using modelsim's tools. I want to be able to work on the same projet whether I'm at home on my windows pc or on the go with my ...
1
vote
1answer
2k views

DATA_ALIGN Pragma - Tiva

What is the purpose of a pragma Data_Align in TI emb. compiler. The datasheet explanation: http://www.ti.com/lit/ug/spnu151j/spnu151j.pdf "The DATA_ALIGN pragma aligns the symbol in C, or the next ...
8
votes
5answers
7k views

What do I need to put my code onto a microcontroller?

I learned about coding a controller, but never actually put the code on the physical device. I am trying to figure out what I need to order to start developing a basic embedded system. For example, ...
3
votes
1answer
186 views

AVR bit manipulation compilation in GCC: can not get SEI instead of read-modify-write

I'm trying to set bit 2 in TIMSK register and using the following C code: TIMSK |= (1<<2); Compiler makes the following code: ...
16
votes
12answers
6k views

Could you program a microcontroller without a computer?

Let's say you had a rather simple and small microcontroller and had no interfacing, no computer, no debugger, compiler, or assembler. Could you write your code in assembly, convert it (manually) to ...
1
vote
2answers
2k views

Why does MPLAB IDE has so many compilers?

I have learnt that the MPLAB IDE has different compilers like C18, XC8 and HI-Tech. I want to know the following things: Why are there different compilers when one can do the job? Are certain ...
2
votes
3answers
167 views

Courses about deploying Linux on embedded systems

I am a new grad student in EE and am trying to take full advantage of my time here at the uni. I have always wanted to understand how to get Linux running on embedded platforms, but from the outside ...