Hello Matthias, Matthias Trute <mtr...@web.de> writes:
>> May I suggest making AmForth a BOOFA bootloader friendly by adding >> the following to core/amforth.asm: >> >> .org NRWW_START_ADDR + #ifdef BOOFA ;The BOOFA bootloader + >> .org >> pc+512 ; is 512 words max! + #endif .include >> "amforth-interpreter.asm" > > Looks like a hack to me. A proud hacker I am ;-) > First that comes to me is that the bootloader cannot > change the content of the NRWW area. I think this will be > troublesome if you want to change code there as well. "The SPM (Store Program Memory) instruction that writes into the Application Flash memory section must reside in the Boot Program section." SPM can be used to write both to the RWW and the NRWW sections (at least in my µC case). > For that it would be better to use the amforth-low instead > of the amforth.asm. This requires some glue code for the > !i word. And here lies what I call the "hack": both > boofa and amforth have code to write to the flash. > But they do not cooperate here and do not share code. > I think that this can be made in a better way, e.g. > some forth code that implements the boot loader protocol. BOOFA is simple code that is unlikely to change. Not so is our lovely AmForth. It would be best to keep those two projects mindful of each other but not dependent on each other. > In a few earlier releases I had a customizable start address > of the NRWW code part, seems that dropping this was > not a smart idea ;) In my application the Start NRWW and the Start Boot Loader coincide. Through BOOTRST=0 the Reset Vector = Boot Loader Reset passes control to BOOFA, BOOFA then passes control to AmForth via a JMP 0. Anyway, BOOFA works well and made my multi µC AmForth project easier to handle using a single JTAG Mk2 that I don't need any more to plug and replug. Regards, Enoch. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel