This github has been forked from https://github.com/facchinm/ArduinoCore-stm32l0 by Arduino which in turn was forked from https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0 which allows full control of the murata module on the Portenta H7 LoRa Vision Shield.
Unfortuantely we are not given an enormous amount of memory to work with so I will have to try to get the MKRWAN library working as well to be able to completely use the LoRaWan capabilities.
Presently I install the GrumplyOldPizza Tlera board and then copy all these files to replace the Tlera board, but I am working on a better method. The json file for the Arduino IDA preferences is here
https://grumpyoldpizza.github.io/ArduinoCore-stm32l0/package_stm32l0_boards_index.json
but I am working on a JSON for this board.
Huge Thanks to both the previous repositories for getting this working.
My version of the board deffinitions for the comma seperated preferences Arduino IDE is here.
https://hpssjellis.github.io/portenta-lora-murata-stm32lo/package_portenta_stm32l0_boards_index.json
.
.
.
.
.
ArduinoCore-stm32l0 is targeted at ultra low power scenarios, sensor hubs, with LoRaWAN connectivity.
- Download and install the Arduino IDE (at least version v1.6.8)
- Start the Arduino IDE
- Go into Preferences
- Add
https://grumpyoldpizza.github.io/ArduinoCore-stm32l0/package_stm32l0_boards_index.json
as an "Additional Board Manager URL" - Open the Boards Manager from the Tools -> Board menu and install "Tlera Corp STM32L0 Boards"
- Select your STM32L0 board from the Tools -> Board menu
- Go to ~/.arduino15/packages/TleraCorp/hardware/stm32l0/
<VERSION>
/drivers/linux/ - sudo cp *.rules /etc/udev/rules.d
- reboot
- Download Zadig
- Plugin STM32L0 board and toggle the RESET button while holding down the BOOT button
- Let Windows finish searching for drivers
- Start
Zadig
- Select
Options -> List All Devices
- Select
STM32 BOOTLOADER
from the device dropdown - Select
WinUSB (v6.1.7600.16385)
as new driver - Click
Replace Driver
- Go to ~/AppData/Local/Arduino15/packages/TleraCorp/hardware/stm32l0/
<VERSION>
/drivers/windows - Right-click on
dpinst_x86.exe
(32 bit Windows) ordpinst_amd64.exe
(64 bit Windows) and selectRun as administrator
- Click on
Install this driver software anyway
at theWindows Security
popup as the driver is unsigned
- Plugin STMicroelectronics board
- Download and install ST-Link USB Drivers
- Follow steps from Board Manager section above
cd <SKETCHBOOK>
, where<SKETCHBOOK>
is your Arduino Sketch folder:
- OS X:
~/Documents/Arduino
- Linux:
~/Arduino
- Windows:
~/Documents/Arduino
- Create a folder named
hardware
, if it does not exist, and change directories to it - Clone this repo:
git clone https://github.com/grumpyoldpizza/ArduinoCore-stm32l0.git TleraCorp/stm32l0
- Restart the Arduino IDE
Sometimes a faulty sketch can render the normal USB Serial based integration into the Arduindo IDE not working. In this case plugin the STM32L0 board and toggle the RESET button while holding down the BOOT button and program a known to be working sketch to go ack to a working USB Serial setup.
This core is based on and compatible with the Arduino SAMD Core