<?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>example of Timer and ADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75898/example-of-timer-and-adc</link><description>Hello, 
 I need an example of Timer and ADC for nrf5340. Already I checked this example but it is unclear and also has some error with semaphore. could you please give me a clear example of ADC and timer seperately?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jun 2021 09:29:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75898/example-of-timer-and-adc" /><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/316657?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 09:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48d6ae6c-9a11-4f54-9f16-445ffdd97cd2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user="Ali Ahmadi"]We had another development kit and I started to use it and it is DK with the version number 0.11.0.[/quote]
&lt;p&gt;&lt;span&gt;Great! I am happy to hear that you were able to acquire a DK - this will make things a lot easier.&lt;/span&gt;&lt;/p&gt;
[quote user="Ali Ahmadi"]I used the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b"&gt;ADC example&lt;/a&gt;&amp;nbsp;and after I run in debug mode I face the same error. I attached the photo below. It looks this error is not related to the type of the board.&lt;br /&gt;Do you have any idea how can I solve the problem?[/quote]
&lt;p&gt;Could you try to build this as secure, instead of non-secure?&lt;br /&gt;It might be that the FPU is part of the partitioning not accessible to the application in non-secure.&lt;br /&gt;Please do this, and let me know if it resolves the issue.&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: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/315826?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 10:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:228ab538-7264-47f3-8185-0bc030144708</guid><dc:creator>Ali Ahmadi</dc:creator><description>&lt;p&gt;We bought this PDK several months ago from a website. We had another development kit and I started to use it and it is DK with the version number 0.11.0. I made the setup of my project from the beginning according to nrf5340dk-nrf5340-cpuappns. Again I used the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h185sjwm5882m1bcimiad82dnf4kcy0b"&gt;ADC example&lt;/a&gt;&amp;nbsp;and after I run in debug mode I face the same error. I attached the photo below. It looks this error is not related to the type of the board.&lt;br /&gt;Do you have any idea how can I solve the problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1623926468829v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/315631?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 13:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1ce6fd8-25b2-4406-9358-63393ba0aae5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Ali Ahmadi"]I think the board I am working with is PDK[/quote][quote user="Ali Ahmadi"]I was thinking the most valid one can be the version number sticker which over the board is 0.10.0.[/quote]
&lt;p&gt;You are correct, this is unfortunately a Preview Development Kit (PDK) and it is not recommended nor supported for production. My recommendation would be to move on to a DK before proceeding with your development.&lt;br /&gt;&lt;br /&gt;Where / when did you acquire this PDK from?&lt;br /&gt;If you recently purchased this PDK from a retailer or distributor I would recommend that you reach out to them directly and ask if there is any chance to get a proper DK.&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: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/315512?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 07:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a11e756-0cb3-40a6-9df2-0a33686f8d59</guid><dc:creator>Ali Ahmadi</dc:creator><description>&lt;p&gt;Hello Karl,&lt;br /&gt;&lt;br /&gt;I think the board I am working with is PDK but I am not totally sure because I have the different stickers on the box, board, and version number which give me conflicting information. I took photos of all of them and attached them. I was thinking the most valid one can be the version number sticker which over the board is 0.10.0.&lt;br /&gt;Anyway, please check them and let me know I am developing the correct board or not.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1623826936549v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20210616_5F00_083503.jpg" alt=" " /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20210616_5F00_083530.jpg" alt=" " /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20210616_5F00_084533.jpg" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/315351?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 10:48:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b79fc3-bba8-4f35-a517-b9ead035f320</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;/p&gt;
[quote user="Ali Ahmadi"]I am working with NRF5340 - PDK development board.[/quote]
&lt;p&gt;This is conflicting information - are you working with the&amp;nbsp;&lt;em&gt;Preview Development Kit (PDK)&lt;/em&gt; or the&amp;nbsp;&lt;em&gt;Development Kit (DK)&lt;/em&gt;? The PDK is not recommended for active development of a device, since it - as a pre-release version - have many issues and bugs which have since been fixed.&lt;br /&gt;Could you please tell me what the sticker on the debugger says?&lt;br /&gt;&lt;br /&gt;We will need to establish which hardware you are working with, before we proceed with the debugging.&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&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/314634?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 08:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae97957a-791c-41c9-8319-3d978f8abd87</guid><dc:creator>Ali Ahmadi</dc:creator><description>&lt;p&gt;I am working with NRF5340 - PDK development board.&lt;br /&gt;I set up my working envirnment according to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0"&gt;Your first &amp;ldquo;Hello World&amp;rdquo; 1.1 Set it up&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After I removed the highlighted line from prj.config all of the errors disappeared and I build the code and run the board in the debug mode. After I run the board it stuck in one part of the code which I attached as a second photo. The error is &amp;quot;Stopped by vector catch&amp;quot; and&amp;nbsp;&lt;span&gt;the issue can be that the option &amp;quot;Memory Segments&amp;quot; is not properly set and also the option &amp;quot;Section Placement Macros&amp;quot;. Those options are set by default! Do you have any idea how can solve it?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623312775680v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623314942703v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/314434?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 11:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ea1663-778c-4325-96bb-41cd317ef725</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="Ali Ahmadi"]when I add the project configuration of the adc to&amp;nbsp;prj.conf I face with the error in building the code. I attached the photos below:[/quote]
&lt;p&gt;It seems like you are getting a lot of undefined references errors - indicating that your environment is not properly set up, or that your project is missing some header files.&lt;br /&gt;How did you setup you working environment?&lt;br /&gt;By the way, it might be useful for you to see &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/2541c598706e87d0475f650b9a27e89a701c58c6/samples/drivers/adc"&gt;the zephyr ADC driver example&lt;/a&gt;&amp;nbsp;as an example of how you may use the driver.&lt;/p&gt;
[quote user="Ali Ahmadi"]Another question is which part of the project option I can define my device?&amp;nbsp;[/quote]
&lt;p&gt;You do not need to set this in your project, as you decide which device to build for when you start the building.&lt;br /&gt;The line you have highlighted here is&amp;nbsp;&lt;em&gt;if defined&lt;/em&gt;, so that you may add different functionality in the case that you build for a specific board or configuration.&lt;br /&gt;&lt;br /&gt;Furthermore, it seems from your error messages that you are working with the PDK, and not a DK, could you confirm whether this is the case?&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: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/313827?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 07:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394a6be2-0ecc-43b5-b6eb-0f33ed385794</guid><dc:creator>Ali Ahmadi</dc:creator><description>&lt;p&gt;when I add the project configuration of the adc to&amp;nbsp;prj.conf I face with the error in building the code. I attached the photos below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623053612336v2.png" /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623058565711v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Another question is which part of the project option I can define my device?&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623054432360v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: example of Timer and ADC</title><link>https://devzone.nordicsemi.com/thread/313343?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 10:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82af0bbc-31ef-4d85-9f21-1d3e3b70ac1a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Already I checked&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74591/timers-in-nrf5340"&gt;this example&lt;/a&gt;&amp;nbsp;but it is unclear and also has some error with semaphore.[/quote]
&lt;p&gt;Do you mean that&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0"&gt;you have followed this guide&lt;/a&gt;, but it resulted in an error?&lt;br /&gt;What did this error message say?&lt;/p&gt;
[quote user=""]could you please give me a clear example of ADC and timer seperately?[/quote]
&lt;p&gt;Unfortunately, we do not have a specific example of just the SAADC and Timer separately, but this is what is meant to be covered by the nRF Connect NCS Tutorials.&lt;br /&gt;If you did follow the second part of the tutorial, did you first complete the preceding parts?&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>