Search found 191 matches

by jgriessen
Wed Apr 11, 2018 11:09 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

There is something wrong, but maybe just with my test pins python program. I've gone back to using v1.9.3 micropython and can get a REPL on my known good G30TH, but this program will not toggle GPIOs: # boot.py -- run on boot-up # can run arbitrary Python, but best to keep it minimal import machine ...
by jgriessen
Wed Apr 11, 2018 9:25 pm
Forum: Development of MicroPython
Topic: Same hardware: miniblink runs, but micropython hangs.
Replies: 2
Views: 2551

Re: Same hardware: miniblink runs, but micropython hangs.

Is there a version of lib/stm32lib that should be used along with v1.9.3? lib/stm32lib seems gradually changing. Maybe the latest is still backward compatible with v1.9.3 micrpython? could not get frozen to work on G30TH, but ordinary USB/serial REPL works with v1.9.3 on G30TH. (with latest submodul...
by jgriessen
Wed Apr 11, 2018 8:50 pm
Forum: Development of MicroPython
Topic: Same hardware: miniblink runs, but micropython hangs.
Replies: 2
Views: 2551

Re: Same hardware: miniblink runs, but micropython hangs.

going back to testing that frozen code can be compiled and loaded to a known good G30TH module using DFU That did not work. So far no luck getting frozen code to run with a micropython compile of git latest. That is where I am looking for problems now -- in getting a good compile, which probably me...
by jgriessen
Wed Apr 11, 2018 7:31 pm
Forum: Development of MicroPython
Topic: Same hardware: miniblink runs, but micropython hangs.
Replies: 2
Views: 2551

Same hardware: miniblink runs, but micropython hangs.

My new PYFLEX_F401 platform uses a STM32F401CE with 512k flash similar to the G30TH platform that works well. The hardware has the HSE crystal at 16MHz instead of 12MHz on the G30TH. The crystal runs (verified with active probe). The package is QFN 48 pins instead of LQFP 64 pins. The PYFLEX_F401 VD...
by jgriessen
Wed Apr 11, 2018 2:42 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

Something must be wrong with my compilation. I could compile minibliink with libopencm3 to get GPIOs toggling. with micropython compile, PB8 is low as soon as programming is done, so my LED is on, but not flashing as in my test program. The reset button makes PB8 go hiZ and return to low in about 10...
by jgriessen
Wed Apr 11, 2018 1:43 am
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

I tried boot.py and main.py simplifying and nothing. Maybe there is something wrong with my repo. It's years old. Does it have git submodules? I'm thinking of copying out my stuff, cloning a new repo, and putting my stuff back and trying again. I did get the repo fresh and noticed it pull in submodu...
by jgriessen
Tue Apr 10, 2018 11:35 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

you should see mp_frozen_mpy_names followed by a list of filenames. Those filenames are the frozen files that are included in your image. Make sure boot.py, main.py and your test program are all listed. I'm missing main.py, but I had boot.py calling pintest.py. I'll try your suggestions of super si...
by jgriessen
Tue Apr 10, 2018 10:51 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

My pintest.py program is not running successfully on the target. PA5, PB0, PB1, PB2 not toggling. this is loaded by the same method as miniblink C programs load and run with positive results on these same GPIOs. Is there any way to double check the putting-together of main.py, boot.py and main.c? He...
by jgriessen
Tue Apr 10, 2018 10:38 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

I fixed the changes up like NUCLEO_F401RE and compile: ll build-PYFLEX_F401/fir* -rwxr-xr-x 1 john john 14792 Apr 10 17:37 build-PYFLEX_F401/firmware0.bin -rwxr-xr-x 1 john john 283376 Apr 10 17:37 build-PYFLEX_F401/firmware1.bin -rw-r--r-- 1 john john 298485 Apr 10 17:37 build-PYFLEX_F401/firmware....
by jgriessen
Tue Apr 10, 2018 10:08 pm
Forum: Other Boards
Topic: [STM32F401CE] debugging a new board definition [solved]
Replies: 49
Views: 27292

Re: [STM32F401CE] debugging a new board definition

Here's the other part I modified in main.c: First I did a git pull, then checkout -b stm32_frozen to create a new branch, then modified the file main.c // run boot.py, if it exists // TODO perhaps have pyb.reboot([bootpy]) function to soft-reboot and execute custom boot.py if (reset_mode == 1 || res...