|
Post by sparrowdclxvi on Jan 1, 2017 10:46:56 GMT
Hi all
Happy new year.
I've started playing around with a ShieldBuddy, and can get it running just fine using the Arduino IDE. I've just used the BoardEOLTest sketch.
However, I'm struggling to get Eclipse to run that project. I've opened the Eclipse workspace, not the Arduino sketch. When I open it, I get a message saying the folder structure has changed, and I need to refresh the project. This deletes 3 folders. Compiling the project then creates some errors, which I resolved by adding two missing includes:
#include "wiring_constants.h"
#include "variant.h" This allows the project to compile.
Trying to run the project then gives the following error:
Error starting process.
Cannot run program "C:\Hitex\AURduinoIDE\Eclipse\AurduinoMulticoreUser\iROM\AurduinoMulticoreUser.elf": Launching failed
Cannot run program "C:\Hitex\AURduinoIDE\Eclipse\AurduinoMulticoreUser\iROM\AurduinoMulticoreUser.elf": Launching failed
Cannot run program "C:\Hitex\AURduinoIDE\Eclipse\AurduinoMulticoreUser\iROM\AurduinoMulticoreUser.elf": Launching failed
At this point, I'm stuck.
I can use the basic board test, and that works as expected using putty to read the output and send a character to make the LED flash.
Obviously I have an Eclipse issue, but not having used it before, I don't really know where to start. Any suggestions appreciated.
|
|
|
Post by Admin on Jan 1, 2017 13:26:33 GMT
Are you using the Eclipse provided with the Aurix free toolchain?
|
|
|
Post by sparrowdclxvi on Jan 1, 2017 20:23:20 GMT
Yes, I am. I installed the free toolchain, Arduino 1.6.11 and the Hitex add in as per the instructions in the Aurduino user manual.
|
|
|
Post by mjb on Jan 3, 2017 15:38:12 GMT
I just checked the Eclipse installation and it all works. It is very odd that you had to add extra header files. The default sketch is the BoardEOLTest.cpp and this does not use wiring_constants.h at all. The Eclipse as-shipped is not setup to run the PLS debugger as a perspective. This is something we intend to do. The instructions for the free entry toolchain shows how to set this up. www.hitex.co.uk/fileadmin/uk-files/downloads/ShieldBuddy/eclipse-quickstart-en.pdf
|
|
|
Post by sparrowdclxvi on Jan 3, 2017 18:54:54 GMT
Apologies, wiring_constants.h was a red herring. I right clicked on an undefined constant, and the compiler chose wiring_constants.h as the class the constant was defined in. Removing that still allows it to compile, as it's defined in variant.h.
However, I now think that this is a just a problem with how I've opened the workspace or file.
I started following the document above, but I don't have a LCD to test the timer example, so I've opened the HelloSerial example instead. This compiles, and tries to upload to the board, but I then get an invalid target error in the debugger. I have a ShieldBuddy with a TC275TP-64. Which target should I select?
|
|
|
Post by mjb on Jan 4, 2017 9:24:34 GMT
Please select the "Application Kit with TC275TU (multicore configuration)"

|
|
|
Post by sparrowdclxvi on Jan 6, 2017 20:52:46 GMT
Progress.
I can now set up the debug configuration.
However, I got a non-specific error about another module failing compilation. It took a while to work out, but when I opened the uart_int.c class, the IDE suddenly registered 8 errors. All relating to UARTBASE not being defined. I then opened all the classes, and the only other one giving an error is uart_init_int.c. Another 53 errors.
Can anyone else reproduce? I reproduced on both my laptop and my desktop.
Is it possible to upload a picture? I'd also like to show the IDE layout on a 4k screen. It's not great.
|
|
|
Post by mjb on Jan 6, 2017 21:48:10 GMT
Odd, there is no uart_init_int.c in the ShieldBuddy/Arduino environment! There is a local UARTBASE declared in the SerislClass::begin(). Please can you send your Eclipse workspace as something weird is going on here.
|
|
|
Post by sparrowdclxvi on Jan 6, 2017 23:58:16 GMT
Sorry, my mistake. Those are in the HelloSerialInterrupt project. HelloSerial has uart_poll.c and uart_init_poll.c. These are the classes with the errors. I now have the following classes in src: hello.c (compiles) system_tc27x.c (compiles) uart_init_poll.c (errors) uart_poll.c (errors) user_sprintf.c (compiles) Not surprisingly, uart_init_int.c and uart_init_poll.c have simmilair errors, as do uart_poll.c and uart_int.c I have uploaded the workspace here: app.box.com/s/8vtjdozlpx7p0tv83hseilxku2oukx9u
|
|
|
Post by mjb on Jan 7, 2017 8:01:47 GMT
OK, this looks like an example from the free entry toolchain Eclipse environment, not the ShieldBuddy Eclipse!
|
|