H753_CPP_AS6C4008_FMC_DaughterBoard_02
Loading...
Searching...
No Matches
main.c File Reference

: Main program body More...

#include "main.h"
#include "stdio.h"
#include "sram_validation.h"
#include "sram_integration.h"
Include dependency graph for main.c:

Macros

#define SRAM   __attribute__((section(".sramdata")))
 
#define SRAM_BANK_ADDR   ((uint32_t)0x60000000)
 
#define SRAM_MEMORY_WIDTH   FMC_NORSRAM_MEM_BUS_WIDTH_8
 
#define SRAM_TIMEOUT   ((uint32_t)0xFFFF)
 
#define BUFFER_SIZE   ((uint32_t)16)
 
#define WRITE_READ_ADDR   ((uint32_t)0x0800)
 
#define SRAM_STATUS_OK   0x00
 SRAM status definition.
 
#define SRAM_STATUS_INIT_ERROR   0x01
 
#define SRAM_CS_ENABLE   HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, 0);
 
#define SRAM_CS_DISABLE   HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, 1);
 
#define SRAM_INTEGRATION_TEST_ENABLE
 

Functions

void SystemClock_Config (void)
 Configure the H753 system clocks used by the SRAM validation firmware.
 
void globalDataCopy (void)
 
int main (void)
 Application entry point for the H753 SRAM validation firmware.
 
void Error_Handler (void)
 Enter the fatal error handler loop.
 

Variables

UART_HandleTypeDef huart1
 
SRAM_HandleTypeDef hsram1
 

Detailed Description

: Main program body

Attention

Copyright (c) 2026 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.

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   ((uint32_t)16)

◆ SRAM

#define SRAM   __attribute__((section(".sramdata")))

◆ SRAM_BANK_ADDR

#define SRAM_BANK_ADDR   ((uint32_t)0x60000000)

◆ SRAM_CS_DISABLE

#define SRAM_CS_DISABLE   HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, 1);

◆ SRAM_CS_ENABLE

#define SRAM_CS_ENABLE   HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, 0);

◆ SRAM_INTEGRATION_TEST_ENABLE

#define SRAM_INTEGRATION_TEST_ENABLE

◆ SRAM_MEMORY_WIDTH

#define SRAM_MEMORY_WIDTH   FMC_NORSRAM_MEM_BUS_WIDTH_8

◆ SRAM_STATUS_INIT_ERROR

#define SRAM_STATUS_INIT_ERROR   0x01

◆ SRAM_STATUS_OK

#define SRAM_STATUS_OK   0x00

SRAM status definition.

◆ SRAM_TIMEOUT

#define SRAM_TIMEOUT   ((uint32_t)0xFFFF)

◆ WRITE_READ_ADDR

#define WRITE_READ_ADDR   ((uint32_t)0x0800)

Function Documentation

◆ globalDataCopy()

void globalDataCopy ( void )
extern

◆ SystemClock_Config()

void SystemClock_Config ( void )

Configure the H753 system clocks used by the SRAM validation firmware.

Supply configuration update enable

Configure the main internal regulator output voltage

Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef structure.

Initializes the CPU, AHB and APB buses clocks

Variable Documentation

◆ hsram1

SRAM_HandleTypeDef hsram1

◆ huart1

UART_HandleTypeDef huart1