- Muchas notas - Fran Acién

20240321 - SS Prototype - Workshop 1 - How to flash the system

Relevant links for this note:

Material required

  • Prototype subsystem board
  • ESP-Prog, is a external programmer
  • Arduino IDE installed

The first example is to blink a led, that way we are going to verify that we are able to upload the code. The steps are:

  1. Connect the ESP-Prog to the prototype subsystem board. In this picture is also connected the uCAN that is not required for this example:

6bd75e20785b0d5086bf5a375e4c8183.png

  1. Connect the ESP-Prog to the computer with a microUSB cable. You should be able to see the prototype system Power led high.
  2. Go to arduino IDE, and upload the next code to the board. It is the ESP32-DevKit. The builtin led is connected to the GPIO36 of the ESP32S3.
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(36, OUTPUT);
  Serial.begin(9600);
}

// the loop function runs over and over again forever
void loop() {
  Serial.println("asdf");
  digitalWrite(36, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(36, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);                      // wait for a second
}

8406ca9d28449839f2ff99a7730ed0ae.png

120a0bb539424ff72eddd5c69ffcf530.png

e62a26df82f3ea34c3670ba1021e4d5f.png

  1. You should be able to see the led blinking

Send messages over CAN network using the CFP library

The wiring is the next one:

6cb9ff87a082f4f93e1a3f3873b5de7b.png