Skip to content
#

microcontroller

Here are 1,181 public repositories matching this topic...

peterhinch
peterhinch commented Jan 16, 2020

The code example in the docs fails with a surprising traceback.

rtc = machine.RTC()
rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))

Outcome:

MicroPython v1.12-61-g0f16eeab2 on 2020-01-16; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>> 
>>> from machine import RTC
>>> rtc = RTC()
>>> rtc.init((2
aykevl
aykevl commented Apr 19, 2020

There are a few flags that currently don't have proper error checking. The ones I found are -gc, -scheduler and -size. Using the wrong value will lead to no or unexpected errors.

I think the best way to handle it is to add a new method to compileopts.Config that checks whether there are any faulty flags, which is then called from the main function.

cvinayak
cvinayak commented Mar 6, 2020

Is your enhancement proposal related to a problem? Please describe.
Bluetooth controller implementation uses magic numbers 625 and 1250 for the advertising interval and connection interval units.

Describe the solution you'd like
Use defines for the values 625 and 1250

Describe alternatives you've considered
None

Additional context
Refer to comments in https://github.co

rumpeltux
rumpeltux commented Dec 12, 2019

Thanks for the interesting project!
I came here looking for a filesystem that I could use in my MCU.
This project seemed to be what I was looking for. Note that I use a SDHC card for datastorage.

Only after integrating littlefs in my code and experimenting I learned that the project is not a good fit because:

  • littlefs is probably not design for large files (per some bug reports, e.g. #188
SpenceKonde
SpenceKonde commented Apr 20, 2020

We should really have a page (in extras, with the other docs like this) that lists popular libraries that are known to work or not work with these parts (and in the latter case, alternatives if any, and information on any plans by myself or others to work over said libraries). Also needs some info on what a library compatibility issue will look like in the error output.

This is a great issue fo

stoune
stoune commented Jan 2, 2020

Auto-generated files
.vscode/c_cpp_properties.json
.vscode/launch.json
contains absolute path, for example:

"configurations": [
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug",
            **"executable": "/Users/username/Projects/projname/.pio/build/esp32dev/firmware.elf",
            "toolchainBinDir": "/Users/u
thegecko
thegecko commented Sep 16, 2019

Target: Nucleo L073RZ
OS: MacOS 10.14.5
Mbed OS: 5.13.1
Binary: mbed-os-blinky (built with GCC or AC6)

Flashing the above target using a specified CMSIS pack sometimes works, but more often claims No cores were discovered!.

Using the pack from here

./pyocd  flash --frequency 1800000 --uid 066DFF5556547251870951
ghost
ghost commented Sep 11, 2017

I'm trying to code up an spi-read function. I guess it needs to be implemented using the spi-send function but there is no documentation on how the function works. Also I would like to know how to set the spi speed correctly for the spi-init function.

If you can either provide me with an spi-read function or point me at some documentation so I can code one myself I would appreciate it.

rleh
rleh commented Apr 24, 2020
uint16_t readChannel(Channel channel)

According to docs.modm.io

typedef uint8_t 	Channel
// this type may also be an enum or enum class 

the call readChannel(1) should be legal, but: error: cannot convert 'int' to 'modm::platform::Adc1::Channel'.

We should up

Improve this page

Add a description, image, and links to the microcontroller topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the microcontroller topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.