-
Notifications
You must be signed in to change notification settings - Fork 122
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
BBC:Microbit_V2 LED Matrix doesn’t work on PlatformIO #171
Comments
PUSH! This is still a problem! |
Thanks @BenRabor for opening the issue and @maxgerhardt for mentioning it. I have added a small analysis of the problem in the blog mentioned above. Bottomline is a line 62 in nrf5.py which parses line 10 of the board definition. This leads to a conflicting pragma definition that overrides the NRF52833_XXAA definition with an incorrect NRF52832_XXAA (see line 93 of nrf.h) which is a completely different uC. This prevents the Microbit V2 to use the second port peripheral, thus limiting the amount of pins and other issues due to it being another chip. |
For users: For PR: |
micro:bit V2 doesn't need a generic "NRF52" macro as it already has a proper MCU name in corresponding manifest Issue platformio/platform-nordicnrf52#171
Thank you very much to all of you guys who analyzed and solved this
annoying problem! You are all great! :)
Eugene.
…On Mon, Sep 25, 2023 at 4:58 AM Valerii Koval ***@***.***> wrote:
Closed #171
<#171> as
completed via 4257ee4
<4257ee4>
.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6GJVTBIV32FJGDJUFF37YDX4FWXTANCNFSM6AAAAAAVLYEQMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
The issue is described and discussed here
(https://community.platformio.org/t/microbit-v2-led-matrix-adafruit-microbit-library-demo-doesnt-work-on-platformio/31970/1)
The board is BBC:Microbit_V2. The Environment is PlatformIO:
Version: 1.75.1 (user setup)
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:32:34.589Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No
PlatformIO IDE - Version 3.0.0
Development PC: Windows 10 Pro
I am testing a simple program to control LED Matrix of bbc:microbit_V2 by manipulating the pins associated with ROWs and COLs of the LED matrix.
My testing program is shown at the bottom of the post.
However, after a successful compilation and downloading the program to microbit, I saw that the all led-s in column-3 (counting from 0) could not be lit, they all stay off.
After some more investigation and discussions in the PlatformIO and "microbit.org", it turned out that the problem is in the definition of the NRF52832_XXAA macro in the "platformio\packages\framework-arduinonordicnrf5\cores\nRF5\SDK\components\device\nrf.h" File (in lines# 93-95).
After I commented out a few corresponding lines defining NRF52832_XXAA macro in this file to look as follows:
everything started working correctly.
NOTE1: I verified that the same program without any modifications is working just fine in Arduino IDE 2.0.3.
NOTE2: The majority of the analysis has been done by Martin Williams of the support team in
Micro:bit Educational Foundation:
https://support.microbit.org/support/tickets/60359
The text was updated successfully, but these errors were encountered: