PlatformIO Community

PLATFORMIO Arduino NRF52 code - error


#1

After add the NRF52 SDK to ARDUINO and include these libraries
git clone https://bitbucket.org/mitov/visuino-libraries.git and this code, i can succefully compile on ARDUINO.
After include this code and libraries do Plataformio, i got error!
Thank you!

Can you investigate ?

//----------------------------------------------
//
// Sketch Generated by Visuino
// www.visuino.com
// Version 7.8.2.291
//
//------------------ Source --------------------
//
// visuino_esp32.visuino
//
//----------------------------------------------

#define VISUINO_NRF52832

#include <OpenWire.h>
#include <Mitov.h>
#include <Mitov_FormattedSerial.h>
#include <Mitov_Text.h>
#include <Mitov_RandomGenerator.h>

// Arduino Board Declarations

namespace BoardDeclarations
{
Mitov::TypedSerialPort<Mitov::SerialPort<SERIAL_TYPE, Serial>, SERIAL_TYPE, Serial> SerialPort0;
Mitov::ArduinoSerialStringInput<Mitov::TypedSerialPort<Mitov::SerialPort<SERIAL_TYPE, Serial>, SERIAL_TYPE, Serial>, SerialPort0> SerialPort0_String_1;
Mitov::ArduinoSerialObjectInput<Mitov::TypedSerialPort<Mitov::SerialPort<SERIAL_TYPE, Serial>, SERIAL_TYPE, Serial>, SerialPort0, Mitov::TDateTime> SerialPort0_DateTime_1;
} // BoardDeclarations

// Declarations

namespace Declarations
{
Mitov::TextValue TextValue1 = Mitov::TextValue( (char *)“Hello World!” );
Mitov::RandomClockGenerator RandomClockGenerator1;
Mitov::CommonRandomGenerator<Mitov::TDateTime, Mitov::RandomDateTimeGenerator> RandomDateTimeGenerator1 = Mitov::CommonRandomGenerator<Mitov::TDateTime, Mitov::RandomDateTimeGenerator>( Mitov::TDateTime( 693594, 0 ), Mitov::TDateTime( 693694, 0 ) );
Mitov::RandomClockGenerator RandomClockGenerator2;
} // Declarations

// Pin Call Declarations

namespace PinCalls
{
void PinCallerReceive1( void *_Data );
void PinCallerReceive2( void *_Data );
void PinCallerReceive3( void *_Data );
void PinCallerReceive4( void *_Data );
} // PinCalls

// Pin Call Implementations

namespace PinCalls
{
void PinCallerReceive1( void *_Data )
{
BoardDeclarations::SerialPort0_String_1.InputPin_o_Receive( _Data );
}

void PinCallerReceive2( void *_Data )
{
Declarations::TextValue1.ClockInputPin_o_Receive( _Data );
}

void PinCallerReceive3( void *_Data )
{
BoardDeclarations::SerialPort0_DateTime_1.InputPin_o_Receive( _Data );
}

void PinCallerReceive4( void *_Data )
{
Declarations::RandomDateTimeGenerator1.ClockInputPin_o_Receive( _Data );
}

} // PinCalls

namespace ComponentsHardware
{
void SystemUpdateHardware()
{
}
} // ComponentsHardware

//The setup function is called once at startup of the sketch
void setup()
{
Declarations::TextValue1.OutputPin().SetCallback( PinCalls::PinCallerReceive1 );
Declarations::RandomClockGenerator1.OutputPin().SetCallback( PinCalls::PinCallerReceive2 );
Declarations::RandomDateTimeGenerator1.OutputPin().SetCallback( PinCalls::PinCallerReceive3 );
Declarations::RandomClockGenerator2.OutputPin().SetCallback( PinCalls::PinCallerReceive4 );

BoardDeclarations::SerialPort0.SystemInit();
Declarations::TextValue1.SystemInit();

Declarations::RandomClockGenerator1.SystemStart();
Declarations::RandomDateTimeGenerator1.SystemStart();
Declarations::RandomClockGenerator2.SystemStart();

OpenWire::SystemStarted();
}

// The loop function is called in an endless loop
void loop()
{
unsigned long A_Current_Microseconds = micros();

BoardDeclarations::SerialPort0.SystemLoopBegin( A_Current_Microseconds );
Declarations::TextValue1.SystemLoopBegin( A_Current_Microseconds );
Declarations::RandomClockGenerator1.SystemLoopBegin( A_Current_Microseconds );
Declarations::RandomClockGenerator2.SystemLoopBegin( A_Current_Microseconds );
}


#2

https://furb-my.sharepoint.com/:u:/g/personal/maw_furb_br/ERCbv70020dGm14EfXNQvEAB3Sdr-r9_mKEwi7XgeTixmQ?e=pEBG9R

Here source .ino code

Thanks