I am really new to embedded software programming and as part of a project I am required to write a HAL for the Flash for erase and write operations. The write operations to be supported are 8-bit unsigned bytes at any address, 16-bit unsigned words at an even address, and 32-bit unsigned long words on an address evenly divisible by 4. The HAL should support the allocation of Flash memory at the user’s request.
Also to do this I am restricted to the first 8-byte phrase of Sector 0 of Flash Block 2. I am including the work I have done so far using KDS 3.0 and would really appreciate if someone could help me out with programming the Flash HAL.
Original Attachment has been moved to: Flash-Project.zip