[WP7605][SW] Could not show printf()

are you compiling VScode?

No, I tested Ubutntu16.04 by using leaf shell.

Have you done a “make clean” before compilation?

“make clean” was failed (male: *** No rule to make target ‘clean’. Stop.)

And I also failed mkapp -t wp76xx helloWorld.adef, it was shown “ninja: error”…

(1) Download leaf shell
(2) leaf setup
(3) Compile toolchain
(4) execute (3)
(5) try to mkapp -t wp76xx helloWorld.adef, but it was failed as above.

seems this is not related to printf(), can you try to comment out printf() and see if you can make clean and mkapp???

I remember you used Developer studio before, you can switch back to Developer studio and see if you can compile first

20201005_ds.log (18.3 KB)

Please check the above console log, my helloWorld project was failed build in developer studio.

BTW, the test module was installed legato 20.04, but DS was 19.02, because there is no selection as 20.04 in DS.

i think you need to install the developer studio again as previously you can build helloworld app.

Here also teaches you how to import new legato package to DS:

Also you can consider to use VSCODE to compile helloworld app.

Thank you for information about installing latest version, but DS could not show any files when I select “leaf-data” for toolchain and legato…

**

Also you can consider to use VSCODE to compile helloworld app.

Currently, I would like to focus on the using leaf or dev studio, because I have never been confirmed VSCODE.

In DS, go to the Package Manager perspective

In Window > Preferences, untick the Developer Studio > Package Manager > Work only with baseline packages option

image

Thanks a lot!.
However, adding toolchain and legato could not be selected in “New → Create legato Application”…

Please see here, espeacially on step 3( for your case, you need to click “Create” instead of “Duplicate”):

you’ll need to select both the new Toolchain and the Application Framework in the Package selection tabs.

you’ll need to select both the new Toolchain and the Application Framework in the Package selection tabs.

Adding toolchain and legato could not see in “Package selection”…

did you really install the toolchain and legato framework?
Maybe you can also see this document and see if there is any missing steps.

DevStudio - Import Leaf Package.docx (394.4 KB)

Thanks, I can setup new toolchain and legato.

However, build error was still happened as follows…

You should see the “console” tab, not the “problems” tab.
Can you compile out the hello.update file?
If yes, you can ignore those errors.

No, .update was NOT created.
And “console” tab show as follows, it seems there is no Error message…

New Empty File.log (8.4 KB)

The .update file should be in “home/macnica/Downloads/DeveloperStudio/workspace/helloWorld_ds/Target_Legato_Debug”
Please check again.

Oh, I confirmed! Sorry for mistake.
I confirmed helloWorld app was shown the message of LE_INFO correctly.

Next step, I add printf() in this helloWorld, instead of LE_INFO.
Build was succeeded, but there is no message of printf() as follows.

printf_console.log (7.6 KB)

Do you see this problem in official r13?
I suggest you start with r13 which is official release

Build was succeeded, but .update file was not created as follows.
(It’s same result when LE_INFO was used.)

There is no helloWorld_dsComponent folder in your project!
Also there is no adef file…

I re-created new project that was used official R13.
However, build was failed as the follows…

Should I connect Device before building?

seems it is corrupted from your console message.
no idea on this as this is a straight forward task where R13 package can be downloaded in package manager in Developer studio.
Maybe you can try another PC.