Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bharani_B_Intel
Employee
1,327 Views

Enabling Console on ARC Genuino 101

Jump to solution

I flashed Zephyr OS on Arduino/Genuino 101 board and trying to run an I2C Application on the ARC core. I saw that same application ran perfectly on Galileo Gen 2 board. I am unable to see any Console output from ARC core to check if application ran perfectly.

Please Suggest me any way to enable Console output on ARC.

0 Kudos
1 Solution
Bharani_B_Intel
Employee
58 Views

Hello Andres,

Thanks for the suggestion, I was able to get both core logs on the FTDI serial console connected on tx,rx pins on Arduino header with following configuration on zephyr prj.conf

For X86 core side application, the prj.conf should contain -

prj.conf:

CONFIG_PRINTK=y

CONFIG_ARC_INIT=y

# System log level 4 is debug log level, by default is is 0 which means disable printk's from sensor core

CONFIG_SYS_LOG_ARC_INIT_LEVEL=4

For sensor core side application prj.conf need not have any specific configuration.

prj.conf:

# Nothing needed here

This configuration resolved my problem and I was able to see printk's from ARC or sensor core on the serial console.

Thanks,

Bharani

View solution in original post

5 Replies
idata
Community Manager
58 Views

Hello Bharani.Bhuvanagiri,

 

 

Thank you for interest in the Intel® Curie™ Boards.

 

 

I understand you want to gain access to the console output on ARC.

 

 

Please check the following link: https://www.zephyrproject.org/doc/boards/x86/arduino_101/doc/board.html, especially the Connecting Serial Output section.

 

 

Please follow the steps provided and let me know if you need further assistance.

 

 

Regards,

 

Andres V.
Bharani_B_Intel
Employee
58 Views

Hi Andres V,

Thanks for the reply.

I already connected USB-TTL and I am able to see the serial console Logs for X86_core.

I read that we have 2 cores -

1) X86_core (32 MHz x86 (Intel Quark* processor))

2) sensor_core (32 MHz Argonaut RISC Core (ARC)* EM processor)

we need to build 2 images for zephyr to run on Arduino 101.

arduino_101 for X86-core

arduino_101_sss for sensor_core

I Built a sample hello world application for both the cores and flashed using dfu-util.

I was able to see only printk log of x86 application on minicom connected through USB-TTL cable on UART Tx,Rx pins on IO header.

I am unable to see any log from sensor_core application.

Please help me in Enabling Console output for sensor_core (ARC core). This helps in debugging my I2C application further.

Thanks,

Bharani

idata
Community Manager
58 Views

Hello Bharani,

 

 

Thank you for the information provided.

 

 

In the link that I previously provided ( https://www.zephyrproject.org/doc/boards/x86/arduino_101/doc/board.html), there is a Debugging section for the Sensor Subsystem Core (ARC). That sections explains how to launch the debug server on the ARC core, and how to connect to the debug server at ARC from a second console.

 

 

Please let me know the outcome of the previous suggestion.

 

 

Regards,

 

Andres V.
Bharani_B_Intel
Employee
59 Views

Hello Andres,

Thanks for the suggestion, I was able to get both core logs on the FTDI serial console connected on tx,rx pins on Arduino header with following configuration on zephyr prj.conf

For X86 core side application, the prj.conf should contain -

prj.conf:

CONFIG_PRINTK=y

CONFIG_ARC_INIT=y

# System log level 4 is debug log level, by default is is 0 which means disable printk's from sensor core

CONFIG_SYS_LOG_ARC_INIT_LEVEL=4

For sensor core side application prj.conf need not have any specific configuration.

prj.conf:

# Nothing needed here

This configuration resolved my problem and I was able to see printk's from ARC or sensor core on the serial console.

Thanks,

Bharani

View solution in original post

idata
Community Manager
58 Views

Hello Bharani,

I'm glad to hear that you could solve the issue.

Thank you very much for sharing your experience with the community, we really appreciate it.

Regards,

 

Andres
Reply