Skip to content

fauresystems/arduino-portenta-h7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Portenta H7

Tinkering with the Arduino Portenta H7.

Blink with dual M7-M4 cores

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
}

Simple web server on M7

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

Simple web server

You can look at the HTTP traffic in Chrome sniffer: Sniffer

Links

Portenta H7 board:

Arm Mbed OS:

MQTT on M7 WiFi client

Smiley face Working on it

Author

Jean-Michel (Jim) FAURE (July 9th, 2020)

About

Tinkering with the Arduino Portenta H7.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published