Search found 473 matches

by devnull
Tue Dec 31, 2019 11:20 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 9551

Re: Flashing NRF using pyOCD

Spent 2 days on this, and nothing at all from the UART. I have triple-checked the connections and never get any errors, but not a whisper from the UART :-( BTFW61="micropython/ports/nrf/drivers/bluetooth/s140_nrf52_6.1.1/s140_nrf52_6.1.1_softdevice.hex"; HOLYHEX="micropython/ports/nrf/build-holyiot_...
by devnull
Tue Dec 31, 2019 12:38 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 9551

Re: Flashing NRF using pyOCD

Thanks; I tried that, but still nothing out of the uart. I also tried changing the target to nrf52840 and nrf52 and using a .hex file for the firmware file, but nothing at all from the uart. This is a device that I successfully flashed about a year ago using openocd, however that will no longer run ...
by devnull
Mon Dec 30, 2019 2:24 pm
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 9551

Flashing NRF using pyOCD

Hi; I have built the firmware for the NRF52 and also dowloaded the bluetooth stack for the device. Using STLink V2, I have flashed both files: BTFILE="s140_nrf52_6.1.1_softdevice.hex" FWFILE="pca10056-191230-42e45bd.bin" pyOCD flash $BTFILE --target nrf52 [====================] 100% 0009050:INFO:loa...
by devnull
Sun Dec 29, 2019 7:19 am
Forum: General Discussion and Questions
Topic: reading socket into buffer and then reading buffer by line
Replies: 2
Views: 1892

Re: reading socket into buffer and then reading buffer by line

OK, forget these requests for help, I have solved the problem by using select.poll() on the socket.readline()
by devnull
Sun Dec 29, 2019 6:23 am
Forum: General Discussion and Questions
Topic: reading socket into buffer and then reading buffer by line
Replies: 2
Views: 1892

Re: reading socket into buffer and then reading buffer by line

This is an attempt at readline using a byte array: a = bytearray(b'0123\r\n45678\r\n9\r\n\r\n') def readline(): global a data=a old=None for i in range(len(a)): new = a[i] if old == 13 and new == 10: data = a[:i-1] a=a[i+1:] return data old = new a = bytearray() return data >>> readline() bytearray(...
by devnull
Sun Dec 29, 2019 2:38 am
Forum: General Discussion and Questions
Topic: reading socket into buffer and then reading buffer by line
Replies: 2
Views: 1892

reading socket into buffer and then reading buffer by line

I need to read from the socket and cannot use readline() as it is possible that the data does not contain line endings, in which case it will wait forever. So I am reading into a byte string as per the code below, however I realise that using a byte string may not be as efficient as reading into a b...
by devnull
Sat Dec 28, 2019 3:50 am
Forum: Pyboard D-series
Topic: RSSI of connected WLAN
Replies: 4
Views: 7810

Re: RSSI of connected WLAN

Hi; This has been discussed before, unless something has changed recently, you have to scan for all devices, and then iterate through them to match your connected SSID and then read the RSSI value from that scan result. I get the rssi (dbm) from my info() function and also calculate a sig strength %...
by devnull
Tue Dec 24, 2019 3:08 am
Forum: ESP32 boards
Topic: No File System After Build
Replies: 8
Views: 3702

Re: No File System After Build

Look at for example how the tinypico manifest (esp32/boards/TINYPICO/manifest.py) inherits from the base one.
@jimmo Thanks, I just added that to the Build Secrets Post
by devnull
Tue Dec 24, 2019 3:04 am
Forum: ESP32 boards
Topic: No File System After Build
Replies: 8
Views: 3702

Re: No File System After Build

How can I add a new path to the build so that I can also use it in related files line PORT_DIR

Code: Select all

freeze('$(PORT_DIR)/modules')
How can I add a new path i.e MY_DIR
by devnull
Tue Dec 24, 2019 3:02 am
Forum: General Discussion and Questions
Topic: Build Secrets
Replies: 14
Views: 7677

Re: Build Secrets - Frozen Manifest

If you have a custom manifest file, In order to include the files in the port/modules folder (which are the default frozen files) you need to include the modules folder in your manifest file: freeze('$(PORT_DIR)/modules') OR include('$(PORT_DIR)/boards/manifest.py') freeze("modules") If you don't th...