From: Rob P. <lis...@fl...> - 2022-12-26 08:21:48
|
On 26/12/2022 07:04, kus...@sp... wrote: > the actual execution may work (and thus avoid the error message > completely) > once I get the code load properly to gpsim. Quite likely your code will work better if it's actually loaded... at all! The .cod error you're seeing at line 181 of cod.cc prevents any of the binary image being loaded, so your simulated flash is all blank. I'm not sure whether the problem is an absolute limitation of the COD file format or a limit of GPSim's parser. It throws that error if two adjacent page references aren't the same, but I don't know the format well enough to say what that means. It's not inconceivable that the format actually defines those fields as a first-and-last pair for block allocations, and when you hit 128 separate blocks the linker needs to allocate more than one page to the alloc block. If that's the case, I think this is a bug in GPSim, just one that very few people ever trigger, and quite possibly one that was done deliberately because the author didn't expect anyone ever could trigger it. It would be pretty hard on a device with as little flash as the early PICs. Cheers, Rob |