Search found 24 matches

by mvdw
Sun Jul 05, 2020 3:42 am
Forum: Development of MicroPython
Topic: Pull request failed - code formatting
Replies: 2
Views: 251

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

[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: 1251

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

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

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

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

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

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

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...
by mvdw
Wed May 06, 2020 8:04 am
Forum: Drivers for External Components
Topic: RS485 driver
Replies: 1
Views: 429

RS485 driver

I am developing on a board with RS485 line drivers; these are half duplex where the direction is controlled by a DE pin. This is easy to configure iun STM32Cube IDE, but how do I translate this into micropython? I'm thinking that it may be possible to subclass the uart class with the extra DE pin fu...