Search found 452 matches

by devnull
Tue Dec 31, 2019 12:38 am
Forum: Other Boards
Topic: Flashing NRF using pyOCD
Replies: 13
Views: 925

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: 925

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: 195

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: 195

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: 195

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: 3
Views: 556

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: 445

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: 445

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: 924

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...
by devnull
Tue Dec 24, 2019 2:59 am
Forum: ESP32 boards
Topic: No File System After Build
Replies: 8
Views: 445

Re: No File System After Build

Thats very strange, I added an update before @jimmo posted but it does not seem to be updated ! anyway, the problem is caused by having a custom manifest file, and there are some files in the modules folder that are needed: So this needs to be added to your custom frozen manifest file: freeze('$(POR...