Questions tagged [greenhills]

Green Hills Software is a company which makes tools and operating systems for embedded platforms.

Green Hills Software is a company which makes tools and operating systems for embedded platforms. Their flagship products include:

  • the Multi compiler/debugger suite
  • the Integrity real-time OS
  • the µ-velOSity real-time microkernel
  • hardware debugging probes
62 questions
2
votes
1 answer

ARM DCD working and Executing from RAM

I am using MBD9F126(ARM Cortex R4) micro-controller. In that I am flashing code into ROM and then I am executing the code from RAM after RAM copy. I am using the Green hills compiler. Before the RAM copy I am executing basic board Initialization…
suraj
  • 283
  • 3
  • 5
  • 13
1
vote
0 answers

if statement involves float prompt error :MISRA C 2012 R13.5

This is my first time asking a question, and my English is not good! When a Floating-point arithmetic number (size comparison) appears in my if statement, an error is reported that triggers MISRA R13.5. This is my code section: static float32_t…
Shopping
  • 11
  • 2
1
vote
0 answers

Customizing GHS compiler output to display colors in Visual Studio Code integrated terminal

I'm currently using the Green Hills Software (GHS) compiler to compile C code. I'm using Visual Studio Code on a Windows machine and using the workspace file to create my tasks. My problem is that the output of the task is all in plain white on…
Dan Guilas
  • 23
  • 3
1
vote
0 answers

How can I find usages of a function name using Greenhills MULTI IDE?

I am using Greenhills Multi IDE. I am trying to understand an existing code base. So for example if there is a function setLED. I want to know from where and all, it is being called in the entire project. How can I do this using the MULTI IDE by…
Joe Race
  • 178
  • 10
1
vote
1 answer

Value of variables are changed unexpectedly

I am writing embedded code in GHS environment and I am facing such a strange issue that I have never encountered before. All global variables except for constant ones which are initialized before run-time are set the highest value of a data type.…
1
vote
1 answer

C function access to R0 to R12 registers

I need to write the C function that will return the value of a specific hardware register. For example R0. I am unclear from the GHS documentation how this is done with the macros provided by the GHS Compiler. uint32_t readRegRx(void) { uint32_t…
jdw
  • 76
  • 8
1
vote
0 answers

How can I compile an Ada project (that already compiles in green hills) using GNAT

I have a directory structure of -Root -Multiple Packages (they all follow this pattern) -greenhillsCompileSwitches.gpj -fileWithLocationsOfProjectSource.gpj -Source Code Directory -Build Package -MiscFiles.ada …
Keki
  • 15
  • 5
1
vote
2 answers

Using GPS as external editor for AdaMULTI

I'm trying to use GPS (version 19.1) as an external editor for Greenhills AdaMULTI. I entered -P +%LINE %FILE0 %FILES into the "command line arguments" and also the correct path to GPS for "AdaMULTI Other Editor Configuration". So far…
Thoran
  • 163
  • 1
  • 9
1
vote
1 answer

link static library with headers with Green Hills compiler

I have a static library .a with several header files provided. I want to link it with .o files into binary using Green hills compiler. The error I get is: [elxr] (error #412) unresolved symbols. I am trying to specify path to header files…
Fen
  • 37
  • 1
  • 6
1
vote
3 answers

C++ memory allocation use Under Green Hills INTEGRITY

Sorry I'm new to Greenhill's. I'm using MULTI 6.1.6 and my language of choice is C++. I have a problem when try to use simulator to initiate an object of a class bigger than 1M in size using new. Class_Big* big_obj; Class_Big = new…
user2320492
  • 151
  • 1
  • 14
1
vote
5 answers

Multiply defined linker error using inlined functions

The linker is reporting multiply defined errors for an inline function. I have the following code in a header file: struct Port_Pin { volatile uint32_t * port_addr_set_value; //!< Writing the pin value here sets the pin to high. …
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154
1
vote
0 answers

How to generate Label debug info in GreenHills assembler?

I'd like to generate debug info for labels in assembly files assembled by GreenHills assembler so that it is visible to debuggres in GAS "GNU Assembler" it is done like that: .func FuncName [,Lablel] .endfunc but his generates error in GreenHills…
iwahdan
  • 429
  • 1
  • 5
  • 14
1
vote
1 answer

greenhills multi linker Error "Section .romdata overlaps section .data "

Please help me with following error- "[elxr] (error) Section .romdata overlaps section .data" on GHS Multi. This is when a custom Linker Directive file is created for an empty project using threadX. I have also included the search directory for the…
Jitin
  • 11
  • 4
1
vote
2 answers

Green Hills Sw small data area overflow

I am trying to compile an embedded C code, but small data area overflow occurs. I know what does it mean, but I don't know how to solve it. Can anyone make a suggestion? So, the problem is there is r13 register that is the base pointer of the sda,…
Fekete Ferenc
  • 119
  • 2
  • 11
1
vote
2 answers

Embedded wxWidgets for ThreadX OS

I'm working on an embedded system using ThreadX. The project will involve a GUI. I'm looking for a port of wxWidgets for embedded on ThreadX operating system. My search has turned up wxWidgets for embedded Linux and WinCE. Also, is wxWidgets…
Thomas Matthews
  • 56,849
  • 17
  • 98
  • 154