Search found 3821 matches

by dhylands
Fri Jan 21, 2022 12:01 am
Forum: Development of MicroPython
Topic: Removing modules from firmware image?
Replies: 1
Views: 7860

Re: Removing modules from firmware image?

You can override the manifest that's used by using the FROZEN_MANIFEST variable. If you look in the Makefile you'll see: https://github.com/micropython/micropython/blob/5db278f1dd061ea0d7d9263cc6b4a3b212b34caf/ports/stm32/Makefile#L28 So you can create your own manifest.py file which contains: inclu...
by dhylands
Thu Jan 20, 2022 8:07 pm
Forum: Development of MicroPython
Topic: Renaming the pyb module?
Replies: 2
Views: 6712

Re: Renaming the pyb module?

You can get away with changing a single line.

Namely this one:
https://github.com/micropython/micropyt ... ort.h#L188

change MP_QSTR_pyb to be MP_QSTR_myboardname

and rebuild (you may need to do a clean and rebuild).
by dhylands
Thu Jan 20, 2022 12:08 am
Forum: Pyboard D-series
Topic: How to view changes to micro-SD card in real-time in Windows File Explorer
Replies: 3
Views: 36288

Re: How to view changes to micro-SD card in real-time in Windows File Explorer

That's correct. Having MicroPython write to a volume shared via MSC is basically an invitation for corruption. Windows will happily overwrite any changes made by MicroPython because it has no way of knowing that the changes occurred. Even having MicroPython read from a volume shared via MSC may look...
by dhylands
Wed Jan 19, 2022 11:29 pm
Forum: General Discussion and Questions
Topic: Are file writes non blocking?
Replies: 7
Views: 11509

Re: Are file writes non blocking?

How are you checking the file size? I don't think that closing the file means that it's written to the filesystem by the time that the close returns. I think you would need to call os.sync() to ensure that everything has actually been committed to flash. deepsleep is like a reset, so if the data was...
by dhylands
Wed Jan 19, 2022 7:45 pm
Forum: Pyboard D-series
Topic: How to view changes to micro-SD card in real-time in Windows File Explorer
Replies: 3
Views: 36288

Re: How to view changes to micro-SD card in real-time in Windows File Explorer

Yeah - Windows thinks that it's the exclusive owner of the SD card when you use MSC and it will be blissfully unaware of writes made by micropython. You should disable MSC if you want MicroPython to write to the SD, otherwise you run the risk of corrupting it. You can use something like rshell or mp...
by dhylands
Wed Jan 19, 2022 7:41 pm
Forum: Other Boards
Topic: Scoutbee STM32F407VET6
Replies: 1
Views: 6450

Re: Scoutbee STM32F407VET6

Did you create a custom board definition? It looks like this board has a 25MHz external crystal on it, so your board definition has to match. The NETDUINO_PLUS_2 is another board that has a 25 MHz crystal on it. https://github.com/micropython/micropython/blob/037b2c72a1d5b54a5508a58ab2044628a7a39fa4...
by dhylands
Wed Jan 19, 2022 6:28 pm
Forum: General Discussion and Questions
Topic: J-Link: Write Program flash 0 IFR in MK64FN1M0VLL12
Replies: 1
Views: 10828

Re: J-Link: Write Program flash 0 IFR in MK64FN1M0VLL12

You'd have better luck asking over on the NXP forum: https://community.nxp.com/
by dhylands
Wed Jan 19, 2022 6:25 pm
Forum: Development of MicroPython
Topic: Suppressing Build Warnings
Replies: 2
Views: 9815

Re: Suppressing Build Warnings

The -Werror=all turns all warnings into errors, so turning that off will allow the build to continue despite there being warnings.

-Wall enables a ton of warnings. You could try removing that to reduce the amount of warnings produced.
by dhylands
Tue Jan 18, 2022 5:40 pm
Forum: General Discussion and Questions
Topic: Help converting bytes to int [resolved]
Replies: 7
Views: 9296

Re: Help converting bytes to int [resolved]

Ahh - karfas' comment makes everything clear. I realize that you've switched libraries, but I figured this still might be useful. The original library you were using was returning 0x15 to represent 15 seconds (i.e. BCD). 0x15 is the same as 21 decimal. So you would have either needed to do: if (seco...
by dhylands
Mon Jan 17, 2022 11:19 pm
Forum: ESP32 boards
Topic: Problem using GPIO as interrupt [Solved]
Replies: 3
Views: 4768

Re: Problem using GPIO as interrupt

It sounds like you might be using the wrong GPIO? Or perhaps you have a long wire? I worked with a TI microcontroller board that had a reset line. I connected a 6 inch wire and a push button, and generating static spark from six feet away (by walking across the carpeted floor and touching a filing c...