Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Library files of Energia not visible in Explorer (Read 14584 times)
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Library files of Energia not visible in Explorer
Apr 1st, 2014 at 5:15pm
Print Post  
Hi Tim
I installed and tested Energia for the first time today and found that I cannot see the library examples or the library files in the Explorer. The Energia libaries are located under the /hardware/"board type"/libraries. This is not the same as the Arduino structure and I can't seem to find a place to set that right.
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #1 - Apr 1st, 2014 at 6:21pm
Print Post  
I also have this error. It seems that the things are not found where they are expected to be.

Code
Select All
Compiling 'EthernetWebserver' for 'LaunchPad (Tiva C) w/ tm4c129 (120MHz)'
ld.exe:cannot open linker script file c:\energia\hardware\lm4f\cores\lm4f\lm4fcpp.ld: Invalid argument
collect2.exe*:error: ld returned 1 exit status
Error creating .elf 

  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #2 - Apr 1st, 2014 at 6:36pm
Print Post  
Hi Marius,

Yes the examples need re-work. Hopefully we are almost on a stable release so can concentrate on these other things.

Which version of vm are you using?
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #3 - Apr 1st, 2014 at 6:54pm
Print Post  
Tim
I am using 1.1403.31. Any idea about the error? There seem to be no such file in that location.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #4 - Apr 1st, 2014 at 6:58pm
Print Post  
I'll hve to re-test it. When I last looked the lmf4 was a stellar pad or something like that. Maybe the system might need some minor tweak for the tiva

Can you hold the shift key and compile in the energia ide and email the output? Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #5 - Apr 1st, 2014 at 6:59pm
Print Post  
pss: we can hack "visual micro program files/micro platforms/energia/lmf4/platform.txt" if we need. It needs some polish anyway
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #6 - Apr 1st, 2014 at 7:02pm
Print Post  
I see they released a new ide on the 18th March
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #7 - Apr 1st, 2014 at 7:13pm
Print Post  
I have the latest release, just checked to make sure.

It compiles correctly in the IDE.

Code
Select All
C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++ -c -g -Os -w -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -DF_CPU=120000000L -MMD -DARDUINO=101 -DENERGIA=12 -IC:\energia\hardware\lm4f\cores\lm4f -IC:\energia\hardware\lm4f\variants\launchpad_129 -IC:\energia\hardware\lm4f\libraries\Ethernet er.cpp -o er.cpp.o
[C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=120000000L, -MMD, -DARDUINO=101, -DENERGIA=12, -IC:\energia\hardware\lm4f\cores\lm4f, -IC:\energia\hardware\lm4f\variants\launchpad_129, -IC:\energia\hardware\lm4f\libraries\Ethernet, er.cpp, -o, er.cpp.o]
C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++ -c -g -Os -w -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -DF_CPU=120000000L -MMD -DARDUINO=101 -DENERGIA=12 -IC:\energia\hardware\lm4f\cores\lm4f -IC:\energia\hardware\lm4f\variants\launchpad_129 -IC:\energia\hardware\lm4f\libraries\Ethernet -IC:\energia\hardware\lm4f\libraries\Ethernet\utility C:\energia\hardware\lm4f\libraries\Ethernet\Ethernet.cpp -o et.cpp.o
[C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=120000000L, -MMD, -DARDUINO=101, -DENERGIA=12, -IC:\energia\hardware\lm4f\cores\lm4f, -IC:\energia\hardware\lm4f\variants\launchpad_129, -IC:\energia\hardware\lm4f\libraries\Ethernet, -IC:\energia\hardware\lm4f\libraries\Ethernet\utility, C:\energia\hardware\lm4f\libraries\Ethernet\Ethernet.cpp, -o, et.cpp.o]
C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++ -c -g -Os -w -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -DF_CPU=120000000L -MMD -DARDUINO=101 -DENERGIA=12 -IC:\energia\hardware\lm4f\cores\lm4f -IC:\energia\hardware\lm4f\variants\launchpad_129 -IC:\energia\hardware\lm4f\libraries\Ethernet -IC:\energia\hardware\lm4f\libraries\Ethernet\utility C:\energia\hardware\lm4f\libraries\Ethernet\EthernetClient.cpp -o etClient.cpp.o
[C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=120000000L, -MMD, -DARDUINO=101, -DENERGIA=12, -IC:\energia\hardware\lm4f\cores\lm4f, -IC:\energia\hardware\lm4f\variants\launchpad_129, -IC:\energia\hardware\lm4f\libraries\Ethernet, -IC:\energia\hardware\lm4f\libraries\Ethernet\utility, C:\energia\hardware\lm4f\libraries\Ethernet\EthernetClient.cpp, -o, etClient.cpp.o]
C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++ -c -g -Os -w -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -DF_CPU=120000000L -MMD -DARDUINO=101 -DENERGIA=12 -IC:\energia\hardware\lm4f\cores\lm4f -IC:\energia\hardware\lm4f\variants\launchpad_129 -IC:\energia\hardware\lm4f\libraries\Ethernet -IC:\energia\hardware\lm4f\libraries\Ethernet\utility C:\energia\hardware\lm4f\libraries\Ethernet\EthernetServer.cpp -o etServer.cpp.o
[C:\energia\hardware\tools\lm4f\bin\arm-none-eabi-g++, -c, -g, -Os, -w, -fno-rtti, -fno-exceptions, -ffunction-sections, -fdata-sections, -mthumb, -mcpu=cortex-m4, -mfloat-abi=hard, -mfpu=fpv4-sp-d16, -fsingle-precision-constant, -DF_CPU=120000000L, -MMD, -DARDUINO=101, -DENERGIA=12, -IC:\energia\hardware\lm4f\cores\lm4f, -IC:\energia\hardware\lm4f\variants\launchpad_129, -IC:\energia\hardware\lm4f\libraries\Ethernet, -IC:\energia\hardware\lm4f\libraries\Ethernet\utility, C:\energia\hardware\lm4f\libraries\Ethernet\EthernetServer.cpp, -o, etServer.cpp.o]

 

« Last Edit: Apr 1st, 2014 at 9:05pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #8 - Apr 1st, 2014 at 7:16pm
Print Post  
Sorry that is not complete. I did not realize it was so big. Copied into a file attached.
I forgot - no attachments Sad
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #9 - Apr 1st, 2014 at 7:31pm
Print Post  
Looks like we only need the link etc. The compile seems okay. There might be a new board property that tells us which .ld file to use.

T
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #10 - Apr 1st, 2014 at 7:37pm
Print Post  
I take it back. I have downloaded the latest version. Where is the EthernetWebserver lib?
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #11 - Apr 1st, 2014 at 7:42pm
Print Post  
Under /libraries/Ethernet/xxx

The boards.txt file call for lm4fcpp_snowflake.ld but the compile output shows lm4fcpp.ld . The underscore causes the confusion I think.
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #12 - Apr 1st, 2014 at 7:43pm
Print Post  
Full path = C:\energia\hardware\lm4f\libraries\Ethernet
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #13 - Apr 1st, 2014 at 7:48pm
Print Post  
Oh okay I see vm was hard coded in the config file for the old .ld name but it should have been taken from boards.txt

try changing the following line in platform.txt in "program files/visual micro/visual micro for arduino/micro platforms/energia/lm4f/"

from

Code
Select All
compiler.ldflags=-T "{runtime.ide.path}/hardware/lm4f/cores/lm4f/lm4fcpp.ld" 



to

Code
Select All
compiler.ldflags=-T "{runtime.ide.path}/hardware/lm4f/cores/lm4f/{ldscript}" 




Then re-start the ide or click "tools>visual micro>reload tool chains"
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #14 - Apr 1st, 2014 at 7:55pm
Print Post  
Bingo!!
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #15 - Apr 1st, 2014 at 8:01pm
Print Post  
Great. Need to test the other boards sometime but the lm4f's should be okay
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Library files of Energia not visible in Explorer
Reply #16 - Apr 1st, 2014 at 8:21pm
Print Post  
Thanks for the help. 
Now there is a bug in the example or library as the client does not show to be connected after the first page is served.

It's never damn easy  Undecided
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library files of Energia not visible in Explorer
Reply #17 - Apr 1st, 2014 at 8:41pm
Print Post  
Uggh
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint