Skip to content
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

Cannot get basic examples working on the Asset Tracker board using the STM32WB5MMG processor. #1

Open
peekd opened this issue Nov 11, 2023 · 1 comment

Comments

@peekd
Copy link

peekd commented Nov 11, 2023

Trying to get AssetTracker_Example1_Blink going but can't even compile (see errors below).

From another user - dboddie - "Digging around in the Arduino code, it seems that this MicroMod board is mapped in the boards_remap.json file to the SFE_MMPB_STM32WB5MMG implementation. That can be found in this directory. However, symbols like RX1 are not defined in the relevant header file as they are in the equivalent header file for the STM32F405 board.

So, I think someone needs to look at the schematic for the processor board and make a similar set of definitions to those for the STM32F405."

Error details:

In file included from D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTracker_Example1_Blink.ino:39:
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:90:24: error: 'RX1' was not declared in this scope
90 | HardwareSerial Serial1(RX1, TX1);
| ^~~
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:90:29: error: 'TX1' was not declared in this scope
90 | HardwareSerial Serial1(RX1, TX1);
| ^~~
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:105:28: error: 'G0' was not declared in this scope; did you mean 'y0'?
105 | const int MICROSD_CS = G0; // Output: Active low
| ^~
| y0
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:106:28: error: 'G1' was not declared in this scope; did you mean 'y1'?
106 | const int MICROSD_PWR_EN = G1; // Output: Pull low to enable power for the SD card. Pull high to disable.
| ^~
| y1
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:107:28: error: 'G2' was not declared in this scope; did you mean 'D2'?
107 | const int SARA_PWR = G2; // Output: Pull high then low to switch the SARA-R5 on. Pull high for five seconds then low again to switch it off.
| ^~
| D2
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:108:28: error: 'G3' was not declared in this scope; did you mean 'D3'?
108 | const int IMU_PWR_EN = G3; // Output: Pull high to enable power for the IMU. Pull low to disable.
| ^~
| D3
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:109:28: error: 'G4' was not declared in this scope; did you mean 'D4'?
109 | const int SARA_RI = G4; // Input: SARA-R5 Ring Indicator pin. Becomes CTS2 in 2-UART mode.
| ^~
| D4
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:110:28: error: 'G5' was not declared in this scope; did you mean 'D5'?
110 | const int SARA_INT = G5; // Input: SARA-R5 EXT_INT interrupt pin.
| ^~
| D5
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:111:28: error: 'G6' was not declared in this scope; did you mean 'D6'?
111 | const int SARA_ON = G6; // Input: Pulled low when the SARA-R5 is on. Pulled high when the SARA-R5 is off.
| ^~
| D6
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:87:16: error: 'INT' was not declared in this scope; did you mean 'IN'?
87 | #define I2CINT INT
| ^~~
D:\code\Asset_Tracker\MicroMod_Asset_Tracker-main\Examples\AssetTracker_Example1_Blink\AssetTrackerPins.h:121:21: note: in expansion of macro 'I2CINT'
121 | const int IMU_INT = I2CINT; // Input: IMU interrupt pin
| ^~~~~~

exit status 1

Compilation error: 'RX1' was not declared in this scope

@SFE-Brudnerd
Copy link
Member

Hi @peekd, I've got this on my to-do list, but I probably won't be able to get to it for a couple weeks due to higher priority work. In the meantime, please feel free to submit a pull request in the Arduino_Core_STM32 repo and add me as a reviewer. It would be an easy first PR for you. Please note that whether I do it or you do it, you won't see the change in Arduino immediately as they only update for tags. In the meantime, you can clone the Arduino_Core_STM32 repo to your $Arduino\hardware folder, and after restarting Arduino it should show up as STM32 MCU based boards (in Sketchbook) in your boards drop-down list and you can pick the board from there. Thanks!

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

No branches or pull requests

2 participants