This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

beginner simple question

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' railway layout

English is not my natural language.

For my first step, I bought a STM32F750 Discovery kit. I put in the usb cable and ... it works. I can use the demo apps.

My first question is : can I build a new small program and send it to the board WITHOUT destroying the default apps ?

Second question : when I installed Keil compiler, there was a 'pack installer' window. I could'nt find STM32F750 Discovery kit in it. Can I find it somewhere or do I have to use a 'similar' kit ?

Thanks in advance

Jean

Parents
  • Hi Andy,

    like this ? ;-)

      /* 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 */

    Jean

Reply
  • Hi Andy,

    like this ? ;-)

      /* 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 */

    Jean

Children