Skip to content

Commit

Permalink
[HUB-1][SETUP] Initial commit for IOTA2-HUB Connectivity project
Browse files Browse the repository at this point in the history
This commit also includes tasks for HUB-2 and HUB-4
Build path will be set to: tools/ARM-GNU/Linux64
  • Loading branch information
iota2-admin committed Sep 13, 2019
0 parents commit b7f2d03
Show file tree
Hide file tree
Showing 8,178 changed files with 2,079,642 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
51 changes: 51 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Prerequisites #
*.d

# Object files #
*.o
*.obj
*.elf
*.bin

# Linker output #
*.ilk
*.map

# Libraries #
*.lib
*.a

# Shared objects (inc. Windows DLLs) #
*.dll
*.so
*.so.*

# Executables #
*.exe
*.out
*.hex

# System #
*~
*.swp
*.swo
.depend
tags

# Git #
*.orig
*.rej
*.patch

# Project #
.cproject
.project
.settings/

# Output #
build/

# as some tools might contain object files or libraries,
# include everything tools directry may have
!tools/**

675 changes: 675 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# iota2

> Making Imaginations, Real
<i2.iotasquare@gmail.com>

## IOTA2-HUB
IOTA2-HUB is an Ethernet connectivity module that is able to
monitorvarious components and provides multiple options to
connect over a number of internet protocols

## System Configurations
* MCU : STM32F407IGTx
* CORE : ARM Cortex-M4
* Package : LQFP100
* RAM : 128KB - 0x20000 ( @ 0x20000000)
* Flash : 512KB - 0x80000 ( @ 0x08000000)
* Compilation Path : ./tools/ARM-GNU/Libux64

## License
#### GNU GPU v3
> This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

**Free Software, Hell Yeah!**

198 changes: 198 additions & 0 deletions STM32F407IGTx_FLASH.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
/**
* @date 07-09-2019
* @author iota square <i2>
* _ _ ___
* (_) | | |__ \.
* _ ___ | |_ __ _ ) |
* | |/ _ \| __/ _` | / /
* | | (_) | || (_| |/ /_
* |_|\___/ \__\__,_|____|
*
*
* @File LinkerScript.ld
*
* @Abstract Linker script for STM32F407IGTx Device with
* 512KByte FLASH, 192KByte RAM
*
* Set heap size, stack size and stack location according
* to application requirements.
*
* Set memory bank area and size if external memory is used.
*
* @Target STMicroelectronics STM32
*
* @License GNU GPU v3
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Free Software, Hell Yeah!
*
**/

/* Entry Point */
ENTRY(Reset_Handler)

/* Highest address of the user mode stack */
_estack = 0x20020000; /* end of RAM */
/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */

/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
}

/* Define output sections */
SECTIONS
{
/* The startup code goes first into FLASH */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH

/* The program code and other data goes into FLASH */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)

KEEP (*(.init))
KEEP (*(.fini))

. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH

/* Constant data goes into FLASH */
.rodata :
{
. = ALIGN(4);
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
. = ALIGN(4);
} >FLASH

.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : {
__exidx_start = .;
*(.ARM.exidx*)
__exidx_end = .;
} >FLASH

.preinit_array :
{
PROVIDE_HIDDEN (__preinit_array_start = .);
KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .);
} >FLASH
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);
} >FLASH
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT(.fini_array.*)))
KEEP (*(.fini_array*))
PROVIDE_HIDDEN (__fini_array_end = .);
} >FLASH

/* used by the startup to initialize data */
_sidata = LOADADDR(.data);

/* Initialized data sections goes into RAM, load LMA copy after code */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */

. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH

_siccmram = LOADADDR(.ccmram);

/* CCM-RAM section
*
* IMPORTANT NOTE!
* If initialized variables will be placed in this section,
* the startup code needs to be modified to copy the init-values.
*/
.ccmram :
{
. = ALIGN(4);
_sccmram = .; /* create a global symbol at ccmram start */
*(.ccmram)
*(.ccmram*)

. = ALIGN(4);
_eccmram = .; /* create a global symbol at ccmram end */
} >CCMRAM AT> FLASH


/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)

. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
__bss_end__ = _ebss;
} >RAM

/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack :
{
. = ALIGN(8);
PROVIDE ( end = . );
PROVIDE ( _end = . );
. = . + _Min_Heap_Size;
. = . + _Min_Stack_Size;
. = ALIGN(8);
} >RAM



/* Remove information from the standard libraries */
/DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
}

.ARM.attributes 0 : { *(.ARM.attributes) }
}

/************************ (C) COPYRIGHT iota2 ************END OF FILE**********/

55 changes: 55 additions & 0 deletions app/inc/main.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* @date 07-09-2019
* @author iota square <i2>
* _ _ ___
* (_) | | |__ \.
* _ ___ | |_ __ _ ) |
* | |/ _ \| __/ _` | / /
* | | (_) | || (_| |/ /_
* |_|\___/ \__\__,_|____|
*
* @License GNU GPU v3
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Free Software, Hell Yeah!
*
**/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx.h"
#include "stm32f4xx_conf.h"

/*
* This is the IOTA2-CONN-EMB SW version in format MAJOR.MINOR.HOTFIX
* Note that Hotfix is 16 bit and Minor and Major is 8 bit.
*/
#define IOTA2_CONN_EMB_MAJOR_VERSION_NUMBER (1) //a value between 0-255
#define IOTA2_CONN_EMB_MINOR_VERSION_NUMBER (0) //a value between 0-255
#define IOTA2_CONN_EMB_HOTFIX_VERSION_NUMBER (0) //a value between 0-65535

/* Exported define -----------------------------------------------------------*/
#define LED1_PIN GPIO_Pin_8
#define LED2_PIN GPIO_Pin_9

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT iota2 ************END OF FILE**********/

Loading

0 comments on commit b7f2d03

Please sign in to comment.