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
  • I am back after a hard work month.

    here is the simple code I want to run. Questions are underneath.

      /* We should never get here as control is now taken by the scheduler */
      /* Infinite loop */
      /* USER CODE BEGIN WHILE */
      while (1)
      {

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

    questions :

    As I wanted to go further in the future, I asked Keil to include RTOS.

    What means the first two lines : the while(1) wille never be executed ?

    My first attempt to build the project gave errors about configENABLE_TRUSTZONE  (#35: #error directive: configENABLE_TRUSTZONE must be defined in FreeRTOSConfig.h.). It is defined in FreeRTOS.h !!!! I haven't understand what trustzone safety is. May I turn it off ?

    Second attempt gave me 137 errors. Most of them concern configASSERT: why ? :

    ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(106): error:  #18: expected a ")"
                            configASSERT( xSize == sizeof( EventGroup_t ) );

    Best regards

    Jean

Reply
  • I am back after a hard work month.

    here is the simple code I want to run. Questions are underneath.

      /* We should never get here as control is now taken by the scheduler */
      /* Infinite loop */
      /* USER CODE BEGIN WHILE */
      while (1)
      {

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

    questions :

    As I wanted to go further in the future, I asked Keil to include RTOS.

    What means the first two lines : the while(1) wille never be executed ?

    My first attempt to build the project gave errors about configENABLE_TRUSTZONE  (#35: #error directive: configENABLE_TRUSTZONE must be defined in FreeRTOSConfig.h.). It is defined in FreeRTOS.h !!!! I haven't understand what trustzone safety is. May I turn it off ?

    Second attempt gave me 137 errors. Most of them concern configASSERT: why ? :

    ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(106): error:  #18: expected a ")"
                            configASSERT( xSize == sizeof( EventGroup_t ) );

    Best regards

    Jean

Children