Tinkering with the Arduino Portenta H7.
LL_RCC_ForceCM4Boot()
must be called in M7 sketch to start M4 sketch
/* BlinkGreenM7.ino
MIT License (c) Faure Systems <dev at faure dot systems>
LL_RCC_ForceCM4Boot() must be called in M7 sketch to start M4 sketch
Ref: https://www.arduino.cc/pro/tutorials/portenta-h7/por-ard-dcp
*/
// the setup function runs once when you press reset or power the board
void setup() {
LL_RCC_ForceCM4Boot();
// initialize digital pin LEDR as an output.
pinMode(LEDG, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LEDG, LOW); // turn the red LED on (LOW is the voltage level)
delay(450); // wait for 200 milliseconds
digitalWrite(LEDG, HIGH); // turn the LED off by making the voltage HIGH
delay(450); // wait for 200 milliseconds
}
/* BlinkBlueM4.ino
MIT License (c) Faure Systems <dev at faure dot systems>
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LEDR as an output.
pinMode(LEDB, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LEDB, LOW); // turn the red LED on (LOW is the voltage level)
delay(200); // wait for 200 milliseconds
digitalWrite(LEDB, HIGH); // turn the LED off by making the voltage HIGH
delay(200); // wait for 200 milliseconds
}
Upload a stop sktech to M4: StopM4.ino
Change arduino-secrets.h
:
# define SECRET_SSID "PortentaAccessPoint"
# define SECRET_PASS "123Qwerty"
Upload web server on M7: SimpleWebServerM7.ino
Start Arduino IDE monitor, then connect your computer to the PortentaAccessPoint
WiFi network and open you browser for http://192.168.3.1
You can look at the HTTP traffic in Chrome sniffer:
Portenta H7 board:
- Setting Up Portenta H7 For Arduino
- Portenta H7, the First STM32 Arduino Board to Conquer Industrial Applications
- Issues:
Arm Mbed OS:
Jean-Michel (Jim) FAURE (July 9th, 2020)
- company: FAURE SYSTEMS®
- mail: dev at faure dot systems
- github: fauresystems
- web: Faure●Systems