When checking https://github.com/espruino/Espruino/blob/master/boards/NRF51822DK.py try removing GRAPHICS library, then removing gpio as pin reset define could save some code (reset should still work as long as this code run at least once on this board). Also in same board file try to increase page constants '3' in saved_code section as the size and start of Storage is hardcoded there. If you set it too large the linker should fail.
EDIT:
It looks that CONFIG_GPIO_AS_PINRESET is perhaps only relevant for nrf52 and got copied there by mistake and does nothing for nrf51
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
When checking https://github.com/espruino/Espruino/blob/master/boards/NRF51822DK.py try removing GRAPHICS library, then removing gpio as pin reset define could save some code (reset should still work as long as this code run at least once on this board). Also in same board file try to increase page constants '3' in saved_code section as the size and start of Storage is hardcoded there. If you set it too large the linker should fail.
EDIT:
It looks that CONFIG_GPIO_AS_PINRESET is perhaps only relevant for nrf52 and got copied there by mistake and does nothing for nrf51