Porting Espruino to RedBear BLE Nano 2 #6771
Replies: 1 comment
-
Posted at 2017-02-03 by @gfwilliams RedBear said in their KickStarter:
So I'd bug them about it. They were perfectly happy to use our work on Espruino to try and sell more of their devices - I don't see why I should spend my time trying to help them out when they're not doing what they said they would on their KickStarter page. I know that's not good to hear for you as a backer of both, but it puts me in a difficult position. If they were willing to contribute back to Espruino development things might be different, but they did this on their last product too - they ported Espruino to that one and didn't contribute a single thing back - also the firmware hasn't been updated for 6 months so if you bought one of their products hoping to use Espruino on it you're basically screwed. Posted at 2017-02-03 by profra It is bad sitaution, especially for backers of both campaigns, who thought of the synergy of both. However, I understand your opinion... fully understand! I have no tools to remedy the situation just occurred to me that I could forward our communication to RedBear, if you give me permission. Can I do it? Posted at 2017-02-03 by @gfwilliams I'd prefer you didn't forward it to them - I don't really want to get involved... This is really an issue between RedBear and their KickStarter backers :) To be fair, at RedBear they've been perfectly friendly to me - even gave me some Duos. The issue is they don't see why they should contribute anything back to Espruino. They don't have to at all - what they're doing is perfectly fine... It just means I have no reason to spend time helping them out :) Posted at 2017-02-05 by profra OK, I'll respect that, I'll communicate with them only for my person. First, I'll give them a little time since they fulfilled their promises from KS campaign in advance. In the meantime I would like to try to do it myself, even though I had never done it. Posted at 2017-02-06 by @allObjects My plan was to use the Duo as a via for pucks to internet... now it's just sitting around... and I see not much activity on their side... Posted at 2017-02-06 by @gfwilliams You might just be able to upload the NRF52832DK image from here and have it work. It'd expect there to be a UART (TX on pin D6, RX on pin D8), so you probably ought to wire that up to a USB-TTL converter at least at first (or tie D8 to 3.3v), but it may 'just work'. If you can use it with the standard firmware then everyone's happy :) Posted at 2017-02-06 by @gfwilliams ... I mean P0_6 an P0_8 as well (not D6 and D8 - which appear to be redbear-specific, not chip-specific) Posted at 2017-02-06 by profra @gfwilliams Thank you for your advice but the link espruino_1v91.58_nrf52832.hex does not work. I just installed the compiler and try to build some FW... Yippee... Espruino for Linux working... Posted at 2017-02-06 by profra @gfwilliams Thank you for showing me the right direction!
Posted at 2017-02-07 by @gfwilliams Nice - I'm surprised that hex image from the repo didn't work though. Did you try without UART connected to Looking at this it seems Espruino checks to see if the UART is attached on all nRF52 boards, so if nothing was connected it should have just ignored it and presented itself over BLE like a Puck. Actually it looks like Posted at 2017-02-07 by profra Thanks for your reply. Now I can not do any experiments, I'm at work and I have my lab at home. I did not try described possibility, I was permanently connected to the USART... moreover I did not know about this dependence. In other words ... May I have more questions? Thanks for the additional hints ... it will be long night today :-) Posted at 2017-02-07 by @gfwilliams Well, BLE will always be available, but UART is only used if it's connected since it draws a lot of power.
You mean what's in those files? https://github.com/espruino/Espruino/blob/master/README_BuildProcess.md might help - but otherwise you just have to dig around I'm afraid.
It's all to do with the 'secure bootloader' - the zip file contains only the binary, but not the SoftDevice. The hex file contains everything (at least for nRF52DK) and is just a complete image of flash memory Posted at 2017-02-08 by profra @gfwilliams You had all the time right :-) The problems were, as usual, on 2 sides ... between keyboard and chair :-) as well as Linux Mint 18.1 has problems with bluetooth. Now work both ways ... UART line and BLE (but BLE only on my corporate notebook with W10 ...pairing without any problems). Now I am in a state which fully satisfies me, maybe later I will strive for OTA FW upgrade (as PUCKJS) but at the moment I do not need it... it takes a lot of time. Now I use DAPLink as dev tool and it is very quick, handy for development. Now the time has come to also start studying things around nrf52832. Posted at 2017-02-08 by @gfwilliams Thanks! Glad it works! Posted at 2017-03-22 by Fabio Hi can any one expain how to port espruino on BLE nano 2 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-03 by profra
@gfwilliams I was backer of both projects (Puck.js and RB BLE Module Nano 2). I have both on my desk now. I would like to have Espruino on Nano 2 for HW experiments what should be easy, both have the same MCU. BUT I don't know how to put FW of Espruino to Nano 2. Please could you give me some hints how to do it. Thank you in advance for your helpfulness.
Beta Was this translation helpful? Give feedback.
All reactions