Search found 19 matches

by P@T
Thu May 14, 2020 12:18 pm
Forum: General Discussion and Questions
Topic: Tuto HID mousse with nucleo411
Replies: 9
Views: 875

Re: Tuto HID mousse with nucleo411

Hi, I have to add the line 7 #define MICROPY_HW_BOARD_NAME "NUCLEO-F411RE" #define MICROPY_HW_MCU_NAME "STM32F411xE" #define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_FLASH (1) #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_USB (1) and I have a problem : pat@pat-3000-N100:~/micro...
by P@T
Wed May 13, 2020 3:04 pm
Forum: General Discussion and Questions
Topic: Tuto HID mousse with nucleo411
Replies: 9
Views: 875

Re: Tuto HID mousse with nucleo411

I'm sorry shaoziyang, i didn't see your answer.

I'm going to add this line and follow the instructions.
(If i have any problems, I can ask for your help ?)

Thank you
by P@T
Wed May 13, 2020 3:00 pm
Forum: General Discussion and Questions
Topic: Tuto HID mousse with nucleo411
Replies: 9
Views: 875

Re: Tuto HID mousse with nucleo411

thank you for your response.

In DFU mode there is a USB port on stm32f411 ? PA_11 and PA_12

Image

I try to rebuild a firmware (it's the first time, I hope it's not hard)
by P@T
Wed May 13, 2020 11:53 am
Forum: General Discussion and Questions
Topic: Tuto HID mousse with nucleo411
Replies: 9
Views: 875

Tuto HID mousse with nucleo411

Hi, I try the tutorial with a board nucleo411 but it is possible ? I don't know how to access the boot file ... I don't see : usb_mode >>> MicroPython v1.12-371-gf534b9976 on 2020-04-15; NUCLEO-F411RE with STM32F411xE Type "help()" for more information. >>> import pyb >>> pyb. __class__ __name__ mai...
by P@T
Sun Apr 19, 2020 9:51 am
Forum: General Discussion and Questions
Topic: Nucleo STM32F411 change Pin UART
Replies: 2
Views: 366

Re: Nucleo STM32F411 change Pin UART

Hi jimmo

I'm sorry, it's because of my English.
You have answered my question. I'm going to rebuild the firmware.

Thank you very much
by P@T
Sat Apr 18, 2020 10:21 am
Forum: General Discussion and Questions
Topic: Nucleo STM32F411 change Pin UART
Replies: 2
Views: 366

Nucleo STM32F411 change Pin UART

Hi, I work with a nucleo F411 but i have a problem with UART on the "ARDUINO HEADER". I use the UART6 on the NUCLEO HEADER but it's missing on the ARDUINO-HEADER. Can I redirect the UART6 to the pin's of UART1 without rebuilding the firmware ? In mpconfigboard.h there don't UART1 // UART config #def...
by P@T
Thu Apr 09, 2020 7:59 pm
Forum: General Discussion and Questions
Topic: ADC performance of MicroPython boards
Replies: 8
Views: 8986

Re: ADC performance of MicroPython boards

Hi all,

Beware of the adc of esp32 they are bad
-7 +7 LSB
That's huge

Thank you for the test
by P@T
Tue Apr 07, 2020 6:42 pm
Forum: General Discussion and Questions
Topic: How to save file in flash memory ?
Replies: 2
Views: 388

Re: How to save file in flash memory ?

Ok thank you peter.

I will to try
by P@T
Tue Apr 07, 2020 11:22 am
Forum: General Discussion and Questions
Topic: Check for valid bytes
Replies: 8
Views: 829

Re: Check for valid bytes

Hi,

You can to use

Code: Select all

import struct
struct.unpack('BBBB',b'\xff\x08kr')
>>>(255, 8, 107, 114)
'B' = unsigned char see struct in python documentation
by P@T
Tue Apr 07, 2020 10:43 am
Forum: General Discussion and Questions
Topic: How to save file in flash memory ?
Replies: 2
Views: 388

How to save file in flash memory ?

Hi all, In my appication modbus slave, i have a dictionnary in a file : registre.py import registre as Reg In my principal program, i have a function (doc string in french sorry) : def mise_a_jour_des_donnees(adresse_voulue: int, quantite_voulue: int ,donnee: list) -> bool: """ Cette fonction permet...