Closed ddm closed 7 years ago
I think i had a similar issue playing with a waveshare clone, and still have other issues. I think i fixed the byte issue with a changed config, might have just been pages in the chip section which i changed. I hope i don't forget it tomorrow, i only have the code at my work machine since it is still toying around :-)
Funny you mention that: I noticed it works on my custom board (but not the PCA10028) when I just add the -g3
compiler flag and drop RELEASE=1
. No amount of work on the saved_code
board config values seems to do any good though.
On micro:bit this works I think. Change pages:0
to pages:3
in your file - seems to be a bug in the nRF51DK board file
@gfwilliams Thank you for the fix Gordon! I just realised that changing gcc
flags had nothing to do with me getting it to work: I had set pages:3
on my custom board too... I guess the nRFTag board should be updated since it uses the same nRF51822-QFAA variant as the micro:bit and my custom board.
Tested with the following nRF51 variants (QFN48):
NRF51822DK=1
)To reproduce using the PCA10028 development kit:
git clone https://github.com/espruino/Espruino.git && cd Espruino
git co 1317aa0
NRF51822DK=1 RELEASE=1 make
espruino_1v86.1614_nrf51822.hex
to PCA10028 DKsave()
⇒ERROR: Too big to save to flash (xxx vs -4 bytes)
regardless of the code.