Search found 36 matches

by mwm
Wed Sep 06, 2017 2:51 pm
Forum: Other Boards
Topic: MicroPython with HSI and no HSE?
Replies: 6
Views: 4630

I got a micropython repl using HSI not HSE. I found https://community.st.com/thread/28273 asking if he had it right, and used his changes. But it's not right as is. The repl is flaky - it drops characters, and gets error characters at times. So some clock or another isn't right. pyb.freq() reports t...
by mwm
Wed Sep 06, 2017 6:22 am
Forum: Other Boards
Topic: MicroPython with HSI and no HSE?
Replies: 6
Views: 4630

Re: MicroPython with HSI and no HSE?

I've been told that using solder bridges may work for the resistors, in that it'll either work with slightly reduced accuracy, or it'll simply fail to work at all. I'm not up to installing SMD caps, so I'd thought about using the through hole version as you said, but that sounds a bit fragile. The b...
by mwm
Tue Sep 05, 2017 5:05 pm
Forum: Other Boards
Topic: MicroPython with HSI and no HSE?
Replies: 6
Views: 4630

Re: MicroPython with HSI and no HSE?

Actually, they give me the specs for the crystal: 8MHz, 16pf, 20ppm.

But also needs 4 SMD parts added to the board - a pair of 20pf caps and a pair of resistors of unknown value. The schematics in the user manual just say "N/A", presumably because they aren't there ;-(.

Thanks.
by mwm
Tue Sep 05, 2017 11:13 am
Forum: Other Boards
Topic: MicroPython with HSI and no HSE?
Replies: 6
Views: 4630

MicroPython with HSI and no HSE?

I'd like to get micropython working on a NUCLE-F411RE with the ST-LINK removed. On current versions the ST-LINK is the source for the HSE clock. Seems there are a number of options to fix this on the board, but the only two that don't clash with my reason for removing the ST-LINK are to buy an appro...
by mwm
Tue Aug 29, 2017 11:54 pm
Forum: Other Boards
Topic: [NUCLEO-F401RE] procedure to upload the MicroPython image
Replies: 19
Views: 23784

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Are you trying to copy the file to the mbed device? That won't work, and gets the space message you are reporting. The mbed storage is on the st-link, not the STM32F, and the file is too big for that. You'll have to use the st-link protocol, which doesn't store the file on the st-link.
by mwm
Tue Aug 22, 2017 1:04 pm
Forum: General Discussion and Questions
Topic: Line number of exception?
Replies: 5
Views: 5711

Re: Line number of exception?

Yes, but the documentation didn't answer my question either. That's why I asked.

So the only way to get information about an exception is to parse the traceback and how it doesn't change in the next revision?
by mwm
Mon Aug 21, 2017 9:25 pm
Forum: General Discussion and Questions
Topic: Line number of exception?
Replies: 5
Views: 5711

Re: Line number of exception?

First question: do you know if those builds enabled MICROPY_ENABLE_SOURCE_LINE?

And the question I'm actually trying to get answered:
Is there any way to get the line number an exception occurred on in an except: clause?
by mwm
Sat Aug 19, 2017 3:41 pm
Forum: General Discussion and Questions
Topic: Line number of exception?
Replies: 5
Views: 5711

Line number of exception?

Is there any way to get the line number an exception occurred on in an except: clause? In CPython, I get it from the traceback returned by sys.exc_info(). I don't see exc_info in micropython's sys, or any way to get the traceback. I did see a define to disable line numbers in the build, so I'm half ...
by mwm
Wed Aug 16, 2017 2:20 am
Forum: General Discussion and Questions
Topic: PinAF objects and code smells
Replies: 2
Views: 2461

Re: PinAF objects and code smells

Yeah, wanting access to that information from Python is the most important issue here. If I could get it without having to include pins_af.py, that would be great. Just out of curiosity, do you know how much bigger pins_af.py is than the dictionary used in those modules? Second is the __str__ method...
by mwm
Tue Aug 15, 2017 11:45 pm
Forum: General Discussion and Questions
Topic: PinAF objects and code smells
Replies: 2
Views: 2461

PinAF objects and code smells

I started with this issues on Github, but apparently this needs to be discussed on the forum, so here we go. I posted it as an issue because there's a documented method that doesn't exist. Clearly, a bug in either the objects or the documentation. Further, to me objects that aren't equal but have no...