nRF52840 MDK USB Dongle Espruino Port #6869
Replies: 1 comment
-
Posted at 2022-08-18 by @fanoush There is no board file with correct pins but it is easy to make one, can you find out pinout or schematics? Or do you know the pinout of your board is compatible with Nordic nrf52840 dongle? More details here There is topic about Espruino for nordic 52840 dongle, you may try builds from posts below this one http://forum.espruino.com/conversations/323658/?offset=100 Anyway, it is just about correct board file, no changes are needed in Espruino source. Posted at 2022-08-18 by thejoker187 Hello @fanoush, nice to read you again, I was able to find the schematic of the dongle I have. From waht I can see it is really simple just a nRF52840 chip a voltage regulator and a classic rgb led. You'll find the schematic below. no external flash is present by the way Attachments: Posted at 2022-08-18 by @fanoush OK so the pinout is different from nordic dongle. There are couple of dongles on aliexcpress that have exactly same pinout as nordic one so this is not the case. Also it comes with usb bootloader, two different ones in fact as per https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/programming/ :-) so unless you plan to use SWD for programing and clear everything the most important setting in board file is the storage area so that it does not overwrite existing bootloader. Posted at 2022-08-18 by thejoker187 Well of course I will use the swd to fresh program everyhing from start, including bootloader. Attachments: Posted at 2022-08-18 by @fanoush I'd remove With SWD it does not matter much as it is easy to recover from mistakes. OTOH having some bootloader is practical. The USB one is nice as it is fast, works also in Windows with nrf tools and does not depend on softdevice version, almost as good as SWD for updates. Posted at 2022-08-18 by thejoker187 Well I only would like to have the usb as a serial device and the standard espruino bootloader to use nrf connect on my smartphone. I tried to compile with the latest espruino repo and I got this error:
Posted at 2022-08-18 by @fanoush Does building for BANGLEJS2 board (or NRF52840DK) work? If yes then there is probably some python syntax error in the board file. Posted at 2022-08-18 by thejoker187 Yep, It build quite fine for every Espruino board, and yes I always use make clean first. I think I found the problem, basically in the board file i was using the function:
contained the pin array as
I changed it as i found in the nrf52840dk.py
Now everything builds correctly but I'm not sure what I did is correct Posted at 2022-08-18 by thejoker187 Ok, after testing everyhing went fine the board is working correctly, tomorrow I'll post a more decent board file and the compiled hex. Bye for now Attachments: Posted at 2022-08-24 by thejoker187 A bit late but here I am, below you'll find the board file I did and a pre compiled hex (to be used with st-link / j-link ) for flashing. Everything works really well, the only thing I haven't done yet is to decide what to do with the BTN1 device because right now it is connected to the reset pin of the nRF Attachments: Posted at 2023-12-11 by DanDyse I have tried this one on 52840 devices (E73 from Ebyte), it works at first. But when changing advertising later (by timer) it falls back into advertising as "UART" instead – strangely because it was never named like this. Maybe a default setting. All other options (interval, connection, ...) seem to be accurate. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-08-17 by thejoker187
Hi all,
I just received a couple of those nRF52840 dongles from makerdiary (as you can see below) nice boards even with a plastic shell. I would like to run Espruino on those it will be possible ? Can I build the firmware for it with actual Espruino Repo ? Thanks a lot to everyone
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions