I have been trying to develop and run core-mark benchmark on the EVB. I have added bunch of different source files provided by EEMBC and a static library too. All in accordance to the guidelines provided. Compilation is fine.
However, when I try to run the actual benchmark command - mcoremark-(#iterations), I am getting a hard fault.
I am not really sure why that is happening - but when I check the thread - it says "No source available for xx_func() at yy_address"
IDE that I am using - Eclipse
Could you please help me understand what might be happening here?
If you need more details, please let me know.
Thank you.
I am not really sure where to start in terms of debugging. I did check the symbol path of the library file provided and that seems to be in order.
Related
i'm working with renesas MCU RX65N, i want to make a serial connection with other board and also display an HMI i designed on Appwizard, i followed the steps they offer on their manuals but won't work either. Then found more information about how to solve it, and the code works by itself, but when i try to merge both programs just keeps giving me errors (problems that doesn't appear on individual projects), this is the error i got now, and don't know what to do because apparently it is included for my project but won't open no matter what i try, anyone knows how to solve it or what to do?
It sounds like when you include the file in one project, it works, but when you include it in another project, it doesn't? It sounds like there is a configuration difference between your projects. Try creating a new file in a project, then just put #include "r_bsp_config.h" in it, or however you wrote it (it may need to be #include <r_bsp_config.h>). See if you get the same error (you will probably get an error, something about missing main(), but the question is whether you get the same error). If you don't, cut and paste the code from the problematic project in, and also make sure the project configuration is adjusted to match, and see if it works now. If you do get the same error, then see if you can copy the project configuration from the working project to the new project, and see if you get the error this time.
I am very new to coding, currently taking Harvard's CS50x class online. The extent of my familiarity with code, languages, and environments is what they've taught me so far in C. With vague guidance from other questions on this site, I've taken about 4 days to install gperf, from discovering what Cygwin is to installing all of its libraries and error-checking the installation all the way up to finding out where it finally put the installed program. I was so happy when I actually found the application 'gperf.exe' just now. I thought I was finally just about to get the hash function I've been trying to make for almost a week.
And now, the program does nothing but hang every time I try to run it, no error messages. Offering no input file causes it to hang. Doing any amount of and selection of options specified in the manual, it just hangs. Even debugging says it's entering debugging, then just hangs. The only way I've been able to get the program to respond at all is offering it an invalid input file, which it says is invalid. Nothing else does anything; no output file, no command-line response, nothing. I am frustrated to the point of tears, and the documentation provided with gperf assumes you're a professional coder, talking endlessly about the hundreds of high-level customization options to modify the program, but not a word about how to make it just run on a basic level. I've searched Google and this site extensively, and very little pops up as soon as I search for gperf related issues specifically.
Can anyone please just walk me through how to make this program work? I'm sure it's some stupid little thing that I'm missing, but all I want it to do is take my input file of strings and give me a hash function in C. Any and all help is appreciated, I have absolutely no clue what I'm doing and even installing gperf was a multi-day process that is far beyond the scope of what I've done so far.
Thank you.
EDIT:
Executions I've tried passing:
gperf
./gperf
Arguments I've tried passing:
-a
-c
-d
--output-file 'FILE'
I have tried all of these with and without the inclusion of my input file, named 'keys' and 'keys.txt'. The only thing that has generated any response from the program has been giving it an incorrect input-file name, giving the result 'could not load input file 'keys''.
gperf can be slow if the input file you give it is large, that is, contains many keys. You can get an impression of what are "small" files vs. "large" files by looking at the documentation: Known bugs and limitations.
I've been trying to get my hands on freeRTOS at work for a few days now.
Since I'm done reading the documentation on the website, I'm now trying to work a simple demo on a PIC32 starter kit (with MPLABX.
So far it works, the led blinks and the messages are sent and received (yeahy).
However, although it doesnt prevent me from running the demo, I get a huge load of red exclamation marks all over the includes and usages of specific types, it's a bit odd.
I've decided not to care too much for the moment.
But now that I'm trying to include a personal header file, I get a failing build.
I have absolutely no idea why this would happen since I've always included header files that same way and never had that kind of problem.
Any help would be really appreciated both on why I can't make that include work and why I got a zillion exclamation marks.
Thanks in advance and please tell me if you need additional informations.
code:
#include "Menu.h"
error:
../main_blinky.c:181:18: fatal error: Menu.h: No such file or directory
EDIT:
I'm done with the zillion exclamation marks pb, I've searched for the missing .h files in the freeRTOS directory and added the paths to the inculde directories option of the compiler.
It looks like you have to add several include folders but I don't remember having read any of that in the documentation probably because it doesn't prevent the demo from running I guess.
Now I need to deal with the other pb. I'll tell you what.
So.. following what I did in edit1, I thought "hey, what if the project's own directory isn't part of the include folders? naaaah can't be... ok let's be sure and give it a try"
And guess what...? it wasn't.
I had no clue this could ever happen but maybe that's just because I'm ignorant to some point.
Anyways, just added the project's path to the include folders path list and now both problems are solved, I hope this will help someone one day or another.
While I was trying to compile a linux-kernel (v. 2.6.39) in Eclipse CDT, I have a not leaving problem about my include paths. I know this is a well discussed topic in the Internet, but all these solutions didn't fix my errors.
One of the errors is: **linux/kvm_host.h: No such file or directory**
one of the marked line in the source code is: #include < linux/kvm_host.h>
What I did (and actually expect to solve this problem):
In
Project Properties
C/C++ General
Paths and Symbols
I've added in "Includes", "Library Paths" the include directories:
e.g.:
- /[path-to-kernel]/linux-2.6.39/
- /[path-to-kernel]/linux-2.6.39/include
- /[path-to-kernel]/linux-2.6.39/include/linux
Still (after another make), it hasn't changed a thing.
So what's the matter, can someone give me a hint?
[Edit: As i mentioned in the comments, with STRG+Click on a underlined library it opens in my browser, so i believe it's just a problem of the Indexer but I think i have tryed everything in its options menu]
I just try to develop a fresh Linux kernel nothing special, I can't be the first one, doing this with a fresh eclipse.
After making a new project on the same kernel for the 3rd time it's working now. But still i don't have a clue why :/, since i rebuild the project an the indexer several times. I hope this won't be going on like this.
Thanks for your support!
I'm starting to learn Vala and after just a few lines of code, I just encountered my first problem. It should be kinda easy but somehow I can't find anything on Google ('vala version number' or 'vala get version number' or 'how to get version of program in vala' don't bring up anything useful).
The online documentation of Vala doesn't bring up anything useful, either. Throughout the web I find stuff on how to get Vala's version or GTK version or stuff like that.
edited stuff
What I want to get: The version of the program that is running. It should query itself to get it's own version number. I can set a version number for the project in the Anjuta IDE so I expect to be able to get that version information somehow. Since I can get the name of the application (via GLib.Environment) I should be able to get the version information, too.
edit end
May someone please be so kind and help me out here? It seems my GoogleFu isn't with me today.
If you use the autotools, the generated config.h header will contain your package version. The symbols can then be used from Vala via a custom config.vapi binding. You could check out sampala, it shows the trick.