Search found 46 matches

by shazz
Wed May 01, 2019 12:02 pm
Forum: Other Boards
Topic: [Neowbit / STM32F401RET6] changing board clocks while keeping the USB alive
Replies: 4
Views: 375

Re: [Neowbit / STM32F401RET6] changing board clocks

So I did not solve the USB issue but what I'm doing, I'm setting the clock at the beginning of the program and when I reset the board the USB+Serial comes back (so I guess the reset also resets the clocks)
Not perfect especially for debugging but at least the clock are well set.
by shazz
Wed May 01, 2019 1:11 am
Forum: Other Boards
Topic: [Neowbit / STM32F401RET6] changing board clocks while keeping the USB alive
Replies: 4
Views: 375

Re: [Neowbit / STM32F401RET6] changing board clocks

Thanks, interesting, I understand now the valid CPU frequencies. I tried using those ones same result. I tried also to "remount" the USB connection after changing the CPU freq in the boot.py: # boot.0 import pyb pyb.freq(64000000) pyb.delay(1000) pyb.usb_mode('CDC+MSC') pyb.sync() But not better, th...
by shazz
Tue Apr 30, 2019 11:21 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED] question on mpy-cross
Replies: 21
Views: 1747

Re: question on mpy-cross

Unfortunately Kittenbot doesn't publish the code of their version of MicroPython... so unless I try to rebuild MicroPython for the STM32F401RET6, no way to get mpy-cross I guess.

Thanks! Makese sense now.
by shazz
Tue Apr 30, 2019 11:18 pm
Forum: Other Boards
Topic: [Neowbit / STM32F401RET6] changing board clocks while keeping the USB alive
Replies: 4
Views: 375

[Neowbit / STM32F401RET6] changing board clocks while keeping the USB alive

Hi, When I try to change the CPU freq (or any AHB/APB1/APB2 freqs) within to the spec limiits (84,84,,42,84), the USB connection fails whatever the value. As in the docs, I added: import pyb pyb.freq(64000000) in the boot.py, same result, the USB connection disappears. Any idea ? Default: sysclk: fr...
by shazz
Tue Apr 30, 2019 10:39 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED] question on mpy-cross
Replies: 21
Views: 1747

Re: question on mpy-cross

If I'm not wrong, as my board runs MicroPython v1.9.4-616-g41fb4d3-dirty on 2019-03-13; MEOWBIT with STM32F401xE, I need to use cross-mpy 1.9.4 right ? And for this version there is no march option: $ python -m mpy_cross --help usage: C:\Backup\meowbit\micropython\apps\badapple\PC\.venv\lib\site-pac...
by shazz
Tue Apr 30, 2019 7:02 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED] question on mpy-cross
Replies: 21
Views: 1747

[SOLVED] question on mpy-cross

Hi, I'm learning micro-python since... last weekend. So please excuse my stupid questions :) I watched the amazing talk from Damien on code optimization and I tried to use mpy-cross (from the PiPy repo: https://pypi.org/project/mpy-cross/1.9.4/ to fit my board version) on my code and I was surprised...