<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal</link><description>mpu6050 connections 
 vcc--&amp;gt;vdd 
 gnd--&amp;gt;gnd 
 scl--&amp;gt;pin 27 
 sda--&amp;gt;pin 26 
 
 Main.c 
 
 mpu6050.h 
 
 mpu6050.c 
 
 
 
 
 i also tried in putty, but nothing is showing in the terminal 
 any answers, without hesitation ask any question.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 08:18:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal" /><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/278369?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 08:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:940b8450-da91-4f0c-a79e-d7449559207e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote userid="86529" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/278330#278330"]Thank you Karl for helping me!!![/quote]
&lt;p&gt;No problem at all, saver! I am happy to help! :)&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/278330?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 18:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2ec0214-5f52-4680-b4d1-741522d53f43</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;Thank you Karl for helping me!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/277753?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 09:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b90c9fa3-d864-41a4-9fc8-252ae96aa1ef</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="saver"]Thanks, now it is showing the gyro meter values, very much Thank you!!![/quote]
&lt;p&gt;Fantastic! I am glad we were able to identify and resolve the issue.&lt;/p&gt;
[quote user="saver"]I don&amp;#39;t understand what you mean by this, can you please elaborate.[/quote]
&lt;p&gt;The logger module comes with a great feature called &amp;quot;deferred logging&amp;quot;, you can read about this in &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_nrf_log.html"&gt;its entirety in the logger documentation&lt;/a&gt;, but in essence, it allows you to defer logger processing until it is suitable for the application.&lt;br /&gt;Sometimes, you might want to write logs during timing-critical operations, adding a bunch of logging may then cause trouble for your timing sequences, and otherwise mess with your application. You may then instead use deferred logging, which lets you control&amp;nbsp;&lt;em&gt;when&lt;/em&gt; the processing ( and output ) of the log will take place.&lt;br /&gt;&lt;br /&gt;If you take a look through the examples, the NRF_LOG_PROCESS function is often called as a part of the&amp;nbsp;&lt;em&gt;idle_state_handler&lt;/em&gt;, i.e when the CPU has nothing more important to do, it can process its logs and go to sleep. This is a great way to use deferred logging, since it will minimize the logging effect on your application.&lt;br /&gt;&lt;br /&gt;Does this make the deferred logging option more clear? Please do not hesitate to ask, if anything still should be unclear.&lt;/p&gt;
[quote user="saver"]yes, but can you also tell me how to calibrate the sensor.[/quote]
&lt;p&gt;Do you have the sensors datasheet? I am not familiar with the particular sensor you are working with, but I assume there should be a section in its datasheet regarding how to initiate and complete calibration.&lt;br /&gt;Please try to find this section, and let me know if there is anything in particular there that you would like me to take a look at. Please also bear in mind that since the sensor is not a Nordic product, you might have to take any issues up with its manufacturer directly.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/277709?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 05:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9f11e9-7636-4f21-a4e9-db8364f99d58</guid><dc:creator>saver</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/277394#277394"]Could you try to define NRF_LOG_DEFERRED to 0, and see if you then see the logger output in your putty terminal?[/quote]
&lt;p&gt;Thanks, now it is showing the gyro meter values, very much Thank you!!!&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/277394#277394"]Alternatively, you should call NRF_LOG_PROCESS at some point in your main loop.[/quote]
&lt;p&gt;I don&amp;#39;t understand what you mean by this, can you please elaborate.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/277394#277394"]Let me know if this resolves your issue,[/quote]
&lt;p&gt;yes, but can you also tell me how to calibrate the sensor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/277394?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 13:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:604bff84-3cf9-4588-8923-caee5630557e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="saver"]&lt;p&gt;the sdk file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/drive/folders/1jlCYiiSo4Ez7Fjs5j_bELG4sxPdK5bZf?usp=sharing"&gt;https://drive.google.com/drive/folders/1jlCYiiSo4Ez7Fjs5j_bELG4sxPdK5bZf?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the above link takes you to twi_mpu6050 folder pca10056--&amp;gt; ses file&lt;/p&gt;[/quote][quote user="saver"]i put the same main.c file and followed all the instructions told in the video, there was no sdk file in the description of the video only main.c , mpu6050.c, mpu6050.h file.[/quote]
&lt;p&gt;I see now that you are using the twi_scanner example as a base for your application. The example uses deferred logging, which means that you will need to call NRF_LOG_PROCESS() at some point, to have the logs be processed.&lt;br /&gt;Could you try to define NRF_LOG_DEFERRED to 0, and see if you then see the logger output in your putty terminal?&lt;br /&gt;Alternatively, you should call NRF_LOG_PROCESS at some point in your main loop.&lt;br /&gt;&lt;br /&gt;Let me know if this resolves your issue,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/277145?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 13:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87fc8aab-39fa-49be-89d1-2cc7f69e3226</guid><dc:creator>saver</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/276862#276862"]Great. Could you share your sdk_config file, so I may take a look? I just want to rule out the possibility that we are overlooking a define here.[/quote]
&lt;p&gt;the sdk file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/drive/folders/1jlCYiiSo4Ez7Fjs5j_bELG4sxPdK5bZf?usp=sharing"&gt;https://drive.google.com/drive/folders/1jlCYiiSo4Ez7Fjs5j_bELG4sxPdK5bZf?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the above link takes you to twi_mpu6050 folder pca10056--&amp;gt; ses file&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/276862#276862"]Did you do as I suggested, and take a look at the code supplied with the tutorial you are following? The tutorial&amp;#39;s author has included the source code in the video description, you should take a look at the authors sdk_config file, to see how it is different to your own.[/quote]
&lt;p&gt;i put the same main.c file and followed all the instructions told in the video, there was no sdk file in the description of the video only main.c , mpu6050.c, mpu6050.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/276862?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 12:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c07c6d-9af6-40ac-aceb-1f1f3e9ebee3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Sorry for my late reply.&lt;/p&gt;
[quote user="saver"]i have done what you have said above.[/quote]
&lt;p&gt;Great. Could you share your sdk_config file, so I may take a look? I just want to rule out the possibility that we are overlooking a define here.&lt;/p&gt;
[quote user="saver"]i have made the changes, but nothing is shown in putty terminal.[/quote]
&lt;p&gt;Did you do as I suggested, and take a look at the code supplied with the tutorial you are following? The tutorial&amp;#39;s author has included the source code in the video description, you should take a look at the authors sdk_config file, to see how it is different to your own.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/276671?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 14:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc54c349-3e09-402c-9a57-666644c6a9bb</guid><dc:creator>saver</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/276344#276344"]Set RTT_BACKEND back to 0, and UART_BACKEND back to 1.&lt;br /&gt;Make sure NRF_LOG_ENABLED is defined to 1 also.[/quote]
&lt;p&gt;i have done what you have said above.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/67209/mpu6050-connected-with-nrf52840dk-not-showing-anything-on-terminal/276344#276344"]Make these changes, and let me know if you are seeing anything in your putty terminal following this.[/quote]
&lt;p&gt;i have made the changes, but nothing is shown in putty terminal.&lt;/p&gt;
&lt;p&gt;i have only changed the pin numbers to 27 and 26 from 22,23 from the mpu6050.h, from the files in the video.&lt;/p&gt;
&lt;p&gt;//I2C Pins Settings, you change them to any other pins&lt;br /&gt;#define TWI_SCL_M 27 //I2C SCL Pin&lt;br /&gt;#define TWI_SDA_M 26 //I2C SDA Pin&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;putty terminal is just showing a blank screen,&lt;/p&gt;
&lt;p&gt;can you suggest me some solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/276344?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 07:17:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e60f2dce-b4a2-462e-a1a4-37640f0d43cd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="saver"]i want to display the gyro values in the the putty terminal.[/quote][quote user="saver"]i need to see the gyro values in the putty terminal for my project.[/quote]
&lt;p&gt;As I said, the putty terminal does not support RTT. In the youtube tutorial you linked, he used the loggers UART backend to display the values on the putty terminal.&lt;br /&gt;My understanding was that you&amp;nbsp;&lt;em&gt;&lt;/em&gt;wanted to use RTT, but if you would like to user UART backend instead, please change the defines in your sdk_config to reflect this. Set RTT_BACKEND back to 0, and UART_BACKEND back to 1.&lt;br /&gt;Make sure NRF_LOG_ENABLED is defined to 1 also.&lt;br /&gt;&lt;br /&gt;Make these changes, and let me know if you are seeing anything in your putty terminal following this.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;br /&gt;&lt;br /&gt;P.S The complete code for the tutorial you referenced is available in the video description - you should take a look there, and see how you sdk_config file is different from the one provided with the project. I think this will give you some clarity as to why it did not work as intended right away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/276300?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 17:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c295e20a-01a0-48fb-8376-efbdc4185eb8</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;i want to display the gyro values in the the putty terminal.&lt;/p&gt;
&lt;p&gt;i have enabled the log at sdk_config file&lt;/p&gt;
&lt;p&gt;Actually i have referred to this video to do take the values from mpu6050 , but nothing is displaying on the putty terminal, i have done everything as described in the video, any idea why it is not displaying in the putty terminal, in the below video ,he has taken for pca10040 and i have done the program in pca10056&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=fH59DQQNOjU&amp;amp;t=5s"&gt;https://www.youtube.com/watch?v=fH59DQQNOjU&amp;amp;t=5s&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;when i try to debug, then the nrf_log_info command is not displaying any reading in the debug terminal too&lt;/p&gt;
&lt;p&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/p&gt;
&lt;p&gt;actually i need to see the gyro values in the putty terminal for my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/275816?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 09:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e59cd277-5447-4962-a958-472b9adac122</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="saver"]Sorry for the late reply[/quote]
&lt;p&gt;No problem at all.&lt;/p&gt;
[quote user="saver"]i think based on the code it is uart, then i have enabled RTT and also&amp;nbsp;&lt;span&gt;&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED , i am not using defferred logger .&lt;/span&gt;[/quote]
&lt;p&gt;I am not sure I understand what you meant by this. You were using UART backend, but now you have disabled it and instead enabled RTT backend - also remembering to set *_CR_ON_LF_ENABLED to 0?&lt;/p&gt;
[quote user="saver"]&amp;nbsp;I.e &amp;quot;Logger initialized&amp;quot;, or similar.&amp;nbsp;[/quote]
&lt;p&gt;Please elaborate what you mean by this.&lt;/p&gt;
[quote user="saver"]i have added this but nothing is showing on the putty or terminal( DEBUG AND TERMINAL EMULATOR)[/quote]
&lt;p&gt;What is your LOG level configured to?&lt;br /&gt;As far as I know putty does not support RTT logging. You will need to either use Segger Embedded Studio&amp;#39;s&amp;nbsp;&lt;em&gt;Debug Terminal,&amp;nbsp;&lt;/em&gt;or the standalone &lt;em&gt;RTT Viewer&lt;/em&gt; application for desktop, provided by Segger.&lt;br /&gt;Could you verify for me that you are using either of these two application when you say that you are not seeing anything outputted to your terminal?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/275741?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 03:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e8cafc-ebd2-4668-a9c9-32ead2137ea0</guid><dc:creator>saver</dc:creator><description>&lt;p&gt;Sorry for the late reply&lt;/p&gt;
&lt;p&gt;i think based on the code it is uart, then i have enabled RTT and also&amp;nbsp;&lt;span&gt;&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED , i am not using defferred logger .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;I.e &amp;quot;Logger initialized&amp;quot;, or similar.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i have added this but nothing is showing on the putty or terminal( DEBUG AND TERMINAL EMULATOR)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU6050 connected with nrf52840dk : not showing anything on terminal</title><link>https://devzone.nordicsemi.com/thread/275122?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4658019-8ec5-470b-b9a9-5be9061efb62</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;i also tried in putty, but nothing is showing in the terminal&lt;/p&gt;
&lt;p&gt;any answers, without hesitation ask any question.&lt;/p&gt;[/quote]
&lt;p&gt;Which backend are you using for your logger module, UART or RTT?&lt;br /&gt;The Segger Embedded Studio&amp;#39;s&amp;nbsp;&lt;em&gt;Debug Terminal&amp;nbsp;&lt;/em&gt;( not the terminal emulator ), uses RTT - and you will therefore need to configure your logger to use RTT if you want anything to show on this terminal.&lt;br /&gt;Additionally, you will need to make sure that&amp;nbsp;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED is defined to 0.&lt;br /&gt;Could you also verify for me whether you are using deferred logging or not?&lt;br /&gt;&lt;br /&gt;You are including a lot of code regarding your SPI, while the problem seems to be related to displaying logger outputs.&lt;br /&gt;To verify that your logger problems are resolved, please add a logger output immediately following the successful initialization of the logger module. I.e &amp;quot;Logger initialized&amp;quot;, or similar.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>