<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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>Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23458/help-needed-for-keil-mcbstm32-can-application</link><description> 
Hello, 
I&amp;#39;m using Keil MCBSTM32 evaluation board and
&amp;#194;&amp;#181;Vision3. 
I use the example CAN program downloaded from keil. My application
will be to use an external rotational transducer (instead of the
potentiometer on the board) to send converted analog</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/76355?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2008 08:34:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3b961b4b-86e3-4f82-ba22-3967843e038c</guid><dc:creator>Ferris Adma</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank you Reinhard Keil and Martin Gunther for your reply.&lt;/p&gt;

&lt;p&gt;
The link does help a lot.&lt;/p&gt;

&lt;p&gt;
Thanks Martin for the codes to use PA0 instead of PA1. I did that
too and it worked.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/49972?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2008 04:39:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6f365844-6bb9-43b8-bba4-fd7022f16495</guid><dc:creator>Martin G&amp;#195;&amp;#188;nther</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Ferris Adna,&lt;/p&gt;

&lt;p&gt;
to use PA0 instead of PA1 change the code as follows:&lt;/p&gt;

&lt;pre&gt;
  RCC-&amp;gt;APB2ENR |= RCC_APB2ENR_ADC1EN;  // enable periperal clock for ADC1

  ADC1-&amp;gt;SQR1 &amp;amp;= ~0x00F00000;           // only one conversion

  ADC1-&amp;gt;SMPR2 &amp;amp;= ~0x00000007;          // clear bits 0..1 (channel0)
  ADC1-&amp;gt;SMPR2 |=  0x00000005;          // sample time (55,5 cycles)

  ADC1-&amp;gt;SQR3   = 0x00000000;           // set channl0 for 1st conversion

  ADC1-&amp;gt;CR1   =  0x00000100;           // use independant mode, SCAN mode
  ADC1-&amp;gt;CR2   =  0x000E0003;           // data align right, cont conversion
                                       // EXTSEL = SWSTART
                                       // enable ADC, no external Trigger
  ADC1-&amp;gt;CR2  |=  0x00500000;           // start SW conversion
&lt;/pre&gt;

&lt;p&gt;
Best Regards,&lt;br /&gt;
Martin Guenther&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/135401?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2008 00:20:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:796f36f4-9bdc-4482-a3c1-54984941e415</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;&lt;p&gt;
maybe this helps: &lt;a href="http://www.keil.com/download/docs/373.asp"&gt;http://www.keil.com/download/docs/373.asp&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/124708?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2008 08:51:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4fdd6a50-a0fb-406d-9bd7-ebfe77336ea2</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
as far as I know, you would require a CAN sniffer of some
kind.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/114006?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2008 08:08:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e1bad8bb-84ca-4c90-ae97-a785993b60ec</guid><dc:creator>Ferris Adma</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanx for ur reply, i think i figured it out how to get my sensor
to work in PA CH0.&lt;br /&gt;
Anyway, is there anyway easy to generate an error? my application
would be quite simple: i want to demonstrate a CAN communication -
interfacing the sensor to stm32 and get to see the communication (the
frames) preferably at my PC.&lt;br /&gt;
the &amp;Acirc;&amp;micro;Vision3 simulation able to do that? or do i need to
use a CAN Analyser like for example ValueCAN (&lt;a target="_blank" href="http://intrepidcs.com/catalog/product_info.php/cPath/21/products_id/35"&gt;&lt;a href="http://intrepidcs.com/catalog/product_info.php/cPath/21/products_id/35"&gt;intrepidcs.com/.../35&lt;/a&gt;&lt;/a&gt;)
for that purpose?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/100725?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2008 12:06:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:61a84fc5-202f-4436-bd6f-799629e0f08c</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t know. I am not familiar with your processor, but the data
sheet is. it must be there!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/76356?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2008 08:01:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:04b03b6c-2eb1-4c6d-81fd-5ae6c8bab50b</guid><dc:creator>Ferris Adma</dc:creator><description>&lt;p&gt;&lt;p&gt;
In STM32&amp;#39;s control register they&amp;#39;re ADC_CR1 et ADC_CR2:&lt;/p&gt;

&lt;p&gt;
In CanDemo.c:&lt;/p&gt;

&lt;pre&gt;
  ADC1-&amp;gt;CR1   =  0x00000100; // use independant mode, SCAN mode
&lt;/pre&gt;

&lt;p&gt;
&lt;/p&gt;

&lt;pre&gt;
  ADC1-&amp;gt;CR2   =  0x000E0003; // data align right, cont conversion
&lt;/pre&gt;

&lt;p&gt;
In ADC_CR1 however there&amp;#39;s AWDCH[4:0]: Analog watchdog channel
select bits. Is that it? i dont wanna use watchdog though.&lt;/p&gt;

&lt;p&gt;
Thanx!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help needed for keil MCBSTM32 CAN application</title><link>https://community.arm.com/thread/49971?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2008 07:38:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6df162f1-8300-40a9-8d9b-be9763359628</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
all you need to do is slightly modify your ADC configuration. are
you sure it does not appear in the reference manual?&lt;/p&gt;

&lt;pre&gt;
ADC-&amp;gt;CR  |= 0x0033;                     /* cont. conversion all channels    */
ADC-&amp;gt;CCR |= 0x00FF;                     /* ADC, no WDG, Channel 0..4        */
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
works for the STR9. does this help?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>