Main Site Documentation

Netduino 3 wfi


#1

Porting TinyCLR

I am trying to implement this:
https://docs.ghielectronics.com/software/tinyclr/native/porting.html

Everything correctly downloaded and installed

last step (in administrator mode )
5) Open a command prompt, change the directory to the cloned repo, and then execute build.bat FEZCLR.

have tried with PowerShell and Git Bash in admin mode.


Windows PowerShell output =>

Copyright © Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> cd C:\Work\Netduino\GitHub_repos\TinyCLR-Ports
PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports> dir

Directory: C:\Work\Netduino\GitHub_repos\TinyCLR-Ports

Mode LastWriteTime Length Name


d----- 15-11-2018 16:10 CMSIS
d----- 15-11-2018 16:12 Core
d----- 15-11-2018 15:34 Devices
d----- 15-11-2018 15:34 Drivers
d----- 15-11-2018 15:34 Main
d----- 15-11-2018 15:34 Targets
-a---- 15-11-2018 15:34 13 .gitattributes
-a---- 15-11-2018 15:34 83 .gitignore
-a---- 15-11-2018 15:34 7178 build.bat
-a---- 15-11-2018 15:34 20624 imagegen.exe
-a---- 15-11-2018 15:34 11558 LICENSE
-a---- 15-11-2018 15:34 1810 README.md

PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports>
PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports> build.bat netduino3
build.bat : The term ‘build.bat’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • build.bat netduino3
  •   + CategoryInfo          : ObjectNotFound: (build.bat:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

Suggestion [3,General]: The command build.bat was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: “.\build.bat”. See “get-help about_Command_Precedence” for more details.
PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports> .\build.bat netduino3
Cannot find CMSIS. Please make sure it is downloaded and extracted to repo_root\CMSIS.
PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports> cd

have tried the suggestion => no luck.


Git Bash output =>

Gebruiker@Pat1809 MINGW64 /c/Work/Netduino/GitHub_repos/TinyCLR-Ports (dev)
$ dir
build.bat Core Drivers LICENSE README.md
CMSIS Devices imagegen.exe Main Targets

Gebruiker@Pat1809 MINGW64 /c/Work/Netduino/GitHub_repos/TinyCLR-Ports (dev)
$ build.bat netduino3
bash: build.bat: command not found

do i need to install the bootloader?
https://docs.ghielectronics.com/software/tinyclr/loaders/ghi-bootloader.html
and witch one?
What can i do to make this work?

Kind Regards,
Patrick


#2

So you’re on the right track that you need .\. The next error is you need CMSIS. That’s step 3 on https://docs.ghielectronics.com/software/tinyclr/native/porting.html You need to unpack the CMSIS archive you download to the specified folder. The below image shows what the CMSIS folder should have in it after you extract it.


#3

Hello John,
Thanks for your quick response.
I obtained the following:

PS C:\Work\Netduino\GitHub_repos\TinyCLR-Ports> .\build.bat netduino3
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Startup.gcc.s
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_ADC.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_ADC.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_CAN.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_CAN.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_CAN.cpp:338:46: error: ‘STM32F4_CAN_PINS’ was not declared in this scope
static const STM32F4_Gpio_Pin canPins[][2] = STM32F4_CAN_PINS;
^~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_CAN.cpp:338:46: note: suggested alternative: ‘STM32F4_PWM_PINS’
static const STM32F4_Gpio_Pin canPins[][2] = STM32F4_CAN_PINS;
^~~~~~~~~~~~~~~~
STM32F4_PWM_PINS
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_DAC.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_DAC.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Deployment.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Deployment.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Display.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Display.cpp:18:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_GPIO.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_GPIO.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_I2C.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_I2C.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_I2C.cpp:25:46: error: ‘STM32F4_I2C_PINS’ was not declared in this scope
static const STM32F4_Gpio_Pin i2cPins[][2] = STM32F4_I2C_PINS;
^~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_I2C.cpp:25:46: note: suggested alternative: ‘STM32F4_PWM_PINS’
static const STM32F4_Gpio_Pin i2cPins[][2] = STM32F4_I2C_PINS;
^~~~~~~~~~~~~~~~
STM32F4_PWM_PINS
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Interrupt.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Interrupt.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp: In function ‘void STM32F4_Power_EnsureTableInitialized()’:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:43:29: error: ‘struct TinyCLR_Power_Controller’ has no member named ‘SetLevel’
powerControllers[i].SetLevel = &STM32F4_Power_SetLevel;
^~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp: At global scope:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:73:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data) {
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:73:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data) {
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp: In function ‘TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller*, int, int, uint64_t)’:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:75:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Sleep1: // Sleep
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:76:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Sleep2: // Sleep
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:77:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Sleep3: // Sleep
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:78:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Off: // Off
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:79:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Custom: // Custom
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:83:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Active: // Active
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Power.cpp:84:10: error: ‘TinyCLR_Power_Level’ has not been declared
case TinyCLR_Power_Level::Idle: // Idle
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_PWM.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_PWM.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_RTC.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_RTC.cpp:15:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SD.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SD.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SPI.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SPI.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SPI.cpp:33:46: error: ‘STM32F4_SPI_PINS’ was not declared in this scope
static const STM32F4_Gpio_Pin spiPins[][3] = STM32F4_SPI_PINS;
^~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_SPI.cpp:33:46: note: suggested alternative: ‘STM32F4_GPIO_PINS’
static const STM32F4_Gpio_Pin spiPins[][3] = STM32F4_SPI_PINS;
^~~~~~~~~~~~~~~~
STM32F4_GPIO_PINS
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Startup.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Startup.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Time.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_Time.cpp:17:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UART.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UART.cpp:18:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UART.cpp:75:47: error: ‘STM32F4_UART_PINS’ was not declared in this scope
static const STM32F4_Gpio_Pin uartPins[][4] = STM32F4_UART_PINS;
^~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UART.cpp:75:47: note: suggested alternative: ‘STM32F4_UART_TX_PINS’
static const STM32F4_Gpio_Pin uartPins[][4] = STM32F4_UART_PINS;
^~~~~~~~~~~~~~~~~
STM32F4_UART_TX_PINS
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UsbDevice.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UsbDevice.cpp:18:0:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UsbDevice.cpp:245:52: error: ‘STM32F4_USB_PINS’ was not declared in this scope
static const STM32F4_Gpio_Pin usbDevicePins[][4] = STM32F4_USB_PINS;
^~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx\STM32F4_UsbDevice.cpp:245:52: note: suggested alternative: ‘STM32F4_PWM_PINS’
static const STM32F4_Gpio_Pin usbDevicePins[][4] = STM32F4_USB_PINS;
^~~~~~~~~~~~~~~~
STM32F4_PWM_PINS
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3\Device.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3\Device.h:19:0,
from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3\Device.cpp:1:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Main\main.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3/Device.h:19:0,
from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Main\main.cpp:16:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\USBClient\USBClient.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3/Device.h:19:0,
from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\USBClient\USBClient.h:19,
from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\USBClient\USBClient.cpp:18:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\GHIElectronics_TinyCLR_InteropUtil.cpp
In file included from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Devices\netduino3/Device.h:19:0,
from C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\GHIElectronics_TinyCLR_InteropUtil.cpp:16:
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:77: error: ‘TinyCLR_Power_Level’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Targets\STM32F4xx/STM32F4.h:66:104: error: ‘TinyCLR_Power_WakeSource’ has not been declared
TinyCLR_Result STM32F4_Power_SetLevel(const TinyCLR_Power_Controller* self, TinyCLR_Power_Level level, TinyCLR_Power_WakeSource wakeSource, uint64_t data);
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Adc\GHIElectronics_TinyCLR_Devices_Adc.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Adc\GHIElectronics_TinyCLR_Devices_Adc_GHIElectronics_TinyCLR_Devices_Adc_Provider_AdcControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Can\GHIElectronics_TinyCLR_Devices_Can.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Can\GHIElectronics_TinyCLR_Devices_Can_GHIElectronics_TinyCLR_Devices_Can_Provider_CanControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Dac\GHIElectronics_TinyCLR_Devices_Dac.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Dac\GHIElectronics_TinyCLR_Devices_Dac_GHIElectronics_TinyCLR_Devices_Dac_Provider_DacControllerApiWrapper.cpp


#4


C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Display\GHIElectronics_TinyCLR_Devices_Display.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Display\GHIElectronics_TinyCLR_Devices_Display_GHIElectronics_TinyCLR_Devices_Display_Provider_DisplayControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Gpio\GHIElectronics_TinyCLR_Devices_Gpio.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Gpio\GHIElectronics_TinyCLR_Devices_Gpio_GHIElectronics_TinyCLR_Devices_Gpio_Provider_GpioControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\I2c\GHIElectronics_TinyCLR_Devices_I2c.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\I2c\GHIElectronics_TinyCLR_Devices_I2c_GHIElectronics_TinyCLR_Devices_I2c_Provider_I2cControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Pwm\GHIElectronics_TinyCLR_Devices_Pwm.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Pwm\GHIElectronics_TinyCLR_Devices_Pwm_GHIElectronics_TinyCLR_Devices_Pwm_Provider_PwmControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Rtc\GHIElectronics_TinyCLR_Devices_Rtc.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Rtc\GHIElectronics_TinyCLR_Devices_Rtc_GHIElectronics_TinyCLR_Devices_Rtc_Provider_RtcControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Signals\GHIElectronics_TinyCLR_Devices_Signals.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Signals\GHIElectronics_TinyCLR_Devices_Signals_GHIElectronics_TinyCLR_Devices_Signals_PulseFeedback.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Signals\GHIElectronics_TinyCLR_Devices_Signals_GHIElectronics_TinyCLR_Devices_Signals_SignalCapture.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Signals\GHIElectronics_TinyCLR_Devices_Signals_GHIElectronics_TinyCLR_Devices_Signals_SignalGenerator.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Spi\GHIElectronics_TinyCLR_Devices_Spi.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Spi\GHIElectronics_TinyCLR_Devices_Spi_GHIElectronics_TinyCLR_Devices_Spi_Provider_SpiControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Storage\GHIElectronics_TinyCLR_Devices_Storage.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Storage\GHIElectronics_TinyCLR_Devices_Storage_GHIElectronics_TinyCLR_Devices_Storage_Provider_StorageControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Uart\GHIElectronics_TinyCLR_Devices_Uart.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Drivers\DevicesInterop\Uart\GHIElectronics_TinyCLR_Devices_Uart_GHIElectronics_TinyCLR_Devices_Uart_Provider_UartControllerApiWrapper.cpp
C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Build\release\netduino3\STM32F4_Startup.gcc.obj: In function Reset_Handler': (i.EntryPoint+0x44): undefined reference toSystemInit’
(i.EntryPoint+0x48): undefined reference to `main’
collect2.exe: error: ld returned 1 exit status
C:\Program Files (x86)\GNU Tools ARM Embedded\7 2018-q2-update\bin\arm-none-eabi-objcopy.exe: ‘C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Build\release\netduino3\netduino3 Firmware.axf’: No such file
C:\Program Files (x86)\GNU Tools ARM Embedded\7 2018-q2-update\bin\arm-none-eabi-objcopy.exe: ‘C:\Work\Netduino\GitHub_repos\TinyCLR-Ports\Build\release\netduino3\netduino3 Firmware.axf’: No such file
Done

as you can see i get a lot of “has not been declared” comments
Is this correct?

regarding: https://docs.ghielectronics.com/software/tinyclr/loaders/stm32-bootloader.html
Download and save the latest bootloader file (v2.x.x).

Which one do i need for neduino 3 wifi?

Kind Regards,
Patrick


#5

Have you made sure to download the master branch and not dev? dev is our current work and doesn’t work with the released core and header file.

There is no bootloader available for netduino 3 WiFi from us, you need to load the firmware directly using the ST tools.