@ersmith Ok, does seem there is a problem with loadp2 and -himem=flash.
One setup did not have "#define MICROPY_PY_SELECT (1)" in it and was just a hair smaller and that works.
But, when that is added, it can no longer load.
The difference in code size is tiny:
text data bss dec
294540 16936 217640 529116 --> Won't load
292848 16904 217640 527392 --> Loads ok
Here are two elf examples. Smaller one loads, bigger one won't...
Comments
@ersmith I'll try that thanks.
On another front, I'm having problem with loadp2 and the -HIMEM=flash .elf outputs.
Seems above some size, it gives me:
On one computer, was able to fix it by adding the "-v" verbose option.
Haven't found a solution yet on another...
WAIT A SEC. Seems the binary on the working PC also works on this problem PC...
Must be a problem in the code somewhere...
@ersmith Ok, does seem there is a problem with loadp2 and -himem=flash.
One setup did not have "#define MICROPY_PY_SELECT (1)" in it and was just a hair smaller and that works.
But, when that is added, it can no longer load.
The difference in code size is tiny:
text data bss dec
294540 16936 217640 529116 --> Won't load
292848 16904 217640 527392 --> Loads ok
Here are two elf examples. Smaller one loads, bigger one won't...
Added an extra delay in loadp2.c and seems to have fixed it: