GithubHelp home page GithubHelp logo

platform-azure's Introduction

Azure Sphere - PlatformIO

  • Version 2.0.4 ( look here, if there is something new )
  • OS Windows 10 ( preferably )
    • Sysroot 3+Beta1909
    • Sysroot 2+Beta1905
    • Arduino HighLevel applications
    • Linux HighLevel applications
    • Mediatek Cortex-M4 applications
    • Baremetal Cortex-M4 applications
  • Full API (NEW)
  • Experimental mode for libc and libwolfssl (NEW beta in process)
  • It is very beta version - may be bugs yet

Arduino part

  • Arduino base core ( sources from last Arduino IDE )
  • HardwareSerial
  • GPIO
  • Wire
  • SPI
  • wifiClient
  • wifiUDP
  • curlClient
  • ClientSecure
  • other in proggress...
  • Examples

Wiring part ( Arduino for M4F core )

  • Arduino base core
  • HardwareSerial (in progress)
  • GPIO (NEW all gpio)
  • ADC

Mediatek part ( M4 )

Linux & Baremetal parts

Boards

Demo movies

Project

Documentations, Support, Forums

Platform Installation

Install VS Code + PlatformIO

PlatformIO - Home - Platforms - Advanced Installation

Paste link: https://github.com/Wiz-IO/platform-azure

SDK 19.10/11 workaroud

Fast Uninstal

goto C:\Users\USER_NAME.platformio\platforms

  • delete folder azure ( builders )
  • delete folder framework-azure ( sources )
  • delete folder tool-azure ( azsphere )
  • delete folder toolchain-arm-poky-linux-musleabi-hf (compiler )

New Project - PlatformIO

PlatformIO - Home - New

  • enter Project Name - Board write-search 'azure' - Select Linux or Arduino
  • you will have basic template project
  • Open 'src/app_manifest.json' and enter your 'Capabilities'
  • Open 'platformio.ini' and edit your settings
  • Project platformio.ini example:
[env:avnet_aesms_mt3620]
platform = azure
board = avnet_aesms_mt3620
framework = arduino
monitor_port = COM6
monitor_speed = 115200

;board_build.sdk = C:/Program Files (x86)/Microsoft Azure Sphere SDK ; path to ...
;board_build.sysroot = 2+Beta1806  ; default is max version, 3+Beta1909
;board_build.delete = all ; default is all applications, or = current 

;board_build.copy =  filename.1 filename.2 
;    copy files from project SRC to image-package, as certificates, settings, etc
;    path is /mnt/APP-GUID/filename ... Storage_GetAbsolutePathInImagePackage()

;board_build.ex_mode = enable ; empty key: disabled ; experimental mode for libc, libwolfssl...
;board_build.verbose = enable ; verbose for azsphere 

;build_flags = -D ANY_FLAG

Thanks to:

Project

Project

IF YOU WANT HELP / SUPPORT paypal

platform-azure's People

Contributors

thepenguinmaster avatar wiz-io avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform-azure's Issues

Setup Clarity

H Wiz,

Am just curious on following items.

  1. Does the Azure Sphere is re-flashed with custom software
  2. How Aurdino is used along with the base Sphere board
  3. Does the security still valid as given by MSFT

azureiot: missing cstring

platformio.ini

[env:avnet_aesms_mt3620]
platform = azure
board = avnet_aesms_mt3620
framework = arduino

main.cpp

#include <Arduino.h>
#include <azureiot/iothub_device_client_ll.h>

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

Error message:

AZURE SPHERE SDK SYSROOT: 2+Beta1905 [ MT3620 ] avnet_aesms_mt3620 
USED C:\Program Files (x86)\Microsoft Azure Sphere SDK 
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 4 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pio\build\avnet_aesms_mt3620\src\main.cpp.o
Compiling .pio\build\avnet_aesms_mt3620\_arduino\IPAddress.cpp.o
Compiling .pio\build\avnet_aesms_mt3620\_arduino\Print.cpp.o
Compiling .pio\build\avnet_aesms_mt3620\_arduino\Stream.cpp.o
In file included from C:\Users\sunny\.platformio\packages\framework-azure\Sysroots\2+Beta1905\usr\include/azureiot/iothub_device_client_ll.h:29,
                 from src\main.cpp:2:
C:\Users\sunny\.platformio\packages\framework-azure\Sysroots\2+Beta1905\usr\include/azure_c_shared_utility/macro_utils.h:18:10: 
fatal error: cstring: No such file or directory
 #include <cstring>
          ^~~~~~~~~
compilation terminated.
*** [.pio\build\avnet_aesms_mt3620\src\main.cpp.o] Error 1

Communicate M4 & M7 issues

I am trying to communicate M4 and M7 cores, and I find 2 issues:

  • The component ID change everytime the code is uploaded to the board, and the number it is not the same as the one in componentID from app_manifest.json.
  • Everytime I upload a new application it removes all the applications installed in the board. I use Visual Code to upload different components .

Checking size .pio\build\avnet_aesms_mt3620\app.elf
Packing image...
UUID: 32A2E119-5699-448B-98AA-C8832C2E1876
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [ ] 0.9% (used 2272 bytes from 262144 bytes)
PROGRAM: [ ] 2.9% (used 30512 bytes from 1048576 bytes)
Command completed successfully in 00:00:00.9302438.

Configuring upload protocol...

Component '8548b129-b16f-4f84-8dbe-d2c847862e78' deleted or was not present beforehand.
Component '685f13af-25a5-40b2-8dd8-8cbc253ecbd8' deleted or was not present beforehand.
Component '005180bc-402f-4cb3-a662-72937dbcde47' deleted or was not present beforehand.
Command completed successfully in 00:00:04.3563300.

OLD APPLICATION IS REMOVED
Deploying 'c:/Users/rober/proyectos/pruebasphere/.pio/build/avnet_aesms_mt3620\app.image' to the attached device.
warn: This app targets Beta APIs that may change or be removed in future.
Image package 'c:/Users/rober/proyectos/pruebasphere/.pio/build/avnet_aesms_mt3620\app.image' has been deployed to the attached device.
Command completed successfully in 00:00:06.9794264.

NEW APPLICATION IS READY**

No COM6

My Azure Sphere shows only 3 COM ports (COM5, COM7, COM8). Please help me figure out how to get COM6.

Serial.printf has no effect

Host: Windows 10 Home, PIO Core 4.0.2, platform-azure c6b6adf
Device: AES-MS-MT3620-SK-G
Program: ArduinoAzureBlink example

Expected: platformio.exe device monitor should display serial messages such as "Arduino - Hello World - PlatformIO" and "Loop".
Actual: device monitor shows "[PLUTON] Booting application core" from bootloader, no more message after that

I also tried changing Serial.printf to Log_Debug, but it has the same result.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.