Close

Concentrate on Arduino and HW test idea

A project log for MCU pin setup

Visual pin layout setup tool for development boards with an editor mode for community involvement

norbert-feketeNorbert Fekete 04/28/2017 at 15:020 Comments

I'm currently concentrating on full functionalty for the Arduino Pro Mini, which includes lots of documentation reading and head scratching.

The JSON file formats describing the MCU, peripherals and module should not be too complicated, but also robust to allow lots of customization. This is applicable also for code templates: don't make them a huge mess, but they need to handle everything.

So this task also covers the sanity check implementation, and as I see dependencies, effects on other peripherals, info/warning/error messages.

Lots and lots of stuff that need serious consideration.

This is why I did not start the JSON and code template documentation yet. After getting the Arduino in shape, it can be a good base for documenting the "rule machinery".

Of course I need to do tests with the module to see if the generated code works, and I thought of a funny small "project" for which I will also create a tutorial. Kind of show the potential in this.

The project-in-this-project for my Arduino will be a module talking to itself via SPI.

As I've learned from the docs, the USART can be used as a master SPI. So by making the standard SPI on the device as a slave, these two can talk to each other. The whole process can be monitored through a SW serial. It will send random bytes from master to slave, verify it, and answer with another set of random bytes, also verified.

It will need some setup and interrupt handling. I hope that using the MCU pin setup tool, it will be a lot easier than doing all the setup by hand.

Discussions