• on the Android DFU app, I don't have DfuTarg option, but Bangle ECDB instead. Is it ok?

    That's odd - if you started the scan before you entered bootloader mode then that might explain it.

    @sebi thanks for letting me know - the fact you built your own narrows it down a lot :)

    I don't really want to get involved in supporting this too much as I need to focus my time on getting the KickStarter Bangles out. BUT...

    Looks to me like the bootloader is there (as it's displaying the bootloader text), but is corrupt. This sounds like the compiler you're using is generating a bootloader binary that is too big to fit in the available memory area. It means the bootloader will get the end cut off, and will probably work well enough to boot Espruino, but not enough to actually be a bootloader.

    You could check the bootloader...hex file and see if right at the end the lines go :10DFE, :10DFF and THEN :xxE00. That'll mean it's running into the next page.

    The bootloader is ridiculously tight (due to the SDK11 layout it has to fit in less RAM than a normal SDK12 bootloader, plus it has to have an LCD driver). Even using the wrong compiler would have that effect. I'm using 8-2018-q4-major on mine and it fits with only about 8 bytes to spare.

    If you or anyone else can find a way to get a few more bytes free in the bootloader it'd be hugely appreciated :)

  • The bootloader is ridiculously tight (due to the SDK11 layout it has to fit in less RAM than a normal SDK12 bootloader, plus it has to have an LCD driver). Even using the wrong compiler would have that effect. I'm using 8-2018-q4-major on mine and it fits with only about 8 bytes to spare.

    Indeed, tried yesteday and for me it is just three bytes. There is a check in the makefile for size so it could be reduced to 7a000-7dfff area to catch this and fail. In fact I had my own modifications there for other devices and had to build from scratch since even one added line made it too big. BTW I think you could disable bootloader and app version checking that prevents downgrade here to save few bytes.

About

Avatar for fanoush @fanoush started