Skip to content

ports/stm32/board/MPY_v11: Add new board MPY_v11 and acceleration IC. #16407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wangyoufeng8889
Copy link

Summary

This Pull Request aims to add support for the MPY_v11 board, which integrates a new acceleration sensor. To fully support the
acceleration functionality of this board, this PR depends on an internal pyb Accel module:. This module will be compiled as a MicroPython user module to provide the necessary interfaces and driver code for controlling the acceleration within the MicroPython environment.

Compilation Instructions
To compile the new board with the new acceleration, please follow these steps:

1.Clone the MicroPython repository and change dir to port/stm32.
2.Choose the BOARD=MPY_v11. Such as compile cmd is "make BOARD=MPY_v11".

Testing

I have tested the new board definition on the MPY_v11 hardware with the new acceleration sensor(LIS2DH12TR). The tests included compiling the MicroPython firmware, deploying it to the actual board, and verifying basic operations, including initialization, read x/y/z aixes value, and data processing. The results indicate that the acceleration sensor works properly and is compatible with the MicroPython firmware.

Trade-offs and Alternatives

The main trade-off is the maintenance overhead associated with supporting an additional board and external module, which is offset by the additional functionality and hardware support they provide.

Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:   +48 +0.012% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@robert-hh
Copy link
Contributor

You do not have to close and create a new pull requests to change one. Just make the change and do a forced update to the branch in your repository. Then the pull request will be updated.

@wangyoufeng8889
Copy link
Author

Aha, sorry, this is the first PR for this repo,when failed checks occured I don't kown how to repair,so close is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy