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
Normal Topic Problem for compiling Energia example (Read 5313 times)
pmo49
Newbies
*
Offline


Posts: 3
Joined: Jul 20th, 2017
Problem for compiling Energia example
Jul 20th, 2017 at 8:56am
Print Post  
Hi,

I recently bought a TI CC1350 board. And would like to use it with great Visual Micro of course!
But no luck, it doesn't compile whereas i have no issue with others arduino compatible mcus (esp32, nrf52 etc..).

So maybe i'm doing something wrong??

Here what i get, if i try to compile the Blink example from Energia examples folder :
Code
Select All
Compiling 'Blink' for 'LaunchPad w/ cc1350 EMT (48MHz)'

Blink.ino: 1:22: fatal error: wprogram.h: No such file or directory
   #include "wprogram.h"
   compilation terminated



	An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'Blink'
 



If for example i change board : 
Code
Select All
Compiling 'Blink' for 'MSP-EXP430F5529LP'
Error compiling core

Build failed for project 'Blink'
msp430-gcc*: error: Files: No such file or directory

msp430-gcc*: error: (x86)\energia-1.6.10E18\hardware\tools\msp430\include: No such file or directory
 



I just filled my Energia Ide path in Configuration location for Energia 1.6: D:\Program Files (x86)\energia-1.6.10E18
Maybe something more to do??

Any ideas please ?
« Last Edit: Jul 20th, 2017 at 8:57am by pmo49 »  
Back to top
 
IP Logged
 
pmo49
Newbies
*
Offline


Posts: 3
Joined: Jul 20th, 2017
Re: Problem for compiling Energia example
Reply #1 - Jul 20th, 2017 at 3:01pm
Print Post  
changed of place my Energia install (to C root) and it fixed compil error for others boards.

But for CC13x boards, i still get the "wprogram.h" lib linking error..
« Last Edit: Jul 20th, 2017 at 3:01pm by pmo49 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem for compiling Energia example
Reply #2 - Jul 20th, 2017 at 11:06pm
Print Post  
Hi,

Thanks for the info

It might be the energia defs are missing some quotes around path names which accounts for a simpler ide path working. I suspect that java handles .exe args without quotes better than c#.

New Energiai CC13x Boards

There is a change in the next release that correctly resolves the arduino.g or wprogram.h includes. The CC13x has the arduino.h but in a sub folder of the core which is different to all other boards. Some backward compatible logic of visual micro incorrectly assumed a missing ardiuino.h was an older board type that uses wprogram.h. That logic has been reversed so you won't get that build issue.

However, once past that error, the CC13x also uses something that other arduino boards do not use which is it assumes the IDE is running in a java environment. You will need to set the location of the EnergiaIDE java in your windows PATH environment variable.

Without the path to java you will see an error similar to this.

Process: "java" "-jar" "C:\Users\[name]\AppData\Local\Energia15\packages\energia\tools\ino2cpp\1.0.2/ino2cpp.jar" -o "D:\System\WinTemp\VMBuilds\sketch_apr29a\energia_LAUNCHXL_CC1310\Release/" -T "C:\Users\[name]s.mk.template" -r "C:\Users\[name]\AppData\Local\Energia15\packages\energia\tools\ino2cpp\1.0.2" -n sketch_apr29a.ino "C:\Users\[name]\Documents\Energia\sketch_apr29a" msp432:MSP_EXP432P401R"
The system cannot find the file specified

The next release is here for you to try. I expect the intellisense for the new architectures will still need a tweak but with the PATH configured for java it should be building and uploading

https://1drv.ms/u/s!AsT00oFsGAmRkcdvRyZ4AtDKAeG_mQ






  
Back to top
IP Logged
 
pmo49
Newbies
*
Offline


Posts: 3
Joined: Jul 20th, 2017
Re: Problem for compiling Energia example
Reply #3 - Aug 6th, 2017 at 6:58pm
Print Post  
Hi. 
Sorry for the late feedback. 
I tried your update. Thank you. It fixed above compilation errors. But i'm getting a new one :

Code
Select All
Compiling 'Blink' for 'LaunchPad w/ cc1350 EMT (48MHz)'

boot.am3g(startup.om3g)*: In function startupC
startup.c*:76: undefined reference to main

Error linking for board LaunchPad w/ cc1350 EMT (48MHz)

Build failed for project 'Blink'
collect2.exe*: error: ld returned 1 exit status
 



Any idea please ?
« Last Edit: Aug 6th, 2017 at 7:02pm by pmo49 »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint