Search found 129 matches
- Fri Oct 05, 2018 9:52 pm
- Forum: General Discussion and Questions
- Topic: Use micropython to do dead simple "over-the-air" code updates
- Replies: 34
- Views: 25958
Use micropython to do dead simple "over-the-air" code updates
The idea for doing OTA code updates is simple enough: you transmit each line of code and the target assembles it into a string. Then the target executes the string, which updates the code on the target. QED Here's a notional example of what I mean: >>> simpleCode="def j(x): return x**2" >>> simpleCo...
- Fri Oct 05, 2018 6:15 pm
- Forum: Other Boards
- Topic: [nRF52] How do I change the RXI and TXO serial pin assignments in the nRF52840 build?
- Replies: 4
- Views: 4726
[nRF52] How do I change the RXI and TXO serial pin assignments in the nRF52840 build?
I was (I think) able to flash the nRF52840-DK micropython build onto the NnRF52840-DONGLE, but now I can't communicate with the dongle because the exposed pins on the dongle are different from the default serial pins on the DK. Furthermore, the chip based USB on the dongle no longer works because, I...
- Fri Oct 05, 2018 4:26 pm
- Forum: Other Boards
- Topic: Attached is micropython firmware for the nRF52840
- Replies: 33
- Views: 23602
Attached is micropython firmware for the nRF52840
I built the firmware for the nRF52840. To save others the bother, here it is attached. IMHO, setting up the toolchain and other programs to do the build is non-trivial, and the firmware.hex file should, as a rule, be posted to github, but it presently isn't. Therefore, I recommend the moderator to p...
- Fri Oct 05, 2018 2:28 pm
- Forum: General Discussion and Questions
- Topic: Success! Attached is the firmware for running micropython on the nRF52832
- Replies: 4
- Views: 4230
Re: I can't seem to make the .hex file for the nRF52
Success! I uploaded firmware.hex to the nRF52832 DK, and it's now running micropython. :D :D :D I confirmed it by opening a putty terminal to the DK at 115200 baud. I am getting the >>> prompt, and it added together 1 + 1, as expected. 8-) Quite honestly, though, the build process is a needless ritu...
- Fri Oct 05, 2018 1:50 pm
- Forum: General Discussion and Questions
- Topic: Success! Attached is the firmware for running micropython on the nRF52832
- Replies: 4
- Views: 4230
Re: I can't seem to make the .hex file for the nRF52
I made it as far as this: root@debian9:/home/david/micropython/ports/nrf# sudo make flash Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. GEN build-pca10040/genhdr/mpversion.h CC ../../py/modsys.c CC ../../extmod/modwebrepl.c CC ../../lib/utils/pyexec.c CC modules/...
- Thu Oct 04, 2018 6:24 pm
- Forum: General Discussion and Questions
- Topic: Success! Attached is the firmware for running micropython on the nRF52832
- Replies: 4
- Views: 4230
Re: I can't seem to make the .hex file for the nRF52
Answering my own question: I was using a raspberry pi to do the make, but it turns out that the nrfjprog executable doesn't work on ARM: https://devzone.nordicsemi.com/f/nordic ... berry-pi-3 and I guess it never will. So, I'll try again to make the nRF52832 micropython hex file by loading Debian on...
- Thu Oct 04, 2018 4:58 pm
- Forum: Other Boards
- Topic: Is there any example code for manipulating the registers on the nRF52?
- Replies: 5
- Views: 4449
Re: Is there any example code for manipulating the registers on the nRF52?
I think pythoncoder is probably right. I'll give it a try if I can ever get the .hex file created (I'm having make problems with nrfjprog. I posted a question about it, but I'm having to wait for moderation.)
- Thu Oct 04, 2018 4:55 pm
- Forum: General Discussion and Questions
- Topic: Success! Attached is the firmware for running micropython on the nRF52832
- Replies: 4
- Views: 4230
Success! Attached is the firmware for running micropython on the nRF52832
I followed the instructions here: https://github.com/micropython/micropython/tree/master/ports/nrf and everything seemed to go fine up until: make flash which threw an error: pi@raspberrypi:/home/david/micropython/ports/nrf $ sudo make flash Use make V=1 or set BUILD_VERBOSE in your environment to i...
- Thu Oct 04, 2018 4:07 am
- Forum: Other Boards
- Topic: Is there any example code for manipulating the registers on the nRF52?
- Replies: 5
- Views: 4449
Is there any example code for manipulating the registers on the nRF52?
Simply put, I'd like to use Nordic's so-called "proprietary" radio modes (i.e. not bluetooth per se), and unless there's already a micropython library which supports that (?), then I will need to manipulate the registers directly to send and receive packets. I've done this successfully using C, but ...