Search found 3467 matches

by dhylands
Fri Jul 10, 2020 11:24 pm
Forum: Other Boards
Topic: WeActSTM32F411CEU6 uart problem
Replies: 1
Views: 268

WeActSTM32F411CEU6 uart problem

@davef posted about the WEACT and UART1, and then the post was deleted. The mpconfigboard.h file for the WEACT sets up the REPL to mirror on UART1: https://github.com/mcauser/WEACT_F411CEU6/blob/40061c9ed43dc7fb5e0363f808843ce2cda7e0e1/mpconfigboard.h#L35-L36 You'll want to comment out those 2 lines...
by dhylands
Fri Jul 10, 2020 2:03 pm
Forum: ESP32 boards
Topic: SD Card over USB MCS
Replies: 2
Views: 256

Re: SD Card over USB MCS

No. This is because there is no USB on the ESP32. It uses an external USB-to-serial chip and there is no way to get MCS through a USB-to-serial chip.
by dhylands
Fri Jul 03, 2020 4:32 pm
Forum: General Discussion and Questions
Topic: RTC callback
Replies: 8
Views: 603

Re: RTC callback

It would be possible to make the RTC callback not have an argument.

I think it takes an argument just because it’s actually an EXTI interrupt and they all take arguments.
by dhylands
Thu Jul 02, 2020 6:33 pm
Forum: Programs, Libraries and Tools
Topic: How to file/report a bug
Replies: 4
Views: 411

Re: How to file/report a bug

What board are you running on?
What version of MicroPython are you using?
by dhylands
Thu Jul 02, 2020 6:31 pm
Forum: General Discussion and Questions
Topic: STMicroelectronics device having dfu mode i want to detect serial number using python. i'm not getting any soluton.
Replies: 7
Views: 775

Re: STMicroelectronics device having dfu mode i want to detect serial number using python. i'm not getting any soluton.

If it's coming up with no DFU devices detected, then your device isn't in DFU mode (or you have a bad USB cable). You need to connect BOOT0 needs to be high, and BOOT1 needs to be low, then RESET. That should put your device in DFU mode.

What board are you using?
by dhylands
Thu Jul 02, 2020 5:19 am
Forum: General Discussion and Questions
Topic: RTC callback
Replies: 8
Views: 603

Re: RTC callback

With timers it makes sense to get the timer object since there may be multiple timers.
With the RTC there is only one, so padding that as an argument doesn’t really help.
It probably makes sense to use whatever is most consistent with the other ports, but currently the RTC is fairly inconsistent.
by dhylands
Wed Jul 01, 2020 11:20 pm
Forum: General Discussion and Questions
Topic: RTC callback
Replies: 8
Views: 603

Re: RTC callback

I think you're right.

It looks like adding this line:

Code: Select all

pyb_extint_callback_arg[i] = MP_OBJ_NEW_SMALL_INT(i);
into the for loop in the extint_init0 function would fix things.
https://github.com/micropython/micropyt ... int.c#L635
by dhylands
Wed Jul 01, 2020 10:44 pm
Forum: General Discussion and Questions
Topic: UART write human-readable ASCII text
Replies: 4
Views: 410

Re: UART write human-readable ASCII text

Sorry I missed the point of that post. It turns out that you can use a UART as a file device with print as well. >>> u = pyb.UART(6, 115200) >>> x = 42 >>> y = 'foo' >>> z = {'a':32} >>> print('x =', x, 'y =', y, 'z =', z, file=u) >>> u.read() b"x = 42 y = foo z = {'a': 32}\n" >>> The above was done...
by dhylands
Wed Jul 01, 2020 6:38 pm
Forum: Programs, Libraries and Tools
Topic: How to file/report a bug
Replies: 4
Views: 411

Re: How to file/report a bug

You can post it here and we can discuss it to see if it's really a bug, or perhaps just a misuse or misunderstanding.

If you're sure it really is a bug, then you create a github issue.
by dhylands
Wed Jul 01, 2020 6:33 pm
Forum: General Discussion and Questions
Topic: Where is PinAF?
Replies: 3
Views: 324

Re: Where is PinAF?

The Pin and PinAF (for the pyboard) are both found in the pin.c file: https://github.com/micropython/micropython/blob/c2317a3a8d5f184de2f816078d91be699274b94e/ports/stm32/pin.c#L592 https://github.com/micropython/micropython/blob/c2317a3a8d5f184de2f816078d91be699274b94e/ports/stm32/pin.c#L669 Curren...