Symbols
loading...
Files
loading...

IAP_Main sample

IAP_Main is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
This function handles NMI exception.
This function handles Hard Fault exception.
This function handles Debug Monitor exception.
This function handles Memory Manage exception.
This function handles Bus Fault exception.
This function handles Usage Fault exception.
This function handles SysTick Handler.
This function handles SVCall exception.
This function handles PendSVC exception.
Main program.
Print a string on the HyperTerminal
Transmit a byte to the HyperTerminal
This function writes a data buffer in flash (data are 32-bit aligned).
Cal CRC16 for YModem Packet
Update CRC16 for input byte
This function does an erase of all user flash area
Unlocks Flash for write access
Convert an Integer to a string
Configure the write protection status of user flash area.
Convert a string to an integer
Returns the write protection status of user flash area.
Receive a file using the ymodem protocol with CRC16.
Transmit a file using the ymodem protocol
Display the Main Menu on HyperTerminal
Upload a file via serial port.
Download a file via serial port
Calculate Check sum for YModem Packet
Gets the sector of a given address
Initialize the IAP: Configure USART.
System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSE) SYSCLK(Hz) = 168000000 HCLK(Hz) = 168000000 AHB Prescaler = 1 APB1 Prescaler = 4 APB2 Prescaler = 2 HSE Frequency(Hz) = 25000000 PLL_M = 25 PLL_N = 336 PLL_P = 2 PLL_Q = 7 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 5
Receive a packet from sender
Prepare the first block
Prepare the data packet

Other commonly used symbols

Name
Location
Summary
Internal High Speed oscillator (HSI) value. This value is used by the RCC HAL module to compute the system frequency (when HSI is used as system clock source, directly or through the PLL). Value of the Internal oscillator in Hz
Adjust the value of External High Speed oscillator (HSE) used in your application. This value is used by the RCC HAL module to compute the system frequency (when HSE is used as system clock source, directly or through the PLL). Value of the External oscillator in Hz
Miscellaneous Configuration *********************** Vector Table base offset field. This value must be a multiple of 0x200.
@file IAP/IAP_Main/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file STM32F4xx_IAP/inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
External clock source for I2S peripheral This value is used by the I2S HAL module to compute the I2S clock source frequency, this source is inserted directly through I2S_CKIN pad. Value of the external oscillator in Hz
Internal Low Speed oscillator (LSI) value.
External Low Speed oscillator (LSE) value. Value of the External Low Speed oscillator in Hz
Time out for HSE start up, in ms
Time out for LSE start up, in ms
@file STM32F4xx_IAP/inc/stm32f4xx_hal_conf.h @author MCD Application Team HAL configuration file. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
This is the list of modules to be used in the HAL driver
This is the HAL system configuration section Value of VDD in mv
Transceiver Basic Control Register
Auto-Negotiation process completed
PHY status register Offset
Transceiver Basic Status Register
Enable auto-negotiation function
Select the power down mode
Set the full-duplex mode at 100 Mb/s
Set the half-duplex mode at 100 Mb/s
Set the full-duplex mode at 10 Mb/s
Set the half-duplex mode at 10 Mb/s
Restart auto-negotiation function
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code
MII Interrupt Status and Misc. Control Register
MII Interrupt Control Register
PHY Enable output interrupt events
Enable Interrupt on change of link status
PHY link status interrupt mask
@file IAP/IAP_Main/Inc/flash_if.h @author MCD Application Team This file provides all the headers of the flash_if functions. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file IAP/IAP_Main/Inc/common.h @author MCD Application Team This file provides all the headers of the common functions. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file IAP/IAP_Main/Inc/menu.h @author MCD Application Team This file provides all the headers of the menu functions. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file IAP/IAP_Main/Inc/ymodem.h @author MCD Application Team This file provides all the software function headers of the ymodem.c file. Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.st.com/software_license_agreement_liberty_v2 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependencies