Compiling for a wristband (ID115) #6819
Replies: 1 comment
-
Posted at 2018-06-07 by @gfwilliams Ahh, those instructions are old. There are some at https://github.com/espruino/Espruino/blob/master/README_Building.md Basically you need and:
Posted at 2018-06-07 by @yerpj
That worked! Thanks. This evening I'll try to drive the OLED display thanks to the documentation provided by [rbaron] : https://rbaron.net/blog/2018/05/27/Hacking-a-cheap-fitness-tracker-bracelet.html Posted at 2018-06-07 by @gfwilliams Have you seen this? http://forum.espruino.com/conversations/280747/ I thought that's what you linked originally but it seems not. I hacked an nRF51 watch that appears to be from the same manufacturer (it's just an older version), so chances are the code I used will work if you change the pin names. There's even a branch where I added a compiled OLED driver (I'm not 100% sure if that ever worked): https://github.com/espruino/Espruino/compare/DO003-oled You'll find that the chip in there is the AA variant (so only 16k of RAM). With Bluetooth that leaves 6k for all your program code, so things are getting a bit tight. With recent changes and the ability to execute out of flash (save on send) life will be better, but it's still not much. It'll be fun, but if you wanted something really usable I'd maybe try one of the manufacturer's later NRF52-based watches as they've got bags of memory :) It's been on my to-do list if I ever get any free time. Posted at 2018-06-07 by @yerpj I will have a look at the code you wrote on the DO003. Posted at 2018-06-07 by @gfwilliams
Wow, nice. I didn't think of that - that should give you a lot more to work with! Posted at 2018-06-08 by @yerpj I managed to build Espruino for the ID115, flash the nrf51822 and drive the LCD, that's super awesome :-) Now I would like to add the Posted at 2018-06-08 by @yerpj
OK actually this seems to be the way to go.... By removing this instruction, I had to remove here and there some Posted at 2018-06-08 by @yerpj
Just discovered that when doing a Posted at 2018-06-11 by @gfwilliams Honestly, I'm not sure. It could be misalignment...Perhaps try 'save on send' in the IDE and see if that is any different? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-06-07 by @yerpj
Hi there,
Yesterday I was trying to compile Espruino for a low-cost wristband (ID115) based on the NRF51822. I read the topic http://forum.espruino.com/conversations/280007/ and I tried to run
NRF51822DK=1 RELEASE=1 make
. The CC and LD processes did their job, apart from generating the output binary. I expected to see something like aespruino_1v99_nrf51822.bin
file in the root path. Instead, the binary is calledespruino
, with no extension.Beta Was this translation helpful? Give feedback.
All reactions