Skip to content

Commit

Permalink
Merge branch 'release/v1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Sep 16, 2017
2 parents 15ce6b6 + 020eaab commit b968b62
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 17 deletions.
23 changes: 23 additions & 0 deletions boards/flipnclickmz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"build": {
"core": "pic32",
"extra_flags": "-D_BOARD_PIC32MZ_FLIP_N_CLICK_",
"f_cpu": "252000000L",
"ldscript": "MZ-application-32MZ2048ECX.ld",
"mcu": "32MZ2048EFH100",
"variant": "FlipNClick_MZ"
},
"frameworks": [
"arduino"
],
"name": "MikroElektronika Flip N Click MZ",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 2080768,
"protocol": "stk500v2",
"require_upload_port": true,
"speed": 115200
},
"url": "https://shop.mikroe.com/flipclick-pic32mz",
"vendor": "MikroElektronika"
}
23 changes: 23 additions & 0 deletions boards/nofire.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"build": {
"core": "pic32",
"extra_flags": "-D_BOARD_PONTECH_NOFIRE_",
"f_cpu": "200000000UL",
"ldscript": "MZ-application-32MZ2048ECX.ld",
"mcu": "32MZ2048EFG100",
"variant": "PONTECH_NoFire"
},
"frameworks": [
"arduino"
],
"name": "Pontech NoFire",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 2080768,
"protocol": "stk500v2",
"require_upload_port": true,
"speed": 115200
},
"url": "http://www.pontech.com/products",
"vendor": "Pontech"
}
10 changes: 5 additions & 5 deletions boards/quick240_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
"f_cpu": "80000000L",
"ldscript": "chipKIT-application-32MX795F512.ld",
"mcu": "32MX795F512L",
"variant": "quicK240"
"variant": "PONTECH_Quick240"
},
"frameworks": [
"arduino"
],
"name": "PONTECH quicK240",
"name": "Pontech Quick240",
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 520192,
"protocol": "stk500v2",
"require_upload_port": true,
"speed": 115200
},
"url": "http://quick240.com/quicki/",
"vendor": "PONTECH"
}
"url": "http://chipkit.net/wpcproduct/pontech-quick240/",
"vendor": "Pontech"
}
8 changes: 4 additions & 4 deletions builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@

env.Append(
CPPDEFINES=[
("ARDUINO", int(FRAMEWORK_VERSION.split(".")[1])),
"ARDUINO_ARCH_PIC32"
("ARDUINO", 10803),
"ARDUINO_ARCH_PIC32",
("IDE", "Arduino")
],

CPPPATH=[
Expand All @@ -51,8 +52,7 @@
],

LINKFLAGS=[
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "cpp-startup.S"),
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "crti.S")
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "cpp-startup.S")
],

LIBSOURCE_DIRS=[
Expand Down
15 changes: 9 additions & 6 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,29 @@

env.Append(
BUILDERS=dict(
ElfToEep=Builder(
ElfToHex=Builder(
action=env.VerboseAction(" ".join([
"pic32-bin2hex",
"-a", "$SOURCES"
]), "Building $TARGET"),
suffix=".hex"
),

ElfToHex=Builder(
ElfToEep=Builder(
action=env.VerboseAction(" ".join([
"$OBJCOPY",
"-O",
"ihex",
"-R",
"-j",
".eeprom",
'--set-section-flags=.eeprom="alloc,load"',
"--no-change-warnings",
"--change-section-lma",
".eeprom=0",
"$SOURCES",
"$TARGET"
]), "Building $TARGET"),
suffix=".hex"
)
suffix=".eep"
),
)
)

Expand Down
5 changes: 5 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ board = uno_pic32
platform = microchippic32
framework = arduino
board = chipkit_wifire

[env:flipnclickmz]
platform = microchippic32
framework = arduino
board = flipnclickmz
5 changes: 5 additions & 0 deletions examples/arduino-internal-libs/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ board = uno_pic32
platform = microchippic32
framework = arduino
board = chipkit_wifire

[env:nofire]
platform = microchippic32
framework = arduino
board = nofire
4 changes: 2 additions & 2 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-microchippic32.git"
},
"version": "1.4.1",
"version": "1.5.0",
"packageRepositories": [
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
"http://dl.platformio.org/packages/manifest.json"
Expand All @@ -31,7 +31,7 @@
"framework-arduinomicrochippic32": {
"type": "framework",
"optional": true,
"version": "~1.10301.0"
"version": "~1.10403.0"
},
"tool-pic32prog": {
"type": "uploader",
Expand Down

0 comments on commit b968b62

Please sign in to comment.