IAR workbench Nuvoton MS51FB9AE - iar

I am working on Nuvoton MS51FB9AE microcontroller with IAR workbench(IAR EW8051), I installed the IAR EW8051 and Nu-Link_IAR_Driver_V3.08.7313r.zip
Then I opened IAR and for the first trial I opened a pre-made project from the BSP (MS51_Series_BSP_IAR_V1.00.003.zip), on opening the project I got,
I clicked yes,
Now when I Make the project I got the following error,
I could not find where am I wrong. Please help me with it.
Thanks.

Related

MySql connector-c++ wont link in QtCreator but works fine locally on raspberry pi3

Firstly, thank you in advance for at least reading this question.
Secondly, feel free to call me an idiot if this is a "no brainer"
Now down to the issue at hand...
I am running Ubuntu 16.04 (64bit) with QT Creator as my IDE and on the whole it works great. I can cross compile for the Raspberry Pi3 (running raspbian) and also compile plugins for X-Plane.
Everything was going great until I needed to implement MySql into my project. That's when it all went south.
I can not use the Qt library for this as X-Plane does not like anything Qt related in its plugins. But that is fine, I have connector-c++ working on that machine and it connects to my MySql server and does everything it's supposed to.
I think I have read just about every forum and watched every youtube video on this but can not get Qt Creator to compile with connector for the raspberry pi.
I wrote/compiled a test app locally (with g++) on the pi and it works great. However for some reason (government plot maybe?) it refuses to link the libraries when compiling under Qt Creator.
The error I get when compiling in QtCreator is:
undefined reference to `get_driver_instance'
Currently,
I have followed the instructions for setting up a cross compiler here:
https://wiki.qt.io/RaspberryPi2EGLFS
Downloaded the connector code from here:
git clone https://github.com/mysql/mysql-connector-cpp
I have followed the instructions for compiling connector-c++ here:
https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source-unix.html
And I have banged my head 1000x on a brick wall here:
(picture of blood stained wall not available)
Also, I have tried compiling connector on my Ubuntu pc with paths to the pi's sysroot etc. but i think it made a 64bit version which causes Qt Creator to have a dummy spit about "unrecognized format".
I am hoping that this is just me having a "senior moment" and that someone can point me in the right direction.
To save putting up irrelevant logs/code I will wait until someone asks for it and then copy/paste what they need.
Again, thanks in advance and know that I will be eternally grateful for any light on this matter (preferably before I go even insanerer)
Well after 2 weeks of pain, I have solved this problem. Here is what I think is the issue:
Firstly, I found that mysqlcppconn is not needed (at least for me) and used the mysql libraries in /usr/lib
Secondly, the symlinks to libmysqlclient.so.6.0.22 were by default:
libmysqlclient.so.6 -> libmysqlclient.so.6.0.22
The compiler was looking for libmysqlclient.so which didn't exist. So I created the link (libmysqlclient.so -> libmysqlclient.so.6) and it worked!!
Thanks to all who helped.

How to burn a program in flash in IAR Workbench?

I am using IAR Embedded Workbench IDE to develop an embedded solution for the Renesas RL78/G13. I am able to compile and run the project in debug mode. Now I would like to burn the program to flash in release mode. Can someone tell me how to do this?
Maybe the answer is a little bit late, but another option straight from IAR is to go to Make [F7 key] the project and the go to Menu Project -> Download -> Download active application.
Be carefull that the Reset line of the microncontroller is free so nothing sets it to OV, which will stop the microcontroller from running
IAR version for RL78 1.40.1
Certainly, you can use the Renesas Flash Programmer for downloading the hex file into the microcontroller. The Renesas flash Programmer install package, you can get from the website from supplier.

Eclipse CDT C++ - [Main] program not specified

Hi This is my first time working with C++ on eclipse. I'm using cygwin.
I'm just trying to create a simple hello world program. The build is successful but when I try to run, it says "launch failed. binary not found".
In settings which I check the run configuration, there's nothing listed on clicking "search project..". Am I doing something wrong?
Would really appreciate any help on this. Thanks!
You probably found your solution, but here's for anyone else who might have the same problem:
If you want to use cygwin toolchain then you'll have to build a makefile first, and then build your project. You can follow the official guide here: http://help.eclipse.org/indigo/index.jsp (C/C++ Development User Guide >> Getting Started >> Creating a Makefile project)
If you don't mind changing the cygwin toolchain: The fastest way to build and run a C/C++ project would be to create another project, this time un-ticking the show project types and choose as MINGW GCC toolchain (check 1st image below). After you create your project, you just right click on project and choose the rebuild option (check 2nd image below).

How to get the cutil64D.lib file in cuda

I am trying to build a cuda program but it is giving me error as cutil64D.lib file not found.
I tried to build the file by opening the cutil_vs2008.sln solution file in vs 2008 and build it,but still I am not getting the cutil64D.lib.
Please suggest me something.
Thanks
You need to set the platform to x64 and the mode to debug when building cutil_vs2008.sln.
CUTIL is a simple utility library designed for use in the CUDA SDK samples, not part of CUDA.
You can build the solution under %SDK_Dir%\C\common\cutil_vs2008.sln by setting platform to x64 and the mode to debug, then you will get what you want under %SDK_Dir%\C\common\lib\x64.
But, if you've already had this lib under some directory, setting platform and mode wrong could invite "can not find lib" error above.

Eclipse debugger: ".settings does not exist" error

I am developing a C++ application in Eclipse under Ubuntu Linux 10.10. When I launch the application that I develop in debug mode then Eclipse correctly switches to the debug perspective, but it tries to open a file (?) called ".settings", which does not exist in my project directory (but there is indeed a directory with that name there). I can see that Eclipse supends the running thread at the right source code location (based on the stack trace), but that source file is not opened, nor does the "debug step" move the current instruction pointer to the next statement.
It basically seems to be the same error as here: http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg08774.html -- unfortunately the solution there is to update Eclipse to 3.1.5, but I am using version 3.5.2 already, so that does not do the trick for me.
Any suggestions?
Thanks in advance, Matthias
Try to open all projects that are on the source file's path. I've experienced something similar with Java and a hierarchical project and that did solve my problem.