| Electronic Components Datasheet Search |
|
AN4570 Datasheet(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4570 Datasheet(HTML) 17 Page - STMicroelectronics |
|
17 / 46 page ![]() DocID026804 Rev 1 17/46 AN4570 Interfacing with a non-multiplexed, asynchronous 16-bit NOR Flash memory 45 return NOR_ERROR; } /*##-2- Read & check the NOR device IDs ####################################*/ /* Initialize the ID structure */ NOR_ID.Manufacturer_Code = (uint16_t)0x00; NOR_ID.Device_Code1 = (uint16_t)0x00; NOR_ID.Device_Code2 = (uint16_t)0x00; NOR_ID.Device_Code3 = (uint16_t)0x00; /* Read the NOR memory ID */ if(HAL_NOR_Read_ID(&norHandle, &NOR_ID) != HAL_OK) { return NOR_ERROR; } /*##-3- Erase NOR memory ###################################################*/ /* Return to read mode */ HAL_NOR_ReturnToReadMode(&norHandle); /* Send NOR erase block operation */ HAL_NOR_Erase_Block(&norHandle, WRITE_READ_ADDR, NOR_DEVICE_ADDR); /* Return the NOR memory status */ if(HAL_NOR_GetStatus(&norHandle, NOR_DEVICE_ADDR, BLOCKERASE_TIMEOUT) != NOR_SUCCESS) { return NOR_ERROR; } /*##-4- NOR memory read/write access ######################################*/ /* Write data to the NOR memory */ if(NOR_WriteData(WRITE_READ_ADDR, nor_aTxBuffer, BUFFER_SIZE) != NOR_OK) { return NOR_ERROR; } /* Read back data from the NOR memory */ |
|
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 |