Search found 22 matches

by dukeduck
Sat Mar 13, 2021 11:18 am
Forum: Other Boards
Topic: [STM32H743VI] Building firmware for STM32H743VIT6
Replies: 3
Views: 3937

Re: [STM32H743VI] Building firmware for STM32H743VIT6

Have you seen this repository? https://github.com/mcauser/MCUDEV_DEVEBOX_H7XX_M It doesn't compile too, but i got it running following the issue comments. There are also comments about the clock settings in the issue section. Yes, it was one of the references when I created the board definition. I ...
by dukeduck
Wed Feb 17, 2021 3:25 pm
Forum: Other Boards
Topic: [WEACT_STM32F411CEU6] unable to re-flash firmware
Replies: 5
Views: 4217

Re: [WEACT_STM32F411CEU6] unable to re-flash firmware

Not sure if it's related to your issue - I got my mine two weeks ago and had some trouble getting the board into dfu mode to flash the firmware, so I contacted the customer service of WeAct and they said it's due to the low temperature, and you need to warm up the oscillators and the MCU with your h...
by dukeduck
Wed Jan 20, 2021 5:12 pm
Forum: Other Boards
Topic: [STM32H743VI] Building firmware for STM32H743VIT6
Replies: 3
Views: 3937

Re: [STM32H743VI] Building firmware for STM32H743VIT6

I managed to build the firmware. Here is the board definition https://github.com/dukeduck1984/BORINGT ... 32H743VIT6.
by dukeduck
Fri Jan 15, 2021 12:59 pm
Forum: Programs, Libraries and Tools
Topic: Timers and/or uasyncio
Replies: 7
Views: 3962

Re: Timers and/or uasyncio

Hi Peter, I have a similar question. In my case, I need to sample at 100us interval with pyboard's ADC - what's the recommended way to have it work with my other codes using uasyncio? Thanks in advance! ... I only very recently started to experiment with at asynchronous coding, so this is helpful. I...
by dukeduck
Sun Jan 03, 2021 7:27 am
Forum: Drivers for External Components
Topic: VL53L1X ToF distance sensor - adapting to micropython
Replies: 19
Views: 64267

Re: VL53L1X ToF distance sensor - adapting to micropython

Thanks a lot. I ordered a few of them, and will test when I get them.
by dukeduck
Fri Jan 01, 2021 2:55 pm
Forum: Drivers for External Components
Topic: VL53L1X ToF distance sensor - adapting to micropython
Replies: 19
Views: 64267

Re: VL53L1X ToF distance sensor - adapting to micropython

Thanks for the link! I was looking for this driver for quite a while. Also, would you provide an example for your change_ide method, say how to correctly initialize 5 sensors? What's the type of the variable new_id? Thanks again. So I'm working on Roz, my bioloid quad walker, and I've built a new he...
by dukeduck
Thu Dec 31, 2020 3:34 pm
Forum: Other Boards
Topic: [STM32H743VI] Building firmware for STM32H743VIT6
Replies: 3
Views: 3937

[STM32H743VI] Building firmware for STM32H743VIT6

Hi, I have got an STM32H743VIT6 dev board which I'm trying to build firmware for. I copied the configurations of NUCLEO_H743ZI and started from there. However, there are still some questions I haven't got the answers after hours of searching regarding the config of mpconfigboard.h ... So I turn to t...
by dukeduck
Tue Dec 08, 2020 4:35 pm
Forum: General Discussion and Questions
Topic: Advice needed - optimize performance: converting dictionary to string (csv))
Replies: 4
Views: 2540

Re: Advice needed - optimize performance: converting dictionary to string (csv))

This is even faster: key_list = [] item_list = [] for key, item in the_dict.items(): key_list.append(key) item_list.append(item) transposed = [t for t in zip(*item_list)] if not omit_keys: csv_title = delimiter.join(key_list) + end else: csv_title = '' csv_body = str(transposed).strip('[()]').replac...
by dukeduck
Tue Dec 08, 2020 3:32 pm
Forum: General Discussion and Questions
Topic: Advice needed - optimize performance: converting dictionary to string (csv))
Replies: 4
Views: 2540

Re: Advice needed - optimize performance: converting dictionary to string (csv))

Well, I found a quicker way to do the convertion - it may not be a nice way, but it does help speed things up. Firstly, I do the transpose by: for key, item in the_dict.items(): key_list.append(key) item_list.append(item) transposed = zip(*item_list) rather than multiple iterations. Then I directly ...
by dukeduck
Wed Dec 02, 2020 9:49 am
Forum: General Discussion and Questions
Topic: Confused about uasyncio.create_task() vs. await
Replies: 2
Views: 2707

Re: Confused about uasyncio.create_task() vs. await

Thanks so much Peter, very clear explaination!