Created
July 26, 2018 12:20
-
-
Save prrraveen/8fa3413e272165ac8a62816fecf52f84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//uint32_t kb = 128; | |
//uint32_t byteIn1KB = 1024; | |
//uint32_t flashSize = kb * byteIn1KB; | |
// | |
//uint32_t blSize = 8192; | |
// | |
//uint32_t appFlashSection = flashSize - blSize; | |
uint8_t foo[pageSize]; | |
uint32_t partition2 = 61440; | |
uint32_t partition1 = 0; | |
uint32_t i; | |
uint8_t ram_buffer[pageSize] = "0000000"; | |
//uint8_t startByte = pgm_read_byte(partition2); | |
//if (startByte != 255) { | |
for (uint32_t j = 0; j < 240; j++) { | |
uint32_t lim = partition2 + 256; | |
//for(i = partition2; i < lim; i++) { | |
//uint8_t byte = pgm_read_byte(i); | |
// uint8_t byte = pgm_read_byte_far(i); | |
// uint32_t j = i - partition2; | |
// foo[j] = byte; | |
// } | |
uint8_t *buffer = ram_buffer; | |
writebuffer(desttype, buffer, partition1, saveLen); | |
partition2 = partition2 + 256; | |
partition1 = partition1 + 256; | |
} | |
//} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment