<?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>beginner simple question</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question</link><description> Hi, 
 I am an old programmer (65) and I want to learn how to work with STM32. I live within 10km from ST plants in Crolles (France).Target is to be able to drive signals on a 7&amp;#39; railway layout 
 English is not my natural language. 
 For my first step</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/169384?ContentTypeID=1</link><pubDate>Thu, 31 Dec 2020 20:30:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:acf330b8-90a7-47cc-bb85-c47da516a3b1</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;After a lot of works, I found a &amp;#39;}&amp;#39; that was not linked to a &amp;#39;{&amp;#39; in the small program I wrote in main.c (I think because of a bad use of copy / paste). I removed this } and all the errors are gone.&lt;/p&gt;
&lt;p&gt;So I got a hex file that I downloaded to the board via CubeProgrammer. It has done something because, now, the screen is empty (no demo) but my simple program doesn&amp;#39;t start ... In fact, I wanted to &amp;#39;blink&amp;#39; led1 and it stay on.&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;
&lt;p&gt;PS Happy new year to everyone !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/169369?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 15:18:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:874609a6-b630-4fb4-837f-8eaab8849968</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;like this ? ;-)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  /* We should never get here as control is now taken by the scheduler */
  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  { // is this while executed ?

/* si on appuie sur le bouton, le clignotement est plus rapide */
    if (HAL_GPIO_ReadPin(bouton_poussoir_GPIO_Port, bouton_poussoir_Pin))
		{
      HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_1);
      /* Insert delay 400 ms */
      HAL_Delay(400);
		}
		else
		{
      HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_1);
      /* Insert delay 1000 ms */
      HAL_Delay(1000);
		}

    /* USER CODE END WHILE */

    /* USER CODE BEGIN 3 */
  }
  /* USER CODE END 3 */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/169364?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 20:55:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d25fcc99-5647-4a42-a0ee-c2c11b3653c6</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/471/6036._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/169360?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 15:57:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1161d5ca-7cce-4699-95a8-1b5498b57949</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;I am back after a hard work month.&lt;/p&gt;
&lt;p&gt;here is the simple code I want to run. Questions are underneath.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt; /* We should never get here as control is now taken by the scheduler */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; /* Infinite loop */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; /* USER CODE BEGIN WHILE */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; while (1)&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; {&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;/* si on appuie sur le bouton, le clignotement est plus rapide */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (HAL_GPIO_ReadPin(bouton_poussoir_GPIO_Port, bouton_poussoir_Pin))&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_1);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Insert delay 400 ms */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAL_Delay(400);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_1);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Insert delay 1000 ms */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAL_Delay(1000);&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* USER CODE END WHILE */&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* USER CODE BEGIN 3 */&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp; }&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;questions :&lt;/p&gt;
&lt;p&gt;As I wanted to go further in the future, I asked Keil to include RTOS.&lt;/p&gt;
&lt;p&gt;What means the first two lines : the while(1) wille never be executed ?&lt;/p&gt;
&lt;p&gt;My first attempt to build the project gave errors about configENABLE_TRUSTZONE&amp;nbsp; (#35: #error directive: configENABLE_TRUSTZONE must be defined in FreeRTOSConfig.h.). It is defined in FreeRTOS.h !!!! I haven&amp;#39;t understand what trustzone safety is. May I turn it off ?&lt;/p&gt;
&lt;p&gt;Second attempt gave me 137 errors. Most of them concern configASSERT: why ? :&lt;/p&gt;
&lt;p&gt;../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(106): error:&amp;nbsp; #18: expected a &amp;quot;)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configASSERT( xSize == sizeof( EventGroup_t ) );&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168738?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 16:35:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e54fd286-82d9-49e1-a999-11f0802d0c6a</guid><dc:creator>Robert McNamara</dc:creator><description>&lt;p&gt;STM32F7xx_hal_gpio.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168734?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2020 11:12:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:38afefd3-46cb-4e15-bc15-44e2a8ed56a3</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;private message for Andy : I&amp;rsquo;m stubborn and I will succeed !!!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have another question. I try to understand the GPIO toggle button example. In main.c there is a reference to GPIO_PIN_1. I am unable to see where it is defined !&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/471/Capture_5F00_gpio_5F00_pin_5F00_1.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;What do I missed ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168687?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 18:54:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:acd178ab-ded9-4256-b8c7-37971a77c18e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;You realise that ST made an Arduino core for STM32 ... ?&lt;/p&gt;
[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question/168686"]question about CubeMx[/quote]
&lt;p&gt;CubeMX is entirely an ST thing - nothing to do with Keil or ARM - so you need to ask ST about that:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.st.com/s/"&gt;https://community.st.com/s/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168686?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 18:45:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e248a9f0-4d3c-4f90-85f4-5a452890b801</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;Have you considered Arduino?&lt;/p&gt;
&lt;p&gt;More than 6000 people work for ST in my surroundings. I have some friends among them. If they know that I don&amp;#39;t work with STM32, they shot me down ;-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a second question about CubeMx : in the pinout view (see JPG) you have the pin description of the MCU. But what I would like is to be able to parameter pins in CN4, CN5, CN6 and CN7; in fact the only pins that are connected to the &amp;#39;outside&amp;#39; world. How can I have that ?&lt;/p&gt;
&lt;p&gt;&lt;img class="align-right" style="float:right;" alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/471/Capture_5F00_pinout.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168681?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 12:02:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:da69932f-2d10-4d7d-9faf-52c09fce8918</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question/168672"]10euros[/quote]
&lt;p&gt;That&amp;#39;s cracking value!&lt;/p&gt;
&lt;p&gt;However, I would still say that it&amp;#39;s grossly over-specified both for a beginner to start on and for the task you mentioned - could your friend not get you something simpler?&lt;/p&gt;
&lt;p&gt;Even if you bought it from a distributor, the Nucleo boards are under 20 euros&lt;/p&gt;
&lt;p&gt;Have you considered Arduino?&lt;/p&gt;
[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question/168672"]One good thing about it is : when you plug the mini-Usb, it works and you can play with it !![/quote]
&lt;p&gt;Indeed - that is the norm these days!&lt;/p&gt;
&lt;p&gt;and it comes with all the functionality of an ICE built in - which would have been a large cabinet and cost tens of thousands of dollars back in the day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168672?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 20:11:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:efc597ff-14eb-4a05-b443-4c59d0e33c58</guid><dc:creator>Retired beginner</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;I have read a lot these last days !!. I&amp;#39;ll go to the link you gave me.&lt;/p&gt;
&lt;p&gt;About STM32F750 Discovery kit : I live near ST plant in Crolles and it is a friend of mine who works here who sold me this board (for 10euros !). One good thing about it is : when you plug the mini-Usb, it works and you can play with it !! When I was young, back in the 80&amp;#39;s (!) I began working with microprocessors; my first one was a 4004 ! Then 6502, 8080, 8051, Z80, 68000 ....&lt;/p&gt;
&lt;p&gt;About reloading demo apps : I am afraid of one thing : what about ST Link (I think it is the program that manage the communication with the PC via mini USB) : will it be destroyed when I load my own demo program ?&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: beginner simple question</title><link>https://community.arm.com/thread/168659?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 11:27:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1d8cf43e-e49e-44e0-be8e-25d6abf08540</guid><dc:creator>Andy Neil</dc:creator><description>[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question"]I want to learn how to work with STM32[/quote]
&lt;p&gt;Links &lt;a href="/developer/tools-software/tools/f/keil-forum/35918/not-able-to-see-variables-in-memory-window/109675#109675" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt; to lots of training materials from both ST and Keil&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question"]For my first step, I bought a STM32F750 Discovery kit[/quote]
&lt;p&gt;That is rather advanced for a first step - and for your stated aim.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="70218" url="~/developer/tools-software/tools/f/keil-forum/48052/beginner-simple-question"]&lt;p&gt;send it to the board WITHOUT destroying the default apps ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;No - what you download will overwrite what&amp;#39;s already in the chip.&lt;/p&gt;
&lt;p&gt;But the demo apps are available from ST - so you can re-load them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>