Search found 25 matches

by mvdw
Thu Aug 19, 2021 7:41 am
Forum: Development of MicroPython
Topic: Keeping new port synchronised with mainline micropython
Replies: 1
Views: 2109

Keeping new port synchronised with mainline micropython

I am looking to use a Realtek RTL8722 device in a project, and happily the device already has a custom micropython port. However, when I fired up the device and installed the supplied firmware, I noticed there's a couple of things missing, and also the micropython version is reasonably old. The port...
by mvdw
Sun Jul 05, 2020 3:42 am
Forum: Development of MicroPython
Topic: Pull request failed - code formatting
Replies: 2
Views: 1807

Pull request failed - code formatting

Hi All: I'm pretty new to git, github, pull requests and the like. I thought i'd do a quick little mod to the stm32 port, to add a couple of extra LEDs. My board has 6 LEDs, so this is a useful thing for me... Anyway, I edited led.c, made a pull request, and the build passed a number of tests before...
by mvdw
Wed Jun 03, 2020 7:28 am
Forum: Other Boards
Topic: [SimpleLink CC3235] Porting to CC3235
Replies: 0
Views: 1389

[SimpleLink CC3235] Porting to CC3235

How hard would it be to port to this processor, specifically this board? I have to run some tests on the 5GHz wifi band so need to be able to lock to that (peer-peer networking one device to the other). Micropython would be ideal for my testing. Has anyone done any work to port to this processor (I ...
by mvdw
Wed Jun 03, 2020 7:19 am
Forum: General Discussion and Questions
Topic: Production Code for Custom Board
Replies: 9
Views: 91351

Re: Production Code for Custom Board

Sorry I missed your post. This link tells you how to do it: http://docs.micropython.org/en/latest/reference/packages.html#cross-installing-packages-with-freezing Basically, I put my code in the Frozen directory, edit the manifest.py file to include these new python files and then build the code in ...
by mvdw
Fri May 22, 2020 9:59 pm
Forum: Programs, Libraries and Tools
Topic: Custom board and ST-Link
Replies: 2
Views: 1906

Re: Custom board and ST-Link

Does the board have a pullup resistor on the RESET line?
Yes, that was it! What a dumb mistake. Thanks Dave.
by mvdw
Fri May 22, 2020 11:10 am
Forum: Programs, Libraries and Tools
Topic: Custom board and ST-Link
Replies: 2
Views: 1906

Custom board and ST-Link

I have a custom board based on the STM32F767 to which I have ported micropython. I load my program using the ST-Link dongle, which I have working in both SWD and also JTAG modes. My problem is that whenever I reset the board, if the ST-Link cable is not plugged in it will not start. Even the main.py...
by mvdw
Fri May 08, 2020 9:00 pm
Forum: Development of MicroPython
Topic: SPI Basics - Custom Board
Replies: 0
Views: 1671

SPI Basics - Custom Board

I have ported micropython to my board based around an STM32F767 chip, and am having trouble getting SPI working. I have enabled SPI4 in my `mpconfigboard.h`file: #define MICROPY_HW_SPI4_NSS (pin_E4) #define MICROPY_HW_SPI4_SCK (pin_E2) #define MICROPY_HW_SPI4_MISO (pin_E5) #define MICROPY_HW_SPI4_MO...
by mvdw
Fri May 08, 2020 7:11 pm
Forum: Development of MicroPython
Topic: Porting to STM32-based custom board
Replies: 5
Views: 3169

Re: Porting to STM32-based custom board

Hi Jimmo: Sorry but I don't know where to submit the patch directly, so here is the patch in unified diff format: ports/stm32/led.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ports/stm32/led.c b/ports/stm32/led.c index 923171884..e0ca89a55 100644 --- a/ports/s...
by mvdw
Fri May 08, 2020 7:15 am
Forum: General Discussion and Questions
Topic: Production Code for Custom Board
Replies: 9
Views: 91351

Re: Production Code for Custom Board

I don't have anything useful to add, except that I am just starting my journey into using micropython on my own custom board. Can you please give pointers or web links to how to precompile your python and add it to the file system image? I don't care at this stage for the production deployment but i...
by mvdw
Wed May 06, 2020 9:08 am
Forum: Development of MicroPython
Topic: Porting to STM32-based custom board
Replies: 5
Views: 3169

Re: Porting to STM32-based custom board

I've now edited my pins.csv file, and it seems like the board is working (I can toggle my LEDs, and I have a REPL). So, super progress in less than a day! Anyway, I also had to edit leds.c as my board has 6 LEDs rather than the maximum of 4 allowed by the original source. It was a very easy fix! Hap...