Getting error while compiling in keil? - c

I am working with MK60N512MD100 (TWR-K60N512 tower kit) I am trying to extract Freescale_USB_Stack_v4.1.1 and creating my own project, But I am getting following error even after I copied all related files.
***********************error LOG ************************
> main_kinetis.c: 5 warnings, 0 errors linking... .\USB_DEV.axf:
> Warning: L6304W: Duplicate input file .\startup_mk60n512md100.o
> ignored. .\USB_DEV.axf: Error: L6320W: Ignoring --entry command.
> Cannot find argument 'Reset_Handler'. .\USB_DEV.axf: Warning: L6320W:
> Ignoring --first command. Cannot find argument '__Vectors'. Not enough
> information to list image symbols. Not enough information to list the
> image map. Finished: 2 information, 2 warning and 1 error messages.
> ".\USB_DEV.axf" - 1 Error(s), 7 Warning(s). Target not created
Please help me in resolving this issue.

Related

Flash Download Failed in Keil uVision 5

I'm trying to load an LED sequencing program onto my STM32F446RE, but every time I build the program, I get this error.
.\Objects\Lab #5 LED Sequencing.axf: error: L3906U: Malformed via file '.\Objects\Lab #5 LED Sequencing.lnp'.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\Objects\Lab #5 LED Sequencing.axf" - 1 Error(s), 2 Warning(s).
I've tried erasing my flash memory using ST-Link Utility, but it still won't build or load to the target. I believe it might be bricked, but I really don't know. Any response is appreciated

How could I resolve a non-working Eclipse indexer?

My Eclipse C indexer does not work, in the .metadata/.log file it writes an entry:
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:46:02.674
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,008 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
In the indexer settings "Index source and header files opened in editor" is ticked, so it should find at least one file, which is opened in my editor.
How could I resolve this?
This is a C project, which I created with File --> New --> C/C++ Project, and I use and external Makefile to build. It is the same as in all my other project, but the others work fine, only this does not.
Thanks in advance!
The entire log:
!SESSION 2022-10-24 16:16:41.372 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=1.8.0_172
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product
!ENTRY org.eclipse.jface 2 0 2022-10-24 16:16:51.319
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2022-10-24 16:16:51.319
!MESSAGE A conflict occurred for ALT+CTRL+T:
Binding(ALT+CTRL+T,
ParameterizedCommand(Command(org.eclipse.search.ui.performTextSearchWorkspace,Find Text in Workspace,
Searches the files in the workspace for specific text.,
Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#407b41e6,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,hu,,system)
Binding(ALT+CTRL+T,
ParameterizedCommand(Command(org.eclipse.tm.terminal.connector.local.command.launch,Open Local Terminal on Selection,
,
Category(org.eclipse.tm.terminal.view.ui.commands.category,Terminal Commands,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#3291d9c2,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.egit.ui 2 0 2022-10-24 16:17:03.170
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\mester.adam'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.epp.logging.aeri.ide 2 17 2022-10-24 16:17:07.658
!MESSAGE Server ‘org.eclipse.epp.logging.aeri.ide.server’ failed with exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $. ; version: 2.0.7.v20170906-1327
!STACK 0
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
at com.google.gson.Gson.fromJson(Gson.java:887)
at com.google.gson.Gson.fromJson(Gson.java:852)
at com.google.gson.Gson.fromJson(Gson.java:801)
at org.eclipse.epp.internal.logging.aeri.ide.server.json.Json.deserialize(Json.java:91)
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.refreshConfiguration(IO.java:66)
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection.startUp(ServerConnection.java:124)
at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62)
at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
... 9 more
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.381
!MESSAGE Enablement expression is missing for descriptor type org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.399
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.413
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:19:33.058
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,145 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:37:01.920
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,127 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:37:53.391
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,103 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
I have tried the followings:
rebuild index
close and reopen project, and then rebuild index
refresh project, and then rebuild index
delete the project and reimport it into the workspace
None of them helped.
Finally: I have deleted the project and created a new project with my files, but I had to create and re-configure all my build configurations. Now it works fine, the indexer too, but it is strange, because the workspace settings are the same, and I have set the project settings to the same too. So I don't accept my method as a solution, it is just a workaround. But now, I can't reproduce the issue, so I really don't know, how to find the proper solution for this problem.

How can I get Shake to print errors only once?

If I ever have an error during a build, I see it twice
# ghc (for _build/lib/WCLoan.o)
# ghc (for _build/lib/WCLoan.o)
[2 of 2] Compiling WCLoan ( src/WCLoan.hs, _build/lib/WCLoan.o )
src/WCLoan.hs:18:1: error:
Parse error: module header, import declaration
or top-level declaration expected.
|
18 | imAnError
| ^^^^^^^^^
Error when running Shake build system:
* _build/lib/WCLoan.o
user error (Development.Shake.cmd, system command failed
Command: ghc -this-unit-id wcloan-0.0.1 src/WCLoan.hs -outputdir_build/lib -isrc:app:test -dynamic-too -O2 -j12 -fPIC -Werror -Wall -package-name wcloan-0.0.1 '-package base
-4.12.0.0' '-package calc-0.0.1' '-package vector-0.12.0.3'
Exit code: 1
Stderr:
src/WCLoan.hs:18:1: error:
Parse error: module header, import declaration
or top-level declaration expected.
|
18 | imAnError
| ^^^^^^^^^
)
I see that the error occurs during build, then is also shown under the line
Error when running Shake build system:
Is there anything I can do to have it show only once?
The error messages are coming from two distinct locations:
The first one is being printed by a command that Shake runs and writes to stderr with an error message. When you do cmd ... Shake defaults to EchoStderr True (print out the stderr stream to the console), but you can pass EchoStderr False to not echo the stderr.
The second is an exception being bubbled up by Haskell, as a ShakeException, which then gets printed out at the end, and includes the stderr. When you do cmd ... Shake defaults to WithStderr True to include the stderr in the exception, and you can pass WithStderr False to not include the stderr in the exception.
However, because of the way Shake works, you may find that the error message comes out quite a long way before the end of the full Shake command. Therefore, I recommend leaving WithStderr as it is, if you do want to see stderr only once.

Compiler error linking objects for remote compiling in visual studio

Currently I run a freenas jail so I can compile my c code, that uses some POSIX functions. The jail is fresh, all I did was enable SSH and 'pkg install gcc'. However I get the following error:
1>Starting remote build
1>Compiling sources:
1>main.c
1>cc1 : warning : command line option '-fthreadsafe-statics' is valid for C++/ObjC++ but not for C
1>cc1 : warning : command line option '-frtti' is valid for C++/ObjC++ but not for C
1>Linking objects
1>/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.1/6.4.0/../../../libstdc++.so : error : undefined reference to `__cxa_thread_atexit_impl#FBSD_1.5'
1>collect2 : error : ld returned 1 exit status
1>Done building project "testingdesktop.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't have a clue what's going on, something is missing but I am not sure why.

Tesseract-OCR training problems

I follow the steps in this tutorial http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3 and gives me error on the part
mftraining-F-U font_properties unicharset nobatch.tr
The error I get is:
Failed to load font_properties
Reading nobatch.tr ...
nobatch has no defined properties.
!"Missing font_properties entry is a fatal error!":Error:Assert failed:in file mftraining.cpp, line 281
Segmentation fault
What you should do is to read superscripts and subscripts.
Any help or advice from any OCR to do this is appreciated.
Create file "font_properties"
With data:
font name 1 0 0 1 0
R.T.M again is there about font
when i followed that tutorial i had a same problem
'xxx.font_properties' change to 'font_properties' and problem fixed

Resources