Hi.
Sorry to post this topic here, but I hope I can get help here.
I have a PCB with the ANNA-B112 (not Nicla).
Below is part of the electrical diagram that I recreated myself.
ANNA-B112 has some firmware that causes the LED connected to P0.30 to flash. I managed to read the firmware using the ST-Link programmer and OpenOCD (to .bin file), then cleared the flash. The LED stopped flashing. I reprogrammed the ANNA-B112 with the same firmware that I had previously read and the LED started flashing again. This means that ANNA-B112 programming via the ST-Link programmer and OpenOCD works properly.
Now, as a way to start playing with ANNA-B112, I wanted to create my own program. I installed the required components in Arduino IDE (Arduino Mbed OS Nicla Boards). I wanted to write a program that would flash the same diode (on pin P0.30).
Below is the code:
#include "Arduino.h"
#include "NDP.h"
void setup()
{
pinMode(A1, OUTPUT); // A1 = P0.30 ???
}
void loop()
{
digitalWrite(A1, HIGH);
delay(500);
digitalWrite(A1, LOW);
delay(500);
}
I choose Sketch -> Export Compiled Binary and I get a .bin file. Then, using OpenOCD, I program the ANNA-B112 system with this file. The ANNA-B112 system seems to be programmed correctly, but after resetting its power supply, the LED does not flash.
Does anyone have an idea why this won't work?