You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • Wow thanks fanoush, that's all really helpful .. although I don't fully understand all of it! Hopefully I haven't wiped the existing softdevice! Let me try just with the app hex then.. I don't know which SD they're on, but I guess 140.

    make sure the binary and saved_code espruino configuration section fits below 0xF4000

    not sure how I'd ensure that, what do I put in the board config and how do I work that out?

  • I guess 140

    yes, but which version of S140, looks like they are on 6.1.1 now and there is even board file for clue

    what do I put in the board config and how do I work that out?

    you needto do the math

    'saved_code' : {
        'address' : ((270 - 10) * 4096),
        'page_size' : 4096,
        'pages' : 10,
        'flash_available' : 1024 - ((31 + 30 + 2 + 10)*4)
      },
    

    the ((270 - 10) * 4096) and 1024 - ((31 + 30 + 2 + 10)*4) parts. (270 - 10) and 31 + 30 + 2 + 10 are counted in number of 4KB flash pages but not sure why there are exactly such numbers

    Hopefully I haven't wiped the existing softdevice

    Not sure, probably not. But maybe you have another soft device where the app should be, don't know what the uf2conv.py does.

    For update package you typically build with DFU_UPDATE_BUILD=1
    otherwise I think softdevice is merged into final hex file

About

Avatar for fanoush @fanoush started