Search found 791 matches

by jimmo
Wed Nov 13, 2019 3:40 am
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 13
Views: 174

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

I guess to perform the 2, I have to have the ST-Link Debugger, which is a in-circuit debugger - a device as i did some researches. It might take several days for shipping. You already have one, it's built into your board! i.e. it's the ST Link you're already using to program and access the UART. I ...
by jimmo
Wed Nov 13, 2019 2:22 am
Forum: Other Boards
Topic: Can not initialize STM32L476 UART
Replies: 18
Views: 202

Re: Can not initialize STM32L476 UART

Start RETL as before (screen /dev/ttyACM0) starts but with errors; Did you type "AT" yourself? Otherwise it sounds like your computer is trying to connect to the device as a modem. Ubuntu has a thing called modemmanager which you should disable (or uninstall): e.g. https://forum.micropython.org/vie...
by jimmo
Tue Nov 12, 2019 11:48 pm
Forum: General Discussion and Questions
Topic: see code emitted by bytecode, native, viper decorators?
Replies: 4
Views: 547

Re: see code emitted by bytecode, native, viper decorators?

Not what you're looking for but a very cool feature that was added recently is sys.settrace. You can use it to extract the bytecode from a function. Disassembly still left as an exercise for the reader, but could potentially be done in a separate tool. Unfortunately doesn't work for native/viper/asm...
by jimmo
Tue Nov 12, 2019 10:58 pm
Forum: Other Boards
Topic: Can not initialize STM32L476 UART
Replies: 18
Views: 202

Re: Can not initialize STM32L476 UART

I can screen /dev/ttyACM0 and bring up the REPL but could not exit. Maybe the screen command has a way of dropping out, I will have to find out. Ctrl-A K Y (Ctrl-A is how you send commands to screen, K means exit, Y to confirm) I recommend using miniterm.py (which you'll have if you have Python's s...
by jimmo
Tue Nov 12, 2019 10:54 pm
Forum: Development of MicroPython
Topic: screen /dev/ttyACM0 on STM32L4R9IDISC
Replies: 13
Views: 174

Re: screen /dev/ttyACM0 on STM32L4R9IDISC

Could you please be more specific about the second and the third one? 2. If you're using the debugger, you need symbols and it helps to not use full optimisation (otherwise the code that's running looks nothing like your original code). So those two flags (-g enabled debug symbols, -Og enables "deb...
by jimmo
Tue Nov 12, 2019 10:49 pm
Forum: Other Boards
Topic: Can not initialize STM32L476 UART
Replies: 18
Views: 202

Re: Can not initialize STM32L476 UART

Oh, and to get the formatted code boxes, select the text and press the </> button on the toolbar. (Or manually type the [ code ] block around it).
by jimmo
Tue Nov 12, 2019 10:48 pm
Forum: Other Boards
Topic: Can not initialize STM32L476 UART
Replies: 18
Views: 202

Re: Can not initialize STM32L476 UART

OK, so it sounds like you're able to build firmware (on your Linux PC). I think it's getting confusing trying to make the USB work at the same time as everything else, so let's just go back to the start and use the ST-Link interface. The ST-Link does two things: - Provides a programming/debugging (S...
by jimmo
Tue Nov 12, 2019 9:12 pm
Forum: Pyboard D-series
Topic: Scaling down a prototype
Replies: 3
Views: 80

Re: Scaling down a prototype

As the disk is flash-based I don't think this is going to be a problem. I would imagine the speech-to-text API call would take longer.

Also on the RPi, much of the disk access will be cached automatically by Linux.
by jimmo
Tue Nov 12, 2019 1:21 pm
Forum: Other Boards
Topic: [STM32F411CEU6] Board definitions
Replies: 4
Views: 64

Re: [STM32F411CEU6] Board definitions

It depends what you mean by pin definitions? pins.csv is mostly just about what you want to call the pins so you can access them using machine.Pin.board.FOO (i.e. on the Pyboard, the pins are labeled externally as X1, X2, X3...Y1...etc, so pins.csv provides that mapping). On the Nucleo boards, they ...
by jimmo
Tue Nov 12, 2019 1:09 pm
Forum: General Discussion and Questions
Topic: A way to detect button press?
Replies: 5
Views: 77

Re: A way to detect button press?

In Python, you need to explicitly tell it that you're assigning to a global variable. The problem here is that (later in the function) you assign to lastState, which means that Python thinks that lastState is a function local variable. So on line six, the "read" of localState tries to get the local ...