| Electronic Components Datasheet Search |
|
AN4570 Datasheet(PDF) 39 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4570 Datasheet(HTML) 39 Page - STMicroelectronics |
|
39 / 46 page ![]() DocID026804 Rev 1 39/46 AN4570 Interfacing with an 8-bit NAND Flash memory 45 /* Write data to the NAND memory */ if (HAL_NAND_Write_Page(&nandHandle, &Address, nand_aTxBuffer, 1) != HAL_OK) { return NAND_ERROR; } /* Read back data from the NAND memory */ if (HAL_NAND_Read_Page(&nandHandle, &Address, nand_aRxBuffer, 1) != HAL_OK) { return NAND_ERROR; } return NAND_OK; } /** * @brief Initializes the NAND MSP. * @param None * @retval None */ void HAL_NAND_MspInit(NAND_HandleTypeDef *hnand) { GPIO_InitTypeDef GPIO_Init_Structure; /* Enable FMC clock */ __FMC_CLK_ENABLE(); /* Enable GPIOs clock */ __GPIOD_CLK_ENABLE(); __GPIOE_CLK_ENABLE(); __GPIOG_CLK_ENABLE(); /* Common GPIO configuration */ GPIO_Init_Structure.Mode = GPIO_MODE_AF_PP; GPIO_Init_Structure.Pull = GPIO_NOPULL; GPIO_Init_Structure.Speed = GPIO_SPEED_HIGH; GPIO_Init_Structure.Alternate = GPIO_AF12_FMC; /* Data D0->D7 */ |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |