<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>EFM32™︎ Zero Gecko Starter Kit w/ Sensor Card: logging to SD card</title><link>/members-area/personalblogs/b/blog/posts/efm32-zero-gecko-starter-kit-w-sensor-card-logging-to-sd-card</link><description>Inspired by the Zero Gecko Starter Kit roadtest review of baldengineer , I&amp;#39;m going to try if I can get the weather station example log its data to an SD card.The example shows its data to the lcd screen by default. I wonder if it&amp;#39;s possible to ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: EFM32™︎ Zero Gecko Starter Kit w/ Sensor Card: logging to SD card</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/efm32-zero-gecko-starter-kit-w-sensor-card-logging-to-sd-card</link><pubDate>Wed, 03 Dec 2014 00:03:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Wiring info:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x465/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa/0753.contentimage_5F00_188749.jpg:620:465]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x478/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa/7610.contentimage_5F00_188750.jpg:620:478]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19314&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: EFM32™︎ Zero Gecko Starter Kit w/ Sensor Card: logging to SD card</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/efm32-zero-gecko-starter-kit-w-sensor-card-logging-to-sd-card</link><pubDate>Tue, 02 Dec 2014 13:10:39 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Success. I&amp;#39;ve attached the project to the original blog post. &lt;/p&gt;&lt;p&gt;Here&amp;#39;s the content of the log file after 8 samples:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=temperature%3Bhumidity%3Buv%0A21125000%3B00040455%3B00000000%0A21114000%3B00040737%3B00000000%0A21104000%3B00040722%3B00000000%0A21104000%3B00040699%3B00000000%0A21104000%3B00040707%3B00000000%0A21104000%3B00041080%3B00000000%0A21125000%3B00040989%3B00000000%0A21114000%3B00040981%3B00000000]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19314&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: EFM32™︎ Zero Gecko Starter Kit w/ Sensor Card: logging to SD card</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/efm32-zero-gecko-starter-kit-w-sensor-card-logging-to-sd-card</link><pubDate>Mon, 01 Dec 2014 19:42:52 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I have the minimalist weather station running.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;arm-none-eabi-size &amp;quot;STK3200_weatherstation_sd_logger.axf&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hex filename&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; 8636&amp;nbsp;&amp;nbsp;&amp;nbsp; 116&amp;nbsp;&amp;nbsp;&amp;nbsp; 240&amp;nbsp;&amp;nbsp; 8992&amp;nbsp;&amp;nbsp; 2320 STK3200_weatherstation_sd_logger.axf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;


&lt;/blockquote&gt;&lt;p&gt;There&amp;#39;s no energy optimization yet, and no SD card logging.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=int+main%28void%29%0A%7B%0A%0A%0A++int++++++++++++++objectDetect%3B%0A%0A%0A++I2C_Init_TypeDef+i2cInit+%3D+I2C_INIT_DEFAULT%3B%0A++uint32_t+++++++++rhData%3B%0A++bool+++++++++++++si7013_status%2C+si1147_status%3B%0A++int32_t++++++++++tempData%3B%0A++uint16_t+++++++++uvData%3B%0A++uint32_t+++++++++vBat+%3D+3300%3B%0A++bool+++++++++++++lowBatPrevious+%3D+true%3B%0A++bool+++++++++++++lowBat+%3D+false%3B%0A%0A%0A++%2F*+Chip+errata+*%2F%0A++CHIP_Init%28%29%3B%0A%0A%0A++%2F*+Misc+initalizations.+*%2F%0A++gpioSetup%28%29%3B%0A++adcInit%28%29%3B%0A%0A%0A++%2F*+Misc+timers.+*%2F%0A++RTCDRV_Init%28%29%3B%0A++RTCDRV_AllocateTimer%28%26periodicUpdateTimerId%29%3B%0A%0A%0A++%2F*+Initialize+I2C+driver%2C+using+standard+rate.+*%2F%0A++I2CDRV_Init%28%26i2cInit%29%3B%0A%0A%0A++si7013_status+%3D+Si7013_Detect%28I2C0%2C+SI7013_ADDR%29%3B%0A++si1147_status+%3D+Si1147_Detect_Device%28I2C0%2C+SI1147_ADDR%29%3B%0A++%2F*configure+prox+sensor+to+enter+low+power+state*%2F%0A++Si1147_ConfigureDetection%28I2C0%2C+SI1147_ADDR%2C+true%29%3B%0A++RTCDRV_StartTimer%28periodicUpdateTimerId%2C+rtcdrvTimerTypePeriodic%2C%0A++++++++++++++++++++PERIODIC_UPDATE_MS%2C+periodicUpdateCallback%2C+NULL%29%3B%0Awhile+%281%29%0A++%7B%0A++++if+%28updateMeasurement%29%0A++++%7B%0A++++++performMeasurements%28%26rhData%2C+%26tempData%2C+%26uvData%2C+%26objectDetect%2C+%26vBat%29%3B%0A++++++updateMeasurement+%3D+false%3B%0A++++++if+%28lowBatPrevious%29%0A++++++++++lowBat+%3D+%28vBat+%3C%3D+LOW_BATTERY_THRESHOLD%29%3B%0A++++++else%0A++++++++++lowBat+%3D+false%3B%0A++++++lowBatPrevious+%3D+%28vBat+%3C%3D+LOW_BATTERY_THRESHOLD%29%3B%0A++++%7D%0A%2F%2F++++EMU_EnterEM2%28false%29%3B%0A++%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It seems that it&amp;#39;s not possible to attach files to comments.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19314&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: EFM32™︎ Zero Gecko Starter Kit w/ Sensor Card: logging to SD card</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/efm32-zero-gecko-starter-kit-w-sensor-card-logging-to-sd-card</link><pubDate>Mon, 01 Dec 2014 12:49:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;As a first exercise, I have created a new project based on the weatherstation example:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/212x526/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-77fb8d8b-58ec-4277-bdd7-8ed8e5db50aa/0537.contentimage_5F00_188748.png:212:526]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I have removed all code related to the user interface: buttons, screen, gesture, and the majority of timers.&lt;/p&gt;&lt;p&gt;This gives me a project with the following size in Debug configuration:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;arm-none-eabi-size &amp;quot;STK3200_weatherstation_sd_logger.axf&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp; hex filename&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; 8756&amp;nbsp;&amp;nbsp;&amp;nbsp; 116&amp;nbsp;&amp;nbsp;&amp;nbsp; 236&amp;nbsp;&amp;nbsp; 9108&amp;nbsp;&amp;nbsp; 2394 STK3200_weatherstation_sd_logger.axf&lt;/p&gt;


&lt;/blockquote&gt;&lt;p&gt;I am now going to rework that stripped down example so that it actually does some measurements at regular times.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=19314&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>