<?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>I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59351/i-need-help-with-converting-any-example-from-keil-to-ses</link><description>Hello, 
 
 I&amp;#39;ve been trying for days to convert any example from Keil to SES, I have road probably every question here on the dev zone but I am unable to fix this, I ever specially install windows on my mac to try if there it would work. 
 
 So, I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 May 2020 06:20:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59351/i-need-help-with-converting-any-example-from-keil-to-ses" /><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/248335?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 06:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86482834-e293-4e5f-93da-e7f048de328a</guid><dc:creator>Jason liang</dc:creator><description>&lt;p&gt;I use SES projct, it is ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/248153?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 11:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5de3920-b199-4566-a6e3-34ef46a27ed1</guid><dc:creator>Jason liang</dc:creator><description>&lt;p&gt;I use SES v4.52b, use nRF52832 Chip, I have same type question too.&amp;nbsp; how to do it&lt;/p&gt;
&lt;p&gt;Linking ble_app_uart_pca10040_s132.elf&lt;br /&gt; &lt;br /&gt; unplaced section: .log_dynamic_data_balloc_log_mempool [nrf_log_frontend.o], size=4, align=4&lt;br /&gt; unplaced section: .nrf_balloc [nrf_log_frontend.o], size=24, align=4&lt;br /&gt; unplaced section: .log_dynamic_data_app [nrf_log_frontend.o], size=4, align=4&lt;br /&gt; unplaced section: .log_dynamic_data_nrf_sdh_ble [nrf_sdh_ble.o], size=4, align=4&lt;br /&gt; undefined symbol: __SEGGER_init_table__&lt;br /&gt; undefined symbol: __app_ram_start__&lt;br /&gt; undefined symbol: __start_fs_data&lt;br /&gt; undefined symbol: __start_log_const_data&lt;br /&gt; undefined symbol: __start_log_dynamic_data&lt;br /&gt; undefined symbol: __start_pwr_mgmt_data&lt;br /&gt; undefined symbol: __start_sdh_req_observers&lt;br /&gt; undefined symbol: __start_sdh_state_observers&lt;br /&gt; undefined symbol: __stop_fs_data&lt;br /&gt; undefined symbol: __stop_log_const_data&lt;br /&gt; undefined symbol: __stop_pwr_mgmt_data&lt;br /&gt; undefined symbol: __stop_sdh_req_observers&lt;br /&gt; undefined symbol: __stop_sdh_state_observers&lt;br /&gt;Build failed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243700?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 14:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77dfa9a5-f94a-4846-9a89-aa33a609ca45</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;I am your friend now, but still cannot send you a message&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_06-at-16.02.18.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243697?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:007b0ef4-4839-49a4-a65f-9d6fa87c9b4c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;On DevZone, PM is by sending message to me directly via profile after friend request is accepted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243695?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 13:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e80e06-800e-421f-a5e7-7815479a8b91</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Hi, how I can pm you? on the devzone or e-mail?&lt;br /&gt;&lt;br /&gt;here is this function:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_06-at-15.51.21.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243649?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 12:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad9cc92-8f08-4a19-8bb0-9aec1637eca4</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Yes I changed in mag config the adress for&lt;/p&gt;
&lt;p&gt;MPU9250_MAG_I2C_DEVADDR&lt;/p&gt;
&lt;p&gt;which is declared as 0x0C&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also I don&amp;#39;t know whether I&amp;#39;m getting right values from gyroscope.&lt;/p&gt;
&lt;p&gt;Raw values is this:&lt;br /&gt;&lt;img alt=" " height="264" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_06-at-14.17.21.png" width="166" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;when the mpu is flat and I&amp;#39;m not moving I think I should be getting something around zero?&lt;br /&gt;&lt;br /&gt;also that results in that from converted data I am getting:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_06-at-14.18.07.png" /&gt;&lt;br /&gt;Maybe it is the sensitivity problem? But I don&amp;#39;t know actually how to set it right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243645?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 12:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8989d8b4-c177-48a9-8f5c-9f7d0411e0fa</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Are you able to read the chip ID of the MAG? Look at the fonction&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;MagMpu9250::Read&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;It handle SPI or I2C read but I don&amp;#39;t have an i2c board to test it. &amp;nbsp;Try to debug it or send me a board so I can test it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS This thread is getting too long, &amp;nbsp;PM me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243527?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 19:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c122aa-c999-462e-b48a-382012198bcf</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Init&amp;nbsp;seems fine. &amp;nbsp;I don&amp;#39;t have the MPU on i2c interface. &amp;nbsp;I don&amp;#39;t know what is going onbut I do know that it works in SPI. &amp;nbsp;There must be some setting or a different way to read. &amp;nbsp;Do you get the mag chip ID ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243521?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 16:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ba4b3d-0202-4ec0-8a80-06cc07063ef2</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;How now get the values from magnetometer since I got gyro and accel working?&lt;br /&gt;&lt;br /&gt;in Hardware init, this function:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (res == true)
	{
		res = g_MotSensor.Init(s_MagCfg, &amp;amp;g_I2c, &amp;amp;g_Timer);
		if (res == true)
		{
			g_pMag = &amp;amp;g_MotSensor;
		}
	}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;makes res false&lt;br /&gt;&lt;br /&gt;this is my whole code&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**-------------------------------------------------------------------------
@example	mot_sensor_demo.cpp


@brief	Motion sensor demo

	This application demo shows UART Rx/Tx over BLE custom service using EHAL library.

@author	Hoang Nguyen Hoan
@date	Dec. 21, 2018

@license

Copyright (c) 2018, I-SYST inc., all rights reserved

Permission to use, copy, modify, and distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies, and none of the
names : I-SYST or its contributors may be used to endorse or
promote products derived from this software without specific prior written
permission.

For info or contributing contact : hnhoan at i-syst dot com

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS&amp;#39;&amp;#39; AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

----------------------------------------------------------------------------*/
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;atomic&amp;gt;
#include &amp;lt;inttypes.h&amp;gt;
#include &amp;lt;cmath&amp;gt;

#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;coredev/iopincfg.h&amp;quot;
#include &amp;quot;coredev/i2c.h&amp;quot;
#include &amp;quot;coredev/uart.h&amp;quot;
#include &amp;quot;iopinctrl.h&amp;quot;
#include &amp;quot;timer_nrfx.h&amp;quot;
#include &amp;quot;sensors/agm_mpu9250.h&amp;quot;
#include &amp;quot;imu/imu_mpu9250.h&amp;quot;
#include &amp;quot;stddev.h&amp;quot;
#include &amp;quot;idelay.h&amp;quot;


#define MPU9250
#include &amp;quot;board.h&amp;quot;

std::atomic&amp;lt;bool&amp;gt; g_bTest(false);

void TimerHandler(Timer *pTimer, uint32_t Evt);

const static TIMER_CFG s_TimerCfg = {
    .DevNo = 0,
	.ClkSrc = TIMER_CLKSRC_DEFAULT,
	.Freq = 0,			// 0 =&amp;gt; Default highest frequency
	.IntPrio = 1,
	.EvtHandler = TimerHandler,
};

TimerLFnRFx g_Timer;


//********** I2C **********
static const I2CCFG s_I2cCfg = {
	0,			// I2C device number
	{
		{I2C0_SDA_PORT, I2C0_SDA_PIN, I2C0_SDA_PINOP, IOPINDIR_BI, IOPINRES_PULLUP, IOPINTYPE_OPENDRAIN},
		{I2C0_SCL_PORT, I2C0_SCL_PIN, I2C0_SCL_PINOP, IOPINDIR_OUTPUT, IOPINRES_PULLUP, IOPINTYPE_OPENDRAIN},
	},
	100000,	    // Rate
	I2CMODE_MASTER,
	5,			// Retry
	0,			// Number of slave addresses
	{0,},		// Slave addresses
	true,	    // DMA
	false,		// Use interrupt
	6,			// Interrupt prio
	NULL		// Event callback
};

I2C g_I2c;

DeviceIntrf *g_pIntrf = &amp;amp;g_I2c;




static const ACCELSENSOR_CFG s_AccelCfg = {
	.DevAddr = MPU9250_I2C_DEV_ADDR0,
	.OpMode = SENSOR_OPMODE_CONTINUOUS,
	.Freq = 10000,
	.Scale = 2,
	.FltrFreq = 0,
	.bInter = true,
	.IntPol = DEVINTR_POL_LOW,
};

static const GYROSENSOR_CFG s_GyroCfg = {
	.DevAddr = MPU9250_I2C_DEV_ADDR0,
	.OpMode = SENSOR_OPMODE_CONTINUOUS,
	.Freq = 50000,
	.Sensitivity = 10,
	.FltrFreq = 200,
};

static const MAGSENSOR_CFG s_MagCfg = {
	.DevAddr = MPU9250_MAG_I2C_DEVADDR,
	.OpMode = SENSOR_OPMODE_CONTINUOUS,
	.Freq = 50000,
	.Precision = MAGSENSOR_PRECISION_HIGH,
};


AgmMpu9250 g_MotSensor;

AccelSensor *g_pAccel = NULL;
GyroSensor *g_pGyro = NULL;
MagSensor *g_pMag = NULL;

uint32_t g_DT = 0;
static uint32_t g_TPrev = 0;

void TimerHandler(Timer *pTimer, uint32_t Evt)
{
    if (Evt &amp;amp; TIMER_EVT_TRIGGER(0))
    {
    }
}


bool HardwareInit()
{
	bool res;

	g_Timer.Init(s_TimerCfg);

	res = g_I2c.Init(s_I2cCfg);

	if (res == true)
	{
		res = g_MotSensor.Init(s_AccelCfg, &amp;amp;g_I2c, &amp;amp;g_Timer);
		if (res == true)
		{
			g_pAccel = &amp;amp;g_MotSensor;
		}

	}

	if (res == true)
	{
		res = g_MotSensor.Init(s_GyroCfg, &amp;amp;g_I2c, &amp;amp;g_Timer);
		if (res == true)
		{
			g_pGyro = &amp;amp;g_MotSensor;
		}
	}

	/*if (res == true)
	{
		res = g_MotSensor.Init(s_MagCfg, &amp;amp;g_I2c, &amp;amp;g_Timer);
		if (res == true)
		{
			g_pMag = &amp;amp;g_MotSensor;
		}
	}*/

	if (res == true)
	{

		int8_t m[9] = { 1, 0, 0,
						0, 1, 0,
						0, 0, 1 };
	}

	return res;
}

// Floats for storing data from IMU
float ax=0;
float ay=0;
float az=0;
float gx=0;
float gy=0;
float gz=0;
float mx=0;
float my=0;
float mz=0;

// Floats for filtering accelerometer with low-pass filter
float thetaRAW_a;
float phiRAW_a;
float thetaRAW_old_a=0;
float phiRAW_old_a=0;
float thetaFIL_a;
float phiFIL_a;

int main()
{
	bool res = HardwareInit();


	if (res == false)
	{
		printf(&amp;quot;Failed initializing hardware\r\n&amp;quot;);

		return 1;
	}

	printf(&amp;quot;MotionSensorDemo\r\n&amp;quot;);

	ACCELSENSOR_RAWDATA arawdata;
	ACCELSENSOR_DATA accdata;
	GYROSENSOR_RAWDATA grawdata;
	GYROSENSOR_DATA gyrodata;
	MAGSENSOR_RAWDATA mrawdata;

	memset(&amp;amp;arawdata, 0, sizeof(ACCELSENSOR_RAWDATA));
	memset(&amp;amp;accdata, 0, sizeof(ACCELSENSOR_DATA));
	memset(&amp;amp;gyrodata, 0, sizeof(GYROSENSOR_DATA));


	uint32_t prevt = 0;
	int cnt = 100;
	while (1)
	{
		uint32_t t = g_Timer.uSecond();


		g_MotSensor.UpdateData();

		uint32_t dt = arawdata.Timestamp - prevt;
		prevt = arawdata.Timestamp;

		g_MotSensor.Read(arawdata);
		g_MotSensor.Read(accdata);
		g_MotSensor.Read(grawdata);
		g_MotSensor.Read(gyrodata);

		ax=accdata.X*9.8;
		ay=accdata.Y*9.8;
		az=accdata.Z*9.8;
		gx=gyrodata.X;
		gy=gyrodata.Y;
		gz=gyrodata.Z;

		thetaRAW_a=atan2((ax/9.8)/(az/9.8),1)/2/3.141592654*360;
		phiRAW_a=-atan2((ay/9.8)/(az/9.8),1)/2/3.141592654*360;

		thetaFIL_a=.95*thetaRAW_old_a+.05*thetaRAW_a;
		phiFIL_a=.95*phiRAW_old_a+.05*phiRAW_a;

		phiRAW_old_a=phiFIL_a;
		thetaRAW_old_a=thetaFIL_a;


		if (cnt-- &amp;lt; 0)
			{
					cnt = 100;
					printf(&amp;quot; %f %f %f \n&amp;quot;, gx, gy, gz);
			}
	}




}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243520?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 16:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51fd939-cad8-43c5-b7f4-e2ac1c9f543f</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Okay never mind, I managed to solve this, and the gyro is working fine, Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243516?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 16:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aabb5d58-0897-4fee-82fe-46d8e49e324c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;it has been renamed to timer_nrfx.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243515?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 15:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e6179d-69e8-461a-b1e9-d1e4c68bf0f3</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Okay I deleted, Now when I am compiling motion sensor demo I got:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;/Users/jacobbudny/Desktop/DEVELOPMENT/IOsonata/exemples/sensor/mot_sensor_demo.cpp:46:10: fatal error: timer_nrf5x.h: No such file or directory&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;46 | #include &amp;quot;timer_nrf5x.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;|&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;^~~~~~~~~~~~~~~&lt;/p&gt;
&lt;p&gt;compilation terminated.&lt;/p&gt;
&lt;p&gt;make: *** [src/mot_sensor_demo.o] Error 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243514?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 15:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c84a9a31-2e51-4d88-83fd-f4e6b9521fcc</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;it&amp;#39;s something i am working on unfinished. &amp;nbsp;Could you delete it from the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243513?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 15:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5c6adb-1754-40ce-97ae-4207615e755a</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;I updated it, and while building debug and realese for IOsonata_nRF52832 for eliminating error from gcc (as you said before) I got this error:&lt;/p&gt;
&lt;p&gt;make: *** No rule to make target `/Users/jacobbudny/Desktop/DEVELOPMENT/IOsonata/ARM/Nordic/src/i2s_nrfx.cpp&amp;#39;, needed by `src/coredev/i2s_nrfx.o&amp;#39;.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Stop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243511?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 14:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7dadb1-537c-49be-8455-cc9fd1180be9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I just push new change. Could you check it out ?&lt;/p&gt;
&lt;p&gt;Where did you get those ADC values ? Are they from the MUP datasheet ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243510?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 14:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8fa7d7a-536f-46cc-84e5-5b55581919e4</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Yes I did read. But what can I do to fix it? I was reading about sensor acc range and I found that:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The &lt;/span&gt;&lt;b&gt;ADC range&lt;/b&gt;&lt;span&gt; is the maximum and minimum &lt;/span&gt;&lt;b&gt;ADC&lt;/b&gt;&lt;span&gt; input (e.g., 0 to +3.3V). The &lt;/span&gt;&lt;b&gt;ADC&amp;nbsp;&lt;/b&gt;&lt;span&gt;resolution is the smallest distinguishable change in input (e.g., 3.3V/4096, which is about 0.81 mV). The resolution is the change in input that causes the digital output to change by 1.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So it means that, something in my sensor is broke and is not delivering this values? Or there is something wrong with the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243507?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 13:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a82c50-9071-42e3-ad03-0486e62917a3</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Didn&amp;#39;t you read my message. &amp;nbsp;I said gyro was missing the rage setting in the driver.&lt;/p&gt;
&lt;p&gt;The accel data gives you in g as described in the data structure comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243506?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 13:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f6b132-bdbc-4b02-9d5b-3e2f29b15de6</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;Yes yes, but I am talking m/s^2, and 1 g = 9,8 m/s^2. We misunderstood each other. I was thinking earlier that accdata is in m/s^2 unit not g unit, sorry. If it&amp;#39;s in g unit now it seems fine.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How about the gyro?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243505?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:275fad64-19ec-43fe-886c-1a06412bc31e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;gravity is 1g not 9g&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243504?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 13:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28517abd-ba98-41eb-a502-c66a2ce7ae73</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;But if not moving there is still force acting on the Z axis, which should be something about 9,8 and even with scale 16 I am getting 8 only, and 16 is the biggest scale.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Okay I see it now, and that is causing NAN in all of that values:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_05-at-15.16.10.png" /&gt;&lt;br /&gt;&lt;br /&gt;How can I set up this range?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243503?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 12:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513bc75a-1b33-455a-8847-adf5803a2a4b</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;the accel data should give you approx 0g not 9g. if it not moving&lt;/p&gt;
&lt;p&gt;Gyro adc range settings is missing which cause div by 0 =&amp;gt; nan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243502?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 12:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529975cf-1401-464d-9c36-667045be789c</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;On flat surface I should be getting around 0 for x, 0 for y, and about 9/-9 for z in m/s^2. I changed the scale from 4 to 16, but still I am getting max 8, I assume that scale factor is responsible for that, but Is it a good option?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Also from gyro I am getting this:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " height="295" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_05-at-14.22.20.png" width="221" /&gt;&lt;br /&gt;&lt;br /&gt;The same is in the debug, when I try to debug, the conversion lines change values to NaN&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243501?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 12:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77f015d9-ff32-4a48-8dee-32b1a2ca4e90</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Why do you thing so ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243500?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 12:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be7bc75c-7585-4d3c-b304-8ece7a8a73a7</guid><dc:creator>JacobBudny</dc:creator><description>&lt;p&gt;I know, that I was able to fix by replacing %d to %f, now I am getting the same values as in debug, but this values seems strange, have a look:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="230" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2020_2D00_04_2D00_05-at-14.17.05.png" width="394" /&gt;&lt;/p&gt;
&lt;p&gt;But raw values seems fine, so there is something wrong with conversion, I tried to debug that, but everything seems fine in the code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with converting any example from Keil to SES</title><link>https://devzone.nordicsemi.com/thread/243499?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 12:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:562a3ddb-6a1e-48a0-b758-85ff2fe93864</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The values are float and you are displaying&amp;nbsp;using integer. &amp;nbsp;Which is wrong conversion.&lt;/p&gt;
&lt;p&gt;For the mag, have you put the correct I2C device address. &amp;nbsp;It&amp;#39;s not the same as accel. &amp;nbsp;Accel &amp;amp; Gyro use same i2c address. &amp;nbsp;mag is different.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>