Skip to content

Commit b968b62

Browse files
committed
Merge branch 'release/v1.5.0'
2 parents 15ce6b6 + 020eaab commit b968b62

File tree

8 files changed

+76
-17
lines changed

8 files changed

+76
-17
lines changed

boards/flipnclickmz.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"build": {
3+
"core": "pic32",
4+
"extra_flags": "-D_BOARD_PIC32MZ_FLIP_N_CLICK_",
5+
"f_cpu": "252000000L",
6+
"ldscript": "MZ-application-32MZ2048ECX.ld",
7+
"mcu": "32MZ2048EFH100",
8+
"variant": "FlipNClick_MZ"
9+
},
10+
"frameworks": [
11+
"arduino"
12+
],
13+
"name": "MikroElektronika Flip N Click MZ",
14+
"upload": {
15+
"maximum_ram_size": 524288,
16+
"maximum_size": 2080768,
17+
"protocol": "stk500v2",
18+
"require_upload_port": true,
19+
"speed": 115200
20+
},
21+
"url": "https://shop.mikroe.com/flipclick-pic32mz",
22+
"vendor": "MikroElektronika"
23+
}

boards/nofire.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"build": {
3+
"core": "pic32",
4+
"extra_flags": "-D_BOARD_PONTECH_NOFIRE_",
5+
"f_cpu": "200000000UL",
6+
"ldscript": "MZ-application-32MZ2048ECX.ld",
7+
"mcu": "32MZ2048EFG100",
8+
"variant": "PONTECH_NoFire"
9+
},
10+
"frameworks": [
11+
"arduino"
12+
],
13+
"name": "Pontech NoFire",
14+
"upload": {
15+
"maximum_ram_size": 524288,
16+
"maximum_size": 2080768,
17+
"protocol": "stk500v2",
18+
"require_upload_port": true,
19+
"speed": 115200
20+
},
21+
"url": "http://www.pontech.com/products",
22+
"vendor": "Pontech"
23+
}

boards/quick240_usb.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"f_cpu": "80000000L",
66
"ldscript": "chipKIT-application-32MX795F512.ld",
77
"mcu": "32MX795F512L",
8-
"variant": "quicK240"
8+
"variant": "PONTECH_Quick240"
99
},
1010
"frameworks": [
1111
"arduino"
1212
],
13-
"name": "PONTECH quicK240",
13+
"name": "Pontech Quick240",
1414
"upload": {
1515
"maximum_ram_size": 131072,
1616
"maximum_size": 520192,
1717
"protocol": "stk500v2",
1818
"require_upload_port": true,
1919
"speed": 115200
2020
},
21-
"url": "http://quick240.com/quicki/",
22-
"vendor": "PONTECH"
23-
}
21+
"url": "http://chipkit.net/wpcproduct/pontech-quick240/",
22+
"vendor": "Pontech"
23+
}

builder/frameworks/arduino.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737

3838
env.Append(
3939
CPPDEFINES=[
40-
("ARDUINO", int(FRAMEWORK_VERSION.split(".")[1])),
41-
"ARDUINO_ARCH_PIC32"
40+
("ARDUINO", 10803),
41+
"ARDUINO_ARCH_PIC32",
42+
("IDE", "Arduino")
4243
],
4344

4445
CPPPATH=[
@@ -51,8 +52,7 @@
5152
],
5253

5354
LINKFLAGS=[
54-
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "cpp-startup.S"),
55-
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "crti.S")
55+
join(FRAMEWORK_DIR, "cores", BUILD_CORE, "cpp-startup.S")
5656
],
5757

5858
LIBSOURCE_DIRS=[

builder/main.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,26 +93,29 @@
9393

9494
env.Append(
9595
BUILDERS=dict(
96-
ElfToEep=Builder(
96+
ElfToHex=Builder(
9797
action=env.VerboseAction(" ".join([
9898
"pic32-bin2hex",
9999
"-a", "$SOURCES"
100100
]), "Building $TARGET"),
101101
suffix=".hex"
102102
),
103-
104-
ElfToHex=Builder(
103+
ElfToEep=Builder(
105104
action=env.VerboseAction(" ".join([
106105
"$OBJCOPY",
107106
"-O",
108107
"ihex",
109-
"-R",
108+
"-j",
110109
".eeprom",
110+
'--set-section-flags=.eeprom="alloc,load"',
111+
"--no-change-warnings",
112+
"--change-section-lma",
113+
".eeprom=0",
111114
"$SOURCES",
112115
"$TARGET"
113116
]), "Building $TARGET"),
114-
suffix=".hex"
115-
)
117+
suffix=".eep"
118+
),
116119
)
117120
)
118121

examples/arduino-blink/platformio.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ board = uno_pic32
7676
platform = microchippic32
7777
framework = arduino
7878
board = chipkit_wifire
79+
80+
[env:flipnclickmz]
81+
platform = microchippic32
82+
framework = arduino
83+
board = flipnclickmz

examples/arduino-internal-libs/platformio.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ board = uno_pic32
1616
platform = microchippic32
1717
framework = arduino
1818
board = chipkit_wifire
19+
20+
[env:nofire]
21+
platform = microchippic32
22+
framework = arduino
23+
board = nofire

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "git",
1313
"url": "https://github.com/platformio/platform-microchippic32.git"
1414
},
15-
"version": "1.4.1",
15+
"version": "1.5.0",
1616
"packageRepositories": [
1717
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1818
"http://dl.platformio.org/packages/manifest.json"
@@ -31,7 +31,7 @@
3131
"framework-arduinomicrochippic32": {
3232
"type": "framework",
3333
"optional": true,
34-
"version": "~1.10301.0"
34+
"version": "~1.10403.0"
3535
},
3636
"tool-pic32prog": {
3737
"type": "uploader",

0 commit comments

Comments
 (0)