From 476c28cb24698c5dcb602265044d4e02f6477904 Mon Sep 17 00:00:00 2001 From: Paul Molloy Date: Thu, 24 Aug 2017 13:56:09 -0500 Subject: [PATCH] slight tweak to buffer.c for firmware, want buffer status to be last thing set as other things may trigger off of this. Also forgot firmware size report: AVR KAZZO: avr-size build_avr/avr_kazzo.elf text data bss dec hex filename 6952 6 674 7632 1dd0 build_avr/avr_kazzo.elf INL6: arm-none-eabi-size -t build_stm/inlretro_stm.elf text data bss dec hex filename 8408 0 684 9092 2384 build_stm/inlretro_stm.elf STM adapter: arm-none-eabi-size -t build_stm/inlretro_stm.elf text data bss dec hex filename 9212 0 684 9896 26a8 build_stm/inlretro_stm.elf Also the more I get into these flashing routines, maybe the original kazzo wasn't so bad.. It just takes awhile to flash these chips... I'm not sure it makes much sense to offer/support stm32 adapter. While it is less work to cut it out, it's brought out bugs in my code just due to having different platforms with their quirks manifest bugs. --- firmware/source/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/source/buffer.c b/firmware/source/buffer.c index 81ea9b6..7ece9ef 100644 --- a/firmware/source/buffer.c +++ b/firmware/source/buffer.c @@ -649,10 +649,10 @@ void update_buffers() if (result != SUCCESS) { cur_buff->status = result; } else { - cur_buff->status = DUMPED; //increment page_num so everything is ready for next dump //TODO make buffer_update function to handle everything cur_buff->page_num += cur_buff->reload; + cur_buff->status = DUMPED; } }