Search found 191 matches

by jgriessen
Thu Apr 19, 2018 2:30 pm
Forum: Other Boards
Topic: iMX RT1020/1050 MicroPython
Replies: 2
Views: 2569

Re: iMX RT1020/1050 MicroPython

What do you think of the greenwaves GAP8? They say they don't target micropython, just compiled C code and an RTOS, but it could be possible to port it.
by jgriessen
Thu Apr 19, 2018 2:28 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27548

Re: [STM32F401CE] debugging a new board definition

I've tested the PYFLEX_F401 board and it's not so good as the G30TH -- an LED blink program is running, but it blinks 4 times instead of 90, and it doesn't change when I change details of which GPIOs blink and how long, as if that program is not really getting loaded. But I load via the same tested ...
by jgriessen
Wed Apr 18, 2018 11:01 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27548

Re: [STM32F401CE] debugging a new board definition

I had thought it was the frozen directory, so specified that. I used a script to run make: export BOARD="PYFLEX_F401" export FROZEN_DIR="/home/john/Documents/EEProjects/circuitboards/culture_shock/code_PYFLEX_F401/frozen" make -j 2 V=1 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR calling make with FROZEN...
by jgriessen
Wed Apr 18, 2018 7:41 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27548

Re: [STM32F401CE] debugging a new board definition

I definitely get a round trip change when I change main.py python code that is "frozen into" the compile, not moved by USB filesystem transfers. Thanks for the patch to do that and the other digging into new platform defines needed to keep up with micropython latest. Next to test my PYFLEX platform ...
by jgriessen
Wed Apr 18, 2018 7:19 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27548

Re: [STM32F401CE] debugging a new board definition

I used master micropython and it compiles fine today, but I don't get the frozen/boot.py and frozen/main.py showing under frozen_mpy._names in frozen_mpy.c. const char mp_frozen_mpy_names[] = { "onewire.py\0" "dht.py\0" "lcd160cr.py\0" "lcd160cr_test.py\0" "\0"}; I applied your patch to stm32/main.c...
by jgriessen
Tue Apr 17, 2018 12:25 am
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27548

Re: [STM32F401CE] debugging a new board definition

Should I use master now, or v1.9.3?

The other day I did a test and could not get a compile to make a usable binary from master.

Are there some reports to find out when it is compilable?
by jgriessen
Sat Apr 14, 2018 7:42 pm
Forum: General Discussion and Questions
Topic: GPIO pin output works in REPL, not in main.py
Replies: 7
Views: 4380

Re: GPIO pin output works in REPL, not in main.py

Why would soft reset not rerun main.py from the start? I could only get that to happen after a power on.
by jgriessen
Fri Apr 13, 2018 5:42 pm
Forum: General Discussion and Questions
Topic: GPIO pin output works in REPL, not in main.py
Replies: 7
Views: 4380

Re: GPIO pin output works in REPL, not in main.py

I get a blink program to run now. Sometimes rshell quits with cannot enter raw repl. Now I used buffer-size 30 and it seems better -- going through 10 or so repl commands rshell file copy commands. a soft reset from the REPL is having no effect on the GPIO pin state now and not rerunning main.py Can...
by jgriessen
Fri Apr 13, 2018 5:17 pm
Forum: General Discussion and Questions
Topic: GPIO pin output works in REPL, not in main.py
Replies: 7
Views: 4380

Re: GPIO pin output works in REPL, not in main.py

Thanks for reviewing this Roberthh. Yes I commented that line out by mistake. It might stop me from seeing a brief pulse. I'll fix that.
by jgriessen
Thu Apr 12, 2018 11:37 pm
Forum: General Discussion and Questions
Topic: GPIO pin output works in REPL, not in main.py
Replies: 7
Views: 4380

GPIO pin output works in REPL, not in main.py

I have something wrong here and cannot see it yet. Here is my program, boot.py # boot.py -- run on boot-up import pyb pyb.main('main.py') main.py # main.py -- put your code here! import machine import pyb # Define pins so they can be set with a pin reference like: pin10.value(1) on the fly. pinA5 = ...