Search found 9 matches
- Mon Sep 13, 2021 8:50 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156399
Re: [STM32H750] Working board definitions and some questions
I don't know the answer regarding your SPI question. Indeed I meant STM32CubeProgrammer. Ok, if that works for you then it should be fine. You could also create a .bat script for it that calls the STM32_Programmer_CLI.exe Example: STM32_Programmer_CLI.exe -c port=SWD index=%BOARD_ID% reset=HWrst -e ...
- Mon Sep 13, 2021 7:56 am
- Forum: Other Boards
- Topic: [STM32H750] Working board definitions and some questions
- Replies: 13
- Views: 156399
Re: [STM32H750] Working board definitions and some questions
1. Can anyone suggest the right value for #define MICROPY_HW_QSPI_PRESCALER 2 Is this define even necesarry? With regards to flashing, programming. If you use STM32Programmer it's easier to just use the hex or dfu file. Otherwise you weed need to flash both .bin files manually to specific addresses.
- Sat Sep 11, 2021 9:48 pm
- Forum: Pyboard D-series
- Topic: Building 1.17 with PYBD_SF2
- Replies: 1
- Views: 30027
Re: Building 1.17 with PYBD_SF2
I see you are building on Windows. Most likely you are hit by this issue:
https://github.com/micropython/micropython/pull/7774
You can edit the Makefile and py.mk to fix the issue.
https://github.com/micropython/micropython/pull/7774
You can edit the Makefile and py.mk to fix the issue.
- Sat Sep 11, 2021 9:46 pm
- Forum: Other Boards
- Topic: [NUCLEO-L476RG] Configure SDMMC peripheral
- Replies: 3
- Views: 5391
Re: [NUCLEO-L476RG] Configure SDMMC peripheral
You probably need to define the detect pin on a gpio of your choice. >>> import pyb >>> import os >>> pyb.SDCard().present() False >>> from machine import Pin >>> sd_sw = Pin(pyb.Pin.board.SD_SW, Pin.OUT) >>> sd_sw.value() 0 >>> pyb.SDCard().present() True >>> sd_sw.value(1) >>> pyb.SDCard().present...
- Fri Aug 20, 2021 11:37 am
- Forum: Other Boards
- Topic: STM32 F7 Discovery
- Replies: 20
- Views: 116125
Re: STM32 F7 Discovery
There is a very nice graphical library available LVGL which has a binding for Micropython and drivers for the STM32F7 Discovery. See: https://github.com/lvgl/lv_binding_micropython/tree/master/driver/stm32/STM32F7DISC And: https://github.com/lvgl/lv_binding_micropython/blob/master/examples/advanced_...
- Thu Jan 09, 2020 4:12 pm
- Forum: General Discussion and Questions
- Topic: How to know the IP address
- Replies: 8
- Views: 9351
Re: How to know the IP address
If I unerstand your question correctly, this can be solved pretty easily. Have a look at: print(WLAN.ifconfig()[2]) That should output the local ip address, which you can use to update some dynamic DNS record. https://docs.micropython.org/en/latest/library/network.WLAN.html#network.WLAN.ifconfig For...
- Thu Jan 09, 2020 1:01 pm
- Forum: General Discussion and Questions
- Topic: Pyboard D - CAN bus extended frames
- Replies: 3
- Views: 4773
Re: Pyboard D - CAN bus extended frames
Thank you Jimmo. I have added the details in github.
- Thu Jan 09, 2020 8:25 am
- Forum: General Discussion and Questions
- Topic: Pyboard D - CAN bus extended frames
- Replies: 3
- Views: 4773
Re: Pyboard D - CAN bus extended frames
I found the answer by myself. It's a bug in pyb_can.c The filter masking is not correct: filter.FilterIdHigh = (mp_obj_get_int(params[0]) & 0x1FFFE000) >> 13; filter.FilterIdLow = (((mp_obj_get_int(params[0]) & 0x00001FFF) << 3) | 4) | rtr_masks[0]; filter.FilterMaskIdHigh = (mp_obj_get_int(params[1...
- Mon Jan 06, 2020 12:24 am
- Forum: General Discussion and Questions
- Topic: Pyboard D - CAN bus extended frames
- Replies: 3
- Views: 4773
Pyboard D - CAN bus extended frames
Hi all, I'm having a hard time getting my head around the following. I have 2 CAN ports connected to TJA1050 can bus tranceivers with 120ohm termination resistors. CAN1 RX: X9 to tranceiver CAN2 TX: X10 to tranceiver CAN2 RX: Y5 to tranceiver CAN2 TX: Y6 to tranceiver With the below script I've setu...