njfane
Junior Member level 1
now i am woking on a board with a 8051 compatiable macrocontroller, there are two memroy space, OTP for bootstarp and flash memory for code storage. for the first step, I need write a bootstrap for OTP, I have finished the communication part with host using CAN bus, my problem is how to write the code into flash memroy, I know the flash need to be erased first and then write the code and verify, is there any special sequence to erase or write to flash? and is there any difference for flash form different company?