Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve network configuration block management #1422

Merged

Conversation

josesimoes
Copy link
Member

Description

  • Add default network config block for STM32F769I using default STM MAC address.
  • Rework logic to create default network config block on enumeration, only.
  • Add setting to use auto DNS on default configuration.
  • Default config block for ESP32 now grabs default MAC from device.

Motivation and Context

  • Need to be able to set a default MAC on SMT32 devices otherwise networked enabled devices couldn't boot with network.
  • Default network block on ESP32 wasn't grabbing the default MAC address.

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: José Simões jose.simoes@eclo.solutions

@josesimoes josesimoes added Series: STM32xx Everything related specifically with STM32 targets Series: ESP32 Everything related specifically with ESP32 series targets Breaking-change Series: TI-CC32xx labels Jul 26, 2019
@nfbot
Copy link
Member

nfbot commented Jul 26, 2019

Hi @josesimoes,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

- Add default network config block for STM32F769I using default STM MAC address.
- Rework logic to create default network config block on enumeration, only.
- Add setting to use auto DNS on default configuration.
- Default config block for ESP32 now grabs default MAC from device.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
@josesimoes josesimoes force-pushed the update-default-network-config branch from 366901e to e7bf3fe Compare July 26, 2019 13:59
@josesimoes josesimoes merged commit ab24e53 into nanoframework:develop Jul 26, 2019
@josesimoes josesimoes deleted the update-default-network-config branch July 26, 2019 14:13
josesimoes added a commit to Eclo/nf-Community-Targets that referenced this pull request Jul 26, 2019
- Following nanoframework/nf-interpreter#1422.

***ST_NUCLEO144_F439ZI***
***ST_NUCLEO144_F746ZG***

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
morali pushed a commit to morali/nf-interpreter that referenced this pull request Oct 4, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 11, 2019
josesimoes added a commit that referenced this pull request Nov 14, 2019
josesimoes added a commit that referenced this pull request Nov 20, 2019
josesimoes added a commit that referenced this pull request Nov 27, 2019
josesimoes added a commit that referenced this pull request Dec 3, 2019
josesimoes added a commit that referenced this pull request Dec 5, 2019
josesimoes added a commit that referenced this pull request Jan 7, 2020
josesimoes added a commit that referenced this pull request Jan 17, 2020
josesimoes added a commit that referenced this pull request Jan 29, 2020
josesimoes added a commit that referenced this pull request Feb 7, 2020
josesimoes added a commit that referenced this pull request Feb 10, 2020
josesimoes added a commit that referenced this pull request Feb 11, 2020
josesimoes added a commit that referenced this pull request Feb 12, 2020
josesimoes added a commit that referenced this pull request Feb 13, 2020
josesimoes added a commit that referenced this pull request Feb 25, 2020
josesimoes added a commit that referenced this pull request Feb 28, 2020
josesimoes added a commit that referenced this pull request Mar 9, 2020
josesimoes added a commit that referenced this pull request Mar 21, 2020
josesimoes added a commit that referenced this pull request Apr 15, 2020
josesimoes added a commit that referenced this pull request Apr 29, 2020
josesimoes added a commit that referenced this pull request Apr 29, 2020
josesimoes added a commit that referenced this pull request Apr 29, 2020
josesimoes added a commit that referenced this pull request May 2, 2020
josesimoes added a commit that referenced this pull request May 4, 2020
josesimoes added a commit that referenced this pull request May 5, 2020
josesimoes added a commit that referenced this pull request May 11, 2020
josesimoes added a commit that referenced this pull request May 19, 2020
josesimoes added a commit that referenced this pull request Jun 5, 2020
josesimoes added a commit that referenced this pull request Jun 5, 2020
* Add new boards

- 429 building and running booter and CLR
- MAC disabled

* Fix I2C config

* Fix alternate for RMII pin

* Fix SPI assignments

- SPI1 and SPI2 are the correct ones.

* Add support for STDBY processing and exit on CLR

* Correct pin to remain on booter

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Implement workaround on silicon bug when wakeup from STDBY

- Also decrease timeouts on USB connect disconnect sequence.

* Fix block storage config

- Was missing the config block.
- Add config block to block storage arrays.
- Adjust linker file accordingly.
- Rename linker files and update reference in target CMake.
- Update CLR address in booter check.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Temporary fix to overcome PHY reset signal

* Update ChibiOS build options

- Following #1177.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Upda Block storage to new structure

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix SD Card detect

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix FAT FS definitions and configs

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Final tweaks on USB MSD config

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update storage implementation for target board

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update FatFS config

* Clean up main for file system inits

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add storage working threads and config

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add define for activity heart beat

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update ChibiOS config files for F469

* Update F469 board to ChibiOS 19.1

* Update UART configs

* Update F769 board to ChibiOS 19.1

- Added necessary config files

* Fix clock config

* Linker file adjustments

* Update lwIPand other network configs

* Fix GPIO def

* adjust sntp config

* Add missing define for platform RNG

* Fix board voltage

* Turn OFF SD Card on both boards

* Turn on bkp RAM on both boards

* Fix booter code for F769

- Was checking the wrong GPIO to remain on booter.
- Decrease USB timeout.
- Add missing call to BlockStorage init.
- Replace pal set/clear with toggle for blinking the LED.

* Work on CLR main for F769

- Add threads for SD card and USB MSD.
- Decrease USB sleep time on reboot.

* Update config for ext memory and disable for F7

* Fix GPIO config for UART pins

* Fix ethernet F4

* Disable COM7 in F4

* Improve async continuations

* Enable COM ports on F7

* Add wake up processing for F7

* Enable UART7 on F4 board

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Initial work adding SPIFFS to STM32

- Add code from Cube package.
- Add SPIFFS HAL.
- Update STM32 Windows.Storage implementation to add support for SPIFFS.
- Rework STM32 Windows.Storage implementation to work without FatFS.
- Update CMakes as required.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Initial work adding SPIFFS to STM32

- Add code from Cube package.
- Add SPIFFS HAL.
- Update STM32 Windows.Storage implementation to add support for SPIFFS.
- Rework STM32 Windows.Storage implementation to work without FatFS.
- Update CMakes as required.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update SD Card detect mapping in storage configuration

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix I2C2 DMA assigment

- Close BUG 67.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fixes on GPIO defs for QSPI on F4 and F7 boards

* Add SPIFFS implementation for F4 and F7 boards

* Work on QSPI to use STM HAL calls to init QSPI clocks and pripheral

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work on SPIFFS hal init

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Change spiffs max file name to 256

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Rework STM32 Windows.Storage

- Add support for SPIFFS.
- Separate code to allow compiling for FatFS and SPIFFS as separate options.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Rework StorageFile for spiffs

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Remove magic number from spiffs config

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix HAL SPIFFS after bad merge

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Revert SPIFFS config for object name lenght to 32

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix external memory for F7 board

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix STM Cube package

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Sync mcu config F7 with F4

* Enable UART7 config for F7 board

* Update ADC config for F7 board

* Turn off unnused peripherals

* Add extra cleaning to F7 wakeup sources

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work on F7 and F4 resources

- Enable I2C3 for F7
- Enable ADC3 for F4 and F7

* Remove bad double quotes on include for SPIFFS

- Was failing the CMake config if SPIFFS option was OFF.

* Turn off SPIFFS for F7 board

- Turn off HAL QSPI.
- QSPI STM Cube driver is not working as it is now.

* Adjust CLR region size for MinRelSize build (F4)

* Update CLR region size for RELEASE build (F7)

* Add default GPIOs (both F4 and F7)

Related work items: #72

* Change serial flash to W25Q128

- Update names, size configs, chip IDs and timmings.

* Fix GPIO initial set

- Both boards.
- Requested by Zan.

* Enable SD Card in storage config (both F4 and F7)

* Add target name and platform defines to both F4 and F7

* Update both targets config files

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add target config for DAC

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Enable DAC on PA4 for both boards

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update mbedTLS options on both boards

- Following nf-interpreter develop branch.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update serial baud rate on both boards

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix build with mbedTLS option ON

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add network default config to F4 and F7 boards

- Following #1422.

* Fix GPIO config for SPI flash CS pin

* Fix initial test code for SPIFFS

* Enable SPIFFS storage for F7 board

* Add define for long running operations hook in SPIFFS config

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Rework F7 SPIFFS to work with AT25SF081

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update F7 SPIFFS config to AT25SL641

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Enable SDMMC1 on F7

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix SPI flash PN and IDs

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Fix overalpping DMA with SD card and SPI1

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Remove bad instruction to force cache read

- Causing hard fault.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Replace hack for watchdog reset

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Merged PR 2: Add DMA capable read and write buffers for SPIFFS operation

Add DMA capable read and write buffers for SPIFFS operation

* Replace flash storage from SPI to QSPI chip

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Revert wrong changes in STM32F769 targets

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Revert changes with wrong merge

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Revert merge changes

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Revert from merge

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Remove wrong boards

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work CD-CI

- Add OrgPal board to build targets.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add ORGPAL board to README

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add ORGPAL_PALTHREE board folder

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work CD-CI

- Remove CAN from build options.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Remove 1-Wire from build options and features table

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Merge from upstream/develop

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add dependencies for ORGPAL build

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Enable support for System.Text

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work CD-CI

- Add ForceUpload variable to bintray template to allow publishing images on branches other than develop.
- Set ForceUpload  in ORGPAL target.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Gererate DFU file for ORGPAL_PALTHREE

* Generate DFU file for OrgPal3 board (#1533)

* Add GetTargetCapabilities for OrgPal3
* Add DFU package to CMakeLists for OrgPal3 board

* Add required header for GetTargetCapabilities

* Remove duplicated line from CMakeLists.txt

* Remove unused dependency from ChibiOS FatFS

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update FatFS config file to R014

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Work CD-CI

- Rename ChibiOS nF HAL overlay defines as they were conflicting with the official community ones.
*** REQUIRES UPDATE ON THE NF OPTIONS ON ALL STM32 TARGETS ***
***NO_CI***

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Update ORGPAL3 HAL options

Signed-off-by: José Simões <jose.simoes@eclo.solutions>

* Add CRC init to boot files

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>

* Update SPI configuration

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>

* Fix SPI index in call to config macro

* Update README from upstream develop

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>

* Fix Azure pipelines entry

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>

* Fix managed helpers for ORGPAL_PALTHREE

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>

Co-authored-by: sjmneves <sergio.neves@eclo.solutions>
Co-authored-by: Antonio Fagundes <antonio.fagundes@eclo.solutions>
Co-authored-by: Robin Jones <networkfusion@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking-change Series: ESP32 Everything related specifically with ESP32 series targets Series: STM32xx Everything related specifically with STM32 targets Series: TI-CC32xx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants