open-index/open-npm huggingface dataset:
npm package: @iotize/ionic
Description: Iotize specific building blocks on top of @ionic/angular.
Author: IoTize
Latest version: 18.2.2

# @iotize/ionic

Iotize specific building blocks on top of @ionic/angular.

More information about us at [iotize.com](https://iotize.com)

| Angular Version | @iotize/ionic version |
| --------------- | --------------------- |
| < 9             | >= 1.0.0 < 2.0.0      |
| >= 9            | >= 2.0.0              |
npm package: @iotize/mcu-flasher.js
Description: IoTize library for ARM-Cortex MCU programming
Author: IoTize
Latest version: 2.1.0

# MCU Flasher

This library is still in `alpha` stage. Breaking changes may occurs in future releases.

See [CHANGELOG](https://cdn.jsdelivr.net/npm/@iotize/mcu-flasher.js@latest/CHANGELOG.md).

## Installation

<!-- ### Browser

Download [latest version](https://cdn.jsdelivr.net/npm/@iotize/tap@latest/dist/iotize-device-client.min.js) or use this link to load from [jsdeliver](jsdeliver.com).

```html
<script src="https://cdn.jsdelivr.net/npm/@iotize/tap@latest/dist/iotize-device-client.min.js"/>
``` -->

### npm

```bash
npm install @iotize/mcu-flasher.js
```

## Usage

MCU Flasher needs these informations to configure itself :

-   Simfile : A configuration file provided by IoTize declaring every MCU Reference-specific informations (such as memory addresses).
-   PluginFile : an Intel HEX file, provided by IoTize, that contains the plugin to load in the MCU's memory to perform programming actions. The plugin to load is specified in the MCU's Simfile.

_Both files can be retrieved from this repository: [https://github.com/iotize-sas/simfiles](https://github.com/iotize-sas/simfiles)_

It also needs an IoTizeDevice to connect to, and profile credentials with sufficient rights, (e.g. tap admin's credentials)

### Create and use a Developer instance

```typescript
import { MicroControllerDeveloper } from '@iotize/mcu-flasher.js';

let mcuDeveloper = MicroControllerDeveloper.create(
    device,
    simFileString,
    pluginString
);

// now you may call the programming methods:

await mcuDeveloper.dump();
await mcuDeveloper.erase();
await mcuDeveloper.blankCheck();
await mcuDeveloper.programFile(programString);
await mcuDeveloper.run();
```

programString is the Hex file or Srec file (to be validated) that you want to program in your MCU memory.

<!-- For more informations, read the [documentation](http://developer.iotize.com). -->