From f8629785a0808352d8fa923ead10bcc049fa5b9c Mon Sep 17 00:00:00 2001 From: Brian Schmalz Date: Wed, 21 Oct 2015 18:29:16 -0500 Subject: [PATCH] Updated compiler command line in variant level boards.txt files for boards that over-ride the defaults from platforms.txt. Deleted boards.txt so that it doesn't confuse people in MPIDE anymore. Added _disableSeconaryOscillator() to WSystem.c, to be used in _board_init(); in the variant files for boards that need to turn off their secondary oscillators. This was part of the removal of dependance on plib.h. --- hardware/pic32/boards.txt | 1255 ----------------- hardware/pic32/cores/pic32/WSystem.c | 40 + hardware/pic32/cores/pic32/wiring.h | 1 + .../pic32/variants/Cerebot_32MX4/boards.txt | 2 + .../pic32/variants/Cerebot_MX3cK/boards.txt | 8 +- .../variants/Cerebot_MX3cK_512/boards.txt | 4 +- .../pic32/variants/Cerebot_MX4cK/boards.txt | 4 + .../pic32/variants/ChipKIT_Pi/Board_Data.c | 7 +- hardware/pic32/variants/ChipKIT_Pi/boards.txt | 14 +- hardware/pic32/variants/Cmod/boards.txt | 4 +- hardware/pic32/variants/DP32/Board_Data.c | 7 +- hardware/pic32/variants/DP32/boards.txt | 7 +- .../pic32/variants/Default_100/boards.txt | 3 + hardware/pic32/variants/Default_64/boards.txt | 10 +- .../pic32/variants/Fubarino_Mini/boards.txt | 47 +- .../pic32/variants/Fubarino_SD/boards.txt | 3 + .../variants/Olimex_PIC32_Pinguino/boards.txt | 3 + hardware/pic32/variants/Uno32/boards.txt | 7 +- .../variants/Uno32_Pmod_Shield/boards.txt | 7 +- hardware/pic32/variants/openbci/Board_Data.c | 7 +- hardware/pic32/variants/openbci/boards.txt | 4 +- hardware/pic32/variants/quicK240/Board_Data.c | 20 +- hardware/pic32/variants/uC32/boards.txt | 7 +- .../variants/uC32_Pmod_Shield/boards.txt | 7 +- 24 files changed, 97 insertions(+), 1381 deletions(-) delete mode 100644 hardware/pic32/boards.txt diff --git a/hardware/pic32/boards.txt b/hardware/pic32/boards.txt deleted file mode 100644 index 5fc46c278..000000000 --- a/hardware/pic32/boards.txt +++ /dev/null @@ -1,1255 +0,0 @@ -############################################################ -cerebot32mx4.name=Cerebot 32MX4 -cerebot32mx4.group=Cerebot - -# new items -cerebot32mx4.platform=pic32 -cerebot32mx4.board=_BOARD_CEREBOT_32MX4_ -cerebot32mx4.board.define= -cerebot32mx4.ccflags=ffff -cerebot32mx4.ldscript=chipKIT-application-32MX460F512.ld -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cerebot32mx4.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cerebot32mx4.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -# end of new items - -cerebot32mx4.upload.protocol=stk500v2 -cerebot32mx4.upload.maximum_size=520192 -cerebot32mx4.upload.speed=115200 - -cerebot32mx4.bootloader.low_fuses=0xff -cerebot32mx4.bootloader.high_fuses=0xdd -cerebot32mx4.bootloader.extended_fuses=0x00 -cerebot32mx4.bootloader.path=not-supported -cerebot32mx4.bootloader.file=not-supported -cerebot32mx4.bootloader.unlock_bits=0x3F -cerebot32mx4.bootloader.lock_bits=0x0F - -cerebot32mx4.build.mcu=32MX460F512L -cerebot32mx4.build.f_cpu=80000000L -cerebot32mx4.build.core=pic32 -cerebot32mx4.build.variant=Cerebot_32MX4 -#cerebot32mx4.upload.using= - -############################################################ -############################################################ -cerebot32mx7.name=Cerebot 32MX7 -cerebot32mx7.group=Cerebot - -# new items -cerebot32mx7.platform=pic32 -cerebot32mx7.board=_BOARD_CEREBOT_32MX7_ -cerebot32mx7.board.define= -cerebot32mx7.ccflags=ffff -cerebot32mx7.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -cerebot32mx7.upload.protocol=stk500v2 -cerebot32mx7.upload.maximum_size=520192 -cerebot32mx7.upload.speed=115200 - -cerebot32mx7.bootloader.low_fuses=0xff -cerebot32mx7.bootloader.high_fuses=0xdd -cerebot32mx7.bootloader.extended_fuses=0x00 -cerebot32mx7.bootloader.path=not-supported -cerebot32mx7.bootloader.file=not-supported -cerebot32mx7.bootloader.unlock_bits=0x3F -cerebot32mx7.bootloader.lock_bits=0x0F - -cerebot32mx7.build.mcu=32MX795F512L -cerebot32mx7.build.f_cpu=80000000L -cerebot32mx7.build.core=pic32 -cerebot32mx7.build.variant=Cerebot_32MX7 -#cerebot32mx7.upload.using= - -############################################################ -############################################################ -cerebot_mx3ck.name=Cerebot MX3cK -cerebot_mx3ck.group=Cerebot - -# new items -cerebot_mx3ck.platform=pic32 -cerebot_mx3ck.board=_BOARD_CEREBOT_MX3CK_ -cerebot_mx3ck.board.define= -cerebot_mx3ck.ccflags=ffff -cerebot_mx3ck.ldscript=chipKIT-application-32MX320F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cerebot_mx3ck.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cerebot_mx3ck.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -cerebot_mx3ck.upload.protocol=stk500v2 -cerebot_mx3ck.upload.maximum_size=126976 -cerebot_mx3ck.upload.speed=115200 - -cerebot_mx3ck.bootloader.low_fuses=0xff -cerebot_mx3ck.bootloader.high_fuses=0xdd -cerebot_mx3ck.bootloader.extended_fuses=0x00 -cerebot_mx3ck.bootloader.path=not-supported -cerebot_mx3ck.bootloader.file=not-supported -cerebot_mx3ck.bootloader.unlock_bits=0x3F -cerebot_mx3ck.bootloader.lock_bits=0x0F - -cerebot_mx3ck.build.mcu=32MX320F128H -cerebot_mx3ck.build.f_cpu=80000000L -cerebot_mx3ck.build.core=pic32 -cerebot_mx3ck.build.variant=Cerebot_MX3cK -#cerebot_mx3ck.upload.using= - -############################################################ -chipkit_mx3.name=chipKIT MX3 -chipkit_mx3.group=chipKIT - -# new items -chipkit_mx3.platform=pic32 -chipkit_mx3.board=_BOARD_CEREBOT_MX3CK_ -chipkit_mx3.board.define= -chipkit_mx3.ccflags=ffff -chipkit_mx3.ldscript=chipKIT-application-32MX320F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_mx3.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_mx3.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_mx3.upload.protocol=stk500v2 -chipkit_mx3.upload.maximum_size=126976 -chipkit_mx3.upload.speed=115200 - -chipkit_mx3.bootloader.low_fuses=0xff -chipkit_mx3.bootloader.high_fuses=0xdd -chipkit_mx3.bootloader.extended_fuses=0x00 -chipkit_mx3.bootloader.path=not-supported -chipkit_mx3.bootloader.file=not-supported -chipkit_mx3.bootloader.unlock_bits=0x3F -chipkit_mx3.bootloader.lock_bits=0x0F - -chipkit_mx3.build.mcu=32MX320F128H -chipkit_mx3.build.f_cpu=80000000L -chipkit_mx3.build.core=pic32 -chipkit_mx3.build.variant=Cerebot_MX3cK -#chipkit_mx3.upload.using= - -############################################################ -############################################################ -cerebot_mx3ck_512.name=Cerebot MX3cK 512 -cerebot_mx3ck_512.group=Cerebot - -# new items -cerebot_mx3ck_512.platform=pic32 -cerebot_mx3ck_512.board=_BOARD_CEREBOT_MX3CK_512_ -cerebot_mx3ck_512.board.define= -cerebot_mx3ck_512.ccflags=ffff -cerebot_mx3ck_512.ldscript=chipKIT-application-32MX340F512.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cerebot_mx3ck_512.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cerebot_mx3ck_512.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -cerebot_mx3ck_512.upload.protocol=stk500v2 -cerebot_mx3ck_512.upload.maximum_size=520192 -cerebot_mx3ck_512.upload.speed=115200 - -cerebot_mx3ck_512.bootloader.low_fuses=0xff -cerebot_mx3ck_512.bootloader.high_fuses=0xdd -cerebot_mx3ck_512.bootloader.extended_fuses=0x00 -cerebot_mx3ck_512.bootloader.path=not-supported -cerebot_mx3ck_512.bootloader.file=not-supported -cerebot_mx3ck_512.bootloader.unlock_bits=0x3F -cerebot_mx3ck_512.bootloader.lock_bits=0x0F - -cerebot_mx3ck_512.build.mcu=32MX340F512H -cerebot_mx3ck_512.build.f_cpu=80000000L -cerebot_mx3ck_512.build.core=pic32 -cerebot_mx3ck_512.build.variant=Cerebot_MX3cK_512 -#chipkit_uc32.upload.using= - -############################################################ -############################################################ -cerebot_mx4ck.name=Cerebot MX4cK -cerebot_mx4ck.group=Cerebot - -# new items -cerebot_mx4ck.platform=pic32 -cerebot_mx4ck.board=_BOARD_CEREBOT_MX4CK_ -cerebot_mx4ck.board.define= -cerebot_mx4ck.ccflags=ffff -cerebot_mx4ck.ldscript=chipKIT-application-32MX460F512.ld -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cerebot_mx4ck.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cerebot_mx4ck.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -# end of new items - -cerebot_mx4ck.upload.protocol=stk500v2 -cerebot_mx4ck.upload.maximum_size=520192 -cerebot_mx4ck.upload.speed=115200 - -cerebot_mx4ck.bootloader.low_fuses=0xff -cerebot_mx4ck.bootloader.high_fuses=0xdd -cerebot_mx4ck.bootloader.extended_fuses=0x00 -cerebot_mx4ck.bootloader.path=not-supported -cerebot_mx4ck.bootloader.file=not-supported -cerebot_mx4ck.bootloader.unlock_bits=0x3F -cerebot_mx4ck.bootloader.lock_bits=0x0F - -cerebot_mx4ck.build.mcu=32MX460F512L -cerebot_mx4ck.build.f_cpu=80000000L -cerebot_mx4ck.build.core=pic32 -cerebot_mx4ck.build.variant=Cerebot_MX4cK -#cerebot_mx4ck.upload.using= - -############################################################ -chipkit_pro_mx4.name=chipKIT Pro MX4 -chipkit_pro_mx4.group=chipKIT - -# new items -chipkit_pro_mx4.platform=pic32 -chipkit_pro_mx4.board=_BOARD_CEREBOT_MX4CK_ -chipkit_pro_mx4.board.define= -chipkit_pro_mx4.ccflags=ffff -chipkit_pro_mx4.ldscript=chipKIT-application-32MX460F512.ld -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_pro_mx4.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_pro_mx4.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -# end of new items - -chipkit_pro_mx4.upload.protocol=stk500v2 -chipkit_pro_mx4.upload.maximum_size=520192 -chipkit_pro_mx4.upload.speed=115200 - -chipkit_pro_mx4.bootloader.low_fuses=0xff -chipkit_pro_mx4.bootloader.high_fuses=0xdd -chipkit_pro_mx4.bootloader.extended_fuses=0x00 -chipkit_pro_mx4.bootloader.path=not-supported -chipkit_pro_mx4.bootloader.file=not-supported -chipkit_pro_mx4.bootloader.unlock_bits=0x3F -chipkit_pro_mx4.bootloader.lock_bits=0x0F - -chipkit_pro_mx4.build.mcu=32MX460F512L -chipkit_pro_mx4.build.f_cpu=80000000L -chipkit_pro_mx4.build.core=pic32 -chipkit_pro_mx4.build.variant=Cerebot_MX4cK -#chipkit_pro_mx4.upload.using= - -############################################################ -############################################################ -cerebot_mx7ck.name=Cerebot MX7cK -cerebot_mx7ck.group=Cerebot - -# new items -cerebot_mx7ck.platform=pic32 -cerebot_mx7ck.board=_BOARD_CEREBOT_MX7CK_ -cerebot_mx7ck.board.define= -cerebot_mx7ck.ccflags=ffff -cerebot_mx7ck.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -cerebot_mx7ck.upload.protocol=stk500v2 -cerebot_mx7ck.upload.maximum_size=520192 -cerebot_mx7ck.upload.speed=115200 - -cerebot_mx7ck.bootloader.low_fuses=0xff -cerebot_mx7ck.bootloader.high_fuses=0xdd -cerebot_mx7ck.bootloader.extended_fuses=0x00 -cerebot_mx7ck.bootloader.path=not-supported -cerebot_mx7ck.bootloader.file=not-supported -cerebot_mx7ck.bootloader.unlock_bits=0x3F -cerebot_mx7ck.bootloader.lock_bits=0x0F - -cerebot_mx7ck.build.mcu=32MX795F512L -cerebot_mx7ck.build.f_cpu=80000000L -cerebot_mx7ck.build.core=pic32 -cerebot_mx7ck.build.variant=Cerebot_MX7cK -#cerebot_mx7ck.upload.using= - -############################################################ -chipkit_pro_mx7.name=chipKIT Pro MX7 -chipkit_pro_mx7.group=chipKIT - -# new items -chipkit_pro_mx7.platform=pic32 -chipkit_pro_mx7.board=_BOARD_CEREBOT_MX7CK_ -chipkit_pro_mx7.board.define= -chipkit_pro_mx7.ccflags=ffff -chipkit_pro_mx7.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -chipkit_pro_mx7.upload.protocol=stk500v2 -chipkit_pro_mx7.upload.maximum_size=520192 -chipkit_pro_mx7.upload.speed=115200 - -chipkit_pro_mx7.bootloader.low_fuses=0xff -chipkit_pro_mx7.bootloader.high_fuses=0xdd -chipkit_pro_mx7.bootloader.extended_fuses=0x00 -chipkit_pro_mx7.bootloader.path=not-supported -chipkit_pro_mx7.bootloader.file=not-supported -chipkit_pro_mx7.bootloader.unlock_bits=0x3F -chipkit_pro_mx7.bootloader.lock_bits=0x0F - -chipkit_pro_mx7.build.mcu=32MX795F512L -chipkit_pro_mx7.build.f_cpu=80000000L -chipkit_pro_mx7.build.core=pic32 -chipkit_pro_mx7.build.variant=Cerebot_MX7cK -#chipkit_pro_mx7.upload.using= - -############################################################ -############################################################ -chipkit_Pi.name=chipKIT Pi -chipkit_Pi.group=chipKIT - -# new items -chipkit_Pi.platform=pic32 -chipkit_Pi.board=_BOARD_CHIPKIT_PI_ -chipkit_Pi.ccflags=-Map="map.map" -chipkit_Pi.board.define= -chipkit_Pi.ldscript=chipKIT-application-32MX250F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_Pi.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_Pi.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_Pi.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -chipkit_Pi.upload.maximum_size=122880 -chipkit_Pi.upload.speed=115200 - -chipkit_Pi.bootloader.low_fuses=0xff -chipkit_Pi.bootloader.high_fuses=0xdd -chipkit_Pi.bootloader.extended_fuses=0x00 -chipkit_Pi.bootloader.path=not-supported -chipkit_Pi.bootloader.file=not-supported -chipkit_Pi.bootloader.unlock_bits=0x3F -chipkit_Pi.bootloader.lock_bits=0x0F - -chipkit_Pi.build.mcu=32MX250F128B -chipkit_Pi.build.f_cpu=40000000L -chipkit_Pi.build.core=pic32 -chipkit_Pi.build.variant=ChipKIT_Pi - -############################################################ -############################################################ -chipkit_Pi_USB_Serial.name=chipKIT Pi USB_Serial -chipkit_Pi_USB_Serial.group=chipKIT - -# new items -chipkit_Pi_USB_Serial.platform=pic32 -chipkit_Pi_USB_Serial.board=_BOARD_CHIPKIT_PI_ -chipkit_Pi_USB_Serial.board.define=-D_USE_USB_FOR_SERIAL_ -chipkit_Pi_USB_Serial.ccflags=-Map="map.map" -chipkit_Pi_USB_Serial.ldscript=chipKIT-application-32MX250F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_Pi_USB_Serial.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_Pi_USB_Serial.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_Pi_USB_Serial.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -chipkit_Pi_USB_Serial.upload.maximum_size=122880 -chipkit_Pi_USB_Serial.upload.speed=115200 - -chipkit_Pi_USB_Serial.bootloader.low_fuses=0xff -chipkit_Pi_USB_Serial.bootloader.high_fuses=0xdd -chipkit_Pi_USB_Serial.bootloader.extended_fuses=0x00 -chipkit_Pi_USB_Serial.bootloader.path=not-supported -chipkit_Pi_USB_Serial.bootloader.file=not-supported -chipkit_Pi_USB_Serial.bootloader.unlock_bits=0x3F -chipkit_Pi_USB_Serial.bootloader.lock_bits=0x0F - -chipkit_Pi_USB_Serial.build.mcu=32MX250F128B -chipkit_Pi_USB_Serial.build.f_cpu=40000000L -chipkit_Pi_USB_Serial.build.core=pic32 -chipkit_Pi_USB_Serial.build.variant=ChipKIT_Pi - -############################################################ -############################################################ -cmod.name=chipKIT Cmod -cmod.group=chipKIT - -# new items -cmod.platform=pic32 -cmod.board=_BOARD_CMOD_ -cmod.board.define= -cmod.ccflags=ffff -cmod.ldscript=chipKIT-application-32MX150F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -cmod.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM -cmod.upload.maximum_size=126976 -cmod.upload.speed=115200 - -cmod.bootloader.low_fuses=0xff -cmod.bootloader.high_fuses=0xdd -cmod.bootloader.extended_fuses=0x00 -cmod.bootloader.path=not-supported -cmod.bootloader.file=not-supported -cmod.bootloader.unlock_bits=0x3F -cmod.bootloader.lock_bits=0x0F - -cmod.build.mcu=32MX150F128D -cmod.build.f_cpu=40000000L -cmod.build.core=pic32 -cmod.build.variant=Cmod - -############################################################ -############################################################ -CUI32stem.name=CUI32stem -CUI32stem.group=CUI32 - -# new items -CUI32stem.platform=pic32 -CUI32stem.board=_BOARD_CUI32_ -CUI32stem.board.define=-D_USE_USB_FOR_SERIAL_ -CUI32stem.ccflags=ffff -CUI32stem.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -CUI32stem.upload.protocol=stk500v2 -CUI32stem.upload.maximum_size=520192 -CUI32stem.upload.speed=115200 - -CUI32stem.bootloader.low_fuses=0xff -CUI32stem.bootloader.high_fuses=0xdd -CUI32stem.bootloader.extended_fuses=0x00 -CUI32stem.bootloader.path=not-supported -CUI32stem.bootloader.file=not-supported -CUI32stem.bootloader.unlock_bits=0x3F -CUI32stem.bootloader.lock_bits=0x0F - -CUI32stem.build.mcu=32MX795F512H -CUI32stem.build.f_cpu=80000000L -CUI32stem.build.core=pic32 -CUI32stem.build.variant=CUI32stem -#CUI32stem.upload.using= - - -############################################################ -############################################################ -ubw32_mx460.name=Pic32 UBW32-MX460 -ubw32_mx460.group=UBW32 - -# new items -ubw32_mx460.platform=pic32 -ubw32_mx460.board=_BOARD_UBW32_MX460_ -ubw32_mx460.board.define=-D_USE_USB_FOR_SERIAL_ -ubw32_mx460.ccflags=-Map="map.map" -ubw32_mx460.ldscript=chipKIT-application-32MX460F512.ld -ubw32_mx460.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -ubw32_mx460.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -ubw32_mx460.upload.protocol=stk500v2 -ubw32_mx460.upload.maximum_size=520192 -ubw32_mx460.upload.speed=115200 - -ubw32_mx460.bootloader.low_fuses=0xff -ubw32_mx460.bootloader.high_fuses=0xdd -ubw32_mx460.bootloader.extended_fuses=0x00 -ubw32_mx460.bootloader.path=not-supported -ubw32_mx460.bootloader.file=not-supported -ubw32_mx460.bootloader.unlock_bits=0x3F -ubw32_mx460.bootloader.lock_bits=0x0F - -ubw32_mx460.build.mcu=32MX460F512L -ubw32_mx460.build.f_cpu=80000000L -ubw32_mx460.build.core=pic32 -ubw32_mx460.build.variant=Default_100 -#ubw32_mx460.upload.using= - -############################################################ -ubw32_mx795.name=Pic32 UBW32-MX795 -ubw32_mx795.group=UBW32 - -# new items -ubw32_mx795.platform=pic32 -ubw32_mx795.board=_BOARD_UBW32_MX795_ -ubw32_mx795.board.define=-D_USE_USB_FOR_SERIAL_ -ubw32_mx795.ccflags=ffff -ubw32_mx795.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -ubw32_mx795.upload.protocol=stk500v2 -ubw32_mx795.upload.maximum_size=520192 -ubw32_mx795.upload.speed=115200 - -ubw32_mx795.bootloader.low_fuses=0xff -ubw32_mx795.bootloader.high_fuses=0xdd -ubw32_mx795.bootloader.extended_fuses=0x00 -ubw32_mx795.bootloader.path=not-supported -ubw32_mx795.bootloader.file=not-supported -ubw32_mx795.bootloader.unlock_bits=0x3F -ubw32_mx795.bootloader.lock_bits=0x0F - -ubw32_mx795.build.mcu=32MX795F512L -ubw32_mx795.build.f_cpu=80000000L -ubw32_mx795.build.core=pic32 -ubw32_mx795.build.variant=Default_100 -#ubw32_mx795.upload.using= - -############################################################ -############################################################ -cui32.name=Pic32 CUI32-Development Stick -cui32.group=CUI32 - -# new items -cui32.platform=pic32 -cui32.board=_BOARD_CUI32_ -cui32.board.define=-D_USE_USB_FOR_SERIAL_ -cui32.ccflags=ffff -cui32.ldscript=chipKIT-application-32MX440F512.ld -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -cui32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -cui32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -# end of new items - -cui32.upload.protocol=stk500v2 -cui32.upload.maximum_size=520192 -cui32.upload.speed=115200 - -cui32.bootloader.low_fuses=0xff -cui32.bootloader.high_fuses=0xdd -cui32.bootloader.extended_fuses=0x00 -cui32.bootloader.path=not-supported -cui32.bootloader.file=not-supported -cui32.bootloader.unlock_bits=0x3F -cui32.bootloader.lock_bits=0x0F - -cui32.build.mcu=32MX440F512H -cui32.build.f_cpu=80000000L -cui32.build.core=pic32 -cui32.build.variant=Default_64 -#cui32.upload.using= - -############################################################ -usbono_pic32.name=PONTECH UAV100 -usbono_pic32.group=PONTECH - -# new items -usbono_pic32.platform=pic32 -usbono_pic32.board=_BOARD_PONTECH_UAV100_ -usbono_pic32.compiler.define=-D_USE_USB_FOR_SERIAL_ -Danything=1 -usbono_pic32.ccflags=ffff -usbono_pic32.ldscript=chipKIT-application-32MX440F512.ld -#chipKIT-UNO32-application-32MX320F128L.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -usbono_pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -usbono_pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -usbono_pic32.upload.protocol=stk500v2 -usbono_pic32.upload.maximum_size=520192 -usbono_pic32.upload.speed=115200 - -usbono_pic32.bootloader.low_fuses=0xff -usbono_pic32.bootloader.high_fuses=0xdd -usbono_pic32.bootloader.extended_fuses=0x00 -usbono_pic32.bootloader.path=not-supported -usbono_pic32.bootloader.file=not-supported -usbono_pic32.bootloader.unlock_bits=0x3F -usbono_pic32.bootloader.lock_bits=0x0F - -usbono_pic32.build.mcu=32MX440F512H -usbono_pic32.build.f_cpu=80000000L -usbono_pic32.build.core=pic32 -usbono_pic32.build.variant=Default_64 -#usbono_pic32.build.variant=Uno32 -#usbono_pic32.upload.using= - -############################################################ -############################################################ -chipkit_DP32.name=chipKIT DP32 -chipkit_DP32.group=chipKIT - -# new items -chipkit_DP32.platform=pic32 -chipkit_DP32.board=_BOARD_DP32_ -chipkit_DP32.board.define=-D_USE_USB_FOR_SERIAL_ -chipkit_DP32.ccflags=-Map="map.map" -chipkit_DP32.ldscript=chipKIT-application-32MX250F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_DP32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_DP32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_DP32.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -chipkit_DP32.upload.maximum_size=122880 -chipkit_DP32.upload.speed=115200 - -chipkit_DP32.bootloader.low_fuses=0xff -chipkit_DP32.bootloader.high_fuses=0xdd -chipkit_DP32.bootloader.extended_fuses=0x00 -chipkit_DP32.bootloader.path=not-supported -chipkit_DP32.bootloader.file=not-supported -chipkit_DP32.bootloader.unlock_bits=0x3F -chipkit_DP32.bootloader.lock_bits=0x0F - -chipkit_DP32.build.mcu=32MX250F128B -chipkit_DP32.build.f_cpu=40000000L -chipkit_DP32.build.core=pic32 -chipkit_DP32.build.variant=DP32 - -############################################################ -############################################################ -fubarino_mini_dev.name=Fubarino Mini (dev) -fubarino_mini_dev.group=Fubarino - -fubarino_mini_dev.platform=pic32 -fubarino_mini_dev.board=_BOARD_FUBARINO_MINI_ -fubarino_mini_dev.board.define=-D_USE_USB_FOR_SERIAL_ -fubarino_mini_dev.ccflags=-Map="map.map" -fubarino_mini_dev.ldscript=chipKIT-application-32MX250F128.ld - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -fubarino_mini_dev.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -fubarino_mini_dev.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -fubarino_mini_dev.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -fubarino_mini_dev.upload.maximum_size=122880 -fubarino_mini_dev.upload.speed=115200 - -fubarino_mini_dev.bootloader.low_fuses=0xff -fubarino_mini_dev.bootloader.high_fuses=0xdd -fubarino_mini_dev.bootloader.extended_fuses=0x00 -fubarino_mini_dev.bootloader.path=not-supported -fubarino_mini_dev.bootloader.file=not-supported -fubarino_mini_dev.bootloader.unlock_bits=0x3F -fubarino_mini_dev.bootloader.lock_bits=0x0F - -fubarino_mini_dev.build.mcu=32MX250F128D -fubarino_mini_dev.build.f_cpu=40000000L -fubarino_mini_dev.build.core=pic32 -fubarino_mini_dev.build.variant=Fubarino_Mini - -############################################################ -fubarino_mini.name=Fubarino Mini -fubarino_mini.group=Fubarino - -fubarino_mini.platform=pic32 -fubarino_mini.board=_BOARD_FUBARINO_MINI_ -fubarino_mini.board.define=-D_USE_USB_FOR_SERIAL_ -fubarino_mini.ccflags=-Map="map.map" -fubarino_mini.ldscript=chipKIT-application-32MX250F128.ld - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -fubarino_mini.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -fubarino_mini.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -fubarino_mini.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -fubarino_mini.upload.maximum_size=122880 -fubarino_mini.upload.speed=115200 - -fubarino_mini.bootloader.low_fuses=0xff -fubarino_mini.bootloader.high_fuses=0xdd -fubarino_mini.bootloader.extended_fuses=0x00 -fubarino_mini.bootloader.path=not-supported -fubarino_mini.bootloader.file=not-supported -fubarino_mini.bootloader.unlock_bits=0x3F -fubarino_mini.bootloader.lock_bits=0x0F - -fubarino_mini.build.mcu=32MX250F128D -fubarino_mini.build.f_cpu=48000000L -fubarino_mini.build.core=pic32 -fubarino_mini.build.variant=Fubarino_Mini - -############################################################ -#fubarino_mini_dbg.name=FubarinoMini Debug -# -## new items -#fubarino_mini_dbg.platform=pic32 -#fubarino_mini_dbg.board=_BOARD_FUBARINO_MINI_ -#fubarino_mini_dbg.board.define=-D_USE_USB_FOR_SERIAL_ -#fubarino_mini_dbg.ccflags=-Map="map.map" -#fubarino_mini_dbg.ldscript=chipKIT-application-32MX250F128-nobootloader.ld -## end of new items -# -## Use a high -Gnum for devices that have 64K of RAM or less -## For -G1024, objects 1024 bytes or smaller will be accessed by -## gp-relative addressing -#fubarino_mini_dbg.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -#fubarino_mini_dbg.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -#fubarino_mini_dbg.upload.protocol=stk500v2 -## 128KB - 4K for EEPROM - 4K for bootloader -#fubarino_mini_dbg.upload.maximum_size=122880 -#fubarino_mini_dbg.upload.speed=115200 -# -#fubarino_mini_dbg.bootloader.low_fuses=0xff -#fubarino_mini_dbg.bootloader.high_fuses=0xdd -#fubarino_mini_dbg.bootloader.extended_fuses=0x00 -#fubarino_mini_dbg.bootloader.path=not-supported -#fubarino_mini_dbg.bootloader.file=not-supported -#fubarino_mini_dbg.bootloader.unlock_bits=0x3F -#fubarino_mini_dbg.bootloader.lock_bits=0x0F -# -#fubarino_mini_dbg.build.mcu=32MX250F128D -#fubarino_mini_dbg.build.f_cpu=40000000L -#fubarino_mini_dbg.build.core=pic32 -#fubarino_mini_dbg.build.variant=Fubarino_Mini -# -############################################################ -############################################################ -fubarino_sd_seeed.name=Fubarino SD (Seeed/1.4) -fubarino_sd_seeed.group=Fubarino - -fubarino_sd_seeed.platform=pic32 -fubarino_sd_seeed.board=_BOARD_FUBARINO_SD_ -fubarino_sd_seeed.board.define=-D_USE_USB_FOR_SERIAL_ -fubarino_sd_seeed.ccflags=ffff -fubarino_sd_seeed.ldscript=chipKIT-application-32MX440F256.ld - -fubarino_sd_seeed.upload.protocol=stk500v2 -fubarino_sd_seeed.upload.maximum_size=258048 -fubarino_sd_seeed.upload.speed=115200 -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -fubarino_sd_seeed.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -fubarino_sd_seeed.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -fubarino_sd_seeed.bootloader.low_fuses=0xff -fubarino_sd_seeed.bootloader.high_fuses=0xdd -fubarino_sd_seeed.bootloader.extended_fuses=0x00 -fubarino_sd_seeed.bootloader.path=not-supported -fubarino_sd_seeed.bootloader.file=not-supported -fubarino_sd_seeed.bootloader.unlock_bits=0x3F -fubarino_sd_seeed.bootloader.lock_bits=0x0F - -fubarino_sd_seeed.build.mcu=32MX440F256H -fubarino_sd_seeed.build.f_cpu=80000000L -fubarino_sd_seeed.build.core=pic32 -fubarino_sd_seeed.build.variant=Fubarino_SD - -############################################################ -fubarino_sd.name=Fubarino SD (1.5) -fubarino_sd.group=Fubarino - -fubarino_sd.platform=pic32 -fubarino_sd.board=_BOARD_FUBARINO_SD_ -fubarino_sd.board.define=-D_USE_USB_FOR_SERIAL_ -fubarino_sd.ccflags=ffff -fubarino_sd.ldscript=chipKIT-application-32MX795F512.ld - -fubarino_sd.upload.protocol=stk500v2 -fubarino_sd.upload.maximum_size=520192 -fubarino_sd.upload.speed=115200 - -fubarino_sd.bootloader.low_fuses=0xff -fubarino_sd.bootloader.high_fuses=0xdd -fubarino_sd.bootloader.extended_fuses=0x00 -fubarino_sd.bootloader.path=not-supported -fubarino_sd.bootloader.file=not-supported -fubarino_sd.bootloader.unlock_bits=0x3F -fubarino_sd.bootloader.lock_bits=0x0F - -fubarino_sd.build.mcu=32MX795F512H -fubarino_sd.build.f_cpu=80000000L -fubarino_sd.build.core=pic32 -fubarino_sd.build.variant=Fubarino_SD - -############################################################ -############################################################ -Fubarino_SDZ.name=Fuarbino SDZ -Fubarino_SDZ.group=Fubarino - - -# new items -Fubarino_SDZ.platform=pic32 -Fubarino_SDZ.board=_BOARD_FUBARINO_SDZ_ -Fubarino_SDZ.board.define= -Fubarino_SDZ.ccflags=ffff -Fubarino_SDZ.ldscript=MZ-application-32MZ2048ECX.ld -# end of new items - -Fubarino_SDZ.upload.protocol=stk500v2 -Fubarino_SDZ.upload.maximum_size=2093056 -Fubarino_SDZ.upload.speed=115200 - -Fubarino_SDZ.bootloader.low_fuses=0xff -Fubarino_SDZ.bootloader.high_fuses=0xdd -Fubarino_SDZ.bootloader.extended_fuses=0x00 -Fubarino_SDZ.bootloader.path=not-supported -Fubarino_SDZ.bootloader.file=not-supported -Fubarino_SDZ.bootloader.unlock_bits=0x3F -Fubarino_SDZ.bootloader.lock_bits=0x0F - -Fubarino_SDZ.build.mcu=32MZ2048ECH064 -Fubarino_SDZ.build.f_cpu=200000000UL -Fubarino_SDZ.build.core=pic32 -Fubarino_SDZ.ldcommon=chipKIT-application-COMMON-MZ.ld -Fubarino_SDZ.build.variant=Fubarino_SDZ -#Fubarino_SDZ.upload.using=avrdude1 - -############################################################ -############################################################ -mega_pic32.name=chipKIT MAX32 -mega_pic32.group=chipKIT - -# new items -mega_pic32.platform=pic32 -mega_pic32.board=_BOARD_MEGA_ -mega_pic32.board.define= -mega_pic32.ccflags=ffff -mega_pic32.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -mega_pic32.upload.protocol=stk500v2 -mega_pic32.upload.maximum_size=520192 -mega_pic32.upload.speed=115200 - -mega_pic32.bootloader.low_fuses=0xff -mega_pic32.bootloader.high_fuses=0xdd -mega_pic32.bootloader.extended_fuses=0x00 -mega_pic32.bootloader.path=not-supported -mega_pic32.bootloader.file=not-supported -mega_pic32.bootloader.unlock_bits=0x3F -mega_pic32.bootloader.lock_bits=0x0F - -mega_pic32.build.mcu=32MX795F512L -mega_pic32.build.f_cpu=80000000L -mega_pic32.build.core=pic32 -mega_pic32.build.variant=Max32 -#mega_pic32.upload.using= - -############################################################ -mega_usb_pic32.name=chipKIT MAX32-USB for Serial -mega_usb_pic32.group=chipKIT - -# new items -mega_usb_pic32.platform=pic32 -mega_usb_pic32.board=_BOARD_MEGA_ -mega_usb_pic32.board.define=-D_USE_USB_FOR_SERIAL_ -mega_usb_pic32.ccflags=ffff -mega_usb_pic32.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -mega_usb_pic32.upload.protocol=stk500v2 -mega_usb_pic32.upload.maximum_size=520192 -mega_usb_pic32.upload.speed=115200 - -mega_usb_pic32.bootloader.low_fuses=0xff -mega_usb_pic32.bootloader.high_fuses=0xdd -mega_usb_pic32.bootloader.extended_fuses=0x00 -mega_usb_pic32.bootloader.path=not-supported -mega_usb_pic32.bootloader.file=not-supported -mega_usb_pic32.bootloader.unlock_bits=0x3F -mega_usb_pic32.bootloader.lock_bits=0x0F - -mega_usb_pic32.build.mcu=32MX795F512L -mega_usb_pic32.build.f_cpu=80000000L -mega_usb_pic32.build.core=pic32 -mega_usb_pic32.build.variant=Max32 -#mega_usb_pic32.upload.using= - -############################################################ -############################################################ -Olimex_Pinguino32.name=PIC32 Pinguino -Olimex_Pinguino32.group=Olimex - -Olimex_Pinguino32.platform=pic32 -Olimex_Pinguino32.board=_BOARD_OLIMEX_PIC32_PINGUINO_ -Olimex_Pinguino32.board.define=-D_USE_USB_FOR_SERIAL_ -Olimex_Pinguino32.ccflags=ffff -Olimex_Pinguino32.ldscript=chipKIT-application-32MX440F256.ld - -Olimex_Pinguino32.upload.protocol=stk500v2 -Olimex_Pinguino32.upload.maximum_size=258048 -Olimex_Pinguino32.upload.speed=115200 -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -Olimex_Pinguino32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -Olimex_Pinguino32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -Olimex_Pinguino32.bootloader.low_fuses=0xff -Olimex_Pinguino32.bootloader.high_fuses=0xdd -Olimex_Pinguino32.bootloader.extended_fuses=0x00 -Olimex_Pinguino32.bootloader.path=not-supported -Olimex_Pinguino32.bootloader.file=not-supported -Olimex_Pinguino32.bootloader.unlock_bits=0x3F -Olimex_Pinguino32.bootloader.lock_bits=0x0F - -Olimex_Pinguino32.build.mcu=32MX440F256H -Olimex_Pinguino32.build.f_cpu=80000000L -Olimex_Pinguino32.build.core=pic32 -Olimex_Pinguino32.build.variant=Olimex_PIC32_Pinguino - -############################################################ -picadillo_35t.name=PICadillo 35T -picadillo_35t.group=4D Systems -picadillo_35t.platform=pic32 -picadillo_35t.board=_BOARD_PICADILLO_35T_ -picadillo_35t.board.define= -picadillo_35t.ldscript=chipKIT-application-32MX795F512.ld - -picadillo_35t.variant=picadillo_35t -picadillo_35t.description=PICadillo-35T -picadillo_35t.bootloader=bootloader.hex -picadillo_35t.ccflags=ffff -picadillo_35t.upload.protocol=stk500v2 -picadillo_35t.upload.maximum_size=520192 -picadillo_35t.upload.speed=115200 -picadillo_35t.build.mcu=32MX795F512L -picadillo_35t.build.f_cpu=80000000L -picadillo_35t.build.core=pic32 -picadillo_35t.build.variant=picadillo_35t - - -############################################################ -quick240_usb_pic32.name=PONTECH quicK240 -quick240_usb_pic32.group=PONTECH - -# new items -quick240_usb_pic32.platform=pic32 -quick240_usb_pic32.board=_BOARD_PONTECH_QUICK240_USB_ -quick240_usb_pic32.compiler.define=-D_USE_USB_FOR_SERIAL_ -quick240_usb_pic32.ccflags=ffff -quick240_usb_pic32.ldscript=chipKIT-application-32MX795F512.ld -# end of new items - -quick240_usb_pic32.upload.protocol=stk500v2 -quick240_usb_pic32.upload.maximum_size=520192 -quick240_usb_pic32.upload.speed=115200 - -quick240_usb_pic32.bootloader.low_fuses=0xff -quick240_usb_pic32.bootloader.high_fuses=0xdd -quick240_usb_pic32.bootloader.extended_fuses=0x00 -quick240_usb_pic32.bootloader.path=not-supported -quick240_usb_pic32.bootloader.file=not-supported -quick240_usb_pic32.bootloader.unlock_bits=0x3F -quick240_usb_pic32.bootloader.lock_bits=0x0F - -quick240_usb_pic32.build.mcu=32MX795F512L -quick240_usb_pic32.build.f_cpu=80000000L -quick240_usb_pic32.build.core=pic32 -quick240_usb_pic32.build.variant=quicK240 -#mega_usb_pic32.upload.using= - -############################################################ -############################################################ -chipkit_uc32.name=chipKIT uC32 -chipkit_uc32.group=chipKIT - -# new items -chipkit_uc32.platform=pic32 -chipkit_uc32.board=_BOARD_UC32_ -chipkit_uc32.board.define= -chipkit_uc32.ccflags=ffff -chipkit_uc32.ldscript=chipKIT-application-32MX340F512.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_uc32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -chipkit_uc32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_uc32.upload.protocol=stk500v2 -chipkit_uc32.upload.maximum_size=520192 -chipkit_uc32.upload.speed=115200 - -chipkit_uc32.bootloader.low_fuses=0xff -chipkit_uc32.bootloader.high_fuses=0xdd -chipkit_uc32.bootloader.extended_fuses=0x00 -chipkit_uc32.bootloader.path=not-supported -chipkit_uc32.bootloader.file=not-supported -chipkit_uc32.bootloader.unlock_bits=0x3F -chipkit_uc32.bootloader.lock_bits=0x0F - -chipkit_uc32.build.mcu=32MX340F512H -chipkit_uc32.build.f_cpu=80000000L -chipkit_uc32.build.core=pic32 -chipkit_uc32.build.variant=uC32 -#chipkit_uc32.upload.using= - -############################################################ -############################################################ -uc32_pmod.name=chipKIT uC32 with Pmod Shield -uc32_pmod.group=chipKIT - -# new items -uc32_pmod.platform=pic32 -uc32_pmod.board=_BOARD_UC32_ -uc32_pmod.board.define= -uc32_pmod.ccflags=ffff -uc32_pmod.ldscript=chipKIT-application-32MX340F512.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uc32_pmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -uc32_pmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -uc32_pmod.upload.protocol=stk500v2 -uc32_pmod.upload.maximum_size=520192 -uc32_pmod.upload.speed=115200 - -uc32_pmod.bootloader.low_fuses=0xff -uc32_pmod.bootloader.high_fuses=0xdd -uc32_pmod.bootloader.extended_fuses=0x00 -uc32_pmod.bootloader.path=not-supported -uc32_pmod.bootloader.file=not-supported -uc32_pmod.bootloader.unlock_bits=0x3F -uc32_pmod.bootloader.lock_bits=0x0F - -uc32_pmod.build.mcu=32MX340F512H -uc32_pmod.build.f_cpu=80000000L -uc32_pmod.build.core=pic32 -uc32_pmod.build.variant=uC32_Pmod_Shield -#uc32_pmod.upload.using= - -############################################################ -############################################################ -uno_pic32.name=chipKIT UNO32 - -# new items -uno_pic32.group=chipKIT -uno_pic32.platform=pic32 -uno_pic32.board=_BOARD_UNO_ -uno_pic32.board.define= -#uno_pic32.compiler.define= -uno_pic32.ccflags=ffff -uno_pic32.ldscript=chipKIT-application-32MX320F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uno_pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -uno_pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -#uno_pic32.upload.using=avrdude -uno_pic32.upload.protocol=stk500v2 -uno_pic32.upload.maximum_size=126976 -uno_pic32.upload.speed=115200 - -uno_pic32.bootloader.low_fuses=0xff -uno_pic32.bootloader.high_fuses=0xdd -uno_pic32.bootloader.extended_fuses=0x00 -uno_pic32.bootloader.path=not-supported -uno_pic32.bootloader.file=not-supported -uno_pic32.bootloader.unlock_bits=0x3F -uno_pic32.bootloader.lock_bits=0x0F - -uno_pic32.build.mcu=32MX320F128H -uno_pic32.build.f_cpu=80000000L -uno_pic32.build.core=pic32 -uno_pic32.build.variant=Uno32 -#uno_pic32.upload.using= - -############################################################ -############################################################ -uno_pmod.name=chipKIT UNO32 with Pmod Shield -uno_pmod.group=chipKIT - -# new items -uno_pmod.platform=pic32 -uno_pmod.board=_BOARD_UNO_ -uno_pmod.board.define= -#uno_pmod.compiler.define= -uno_pmod.ccflags=ffff -uno_pmod.ldscript=chipKIT-application-32MX320F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uno_pmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -uno_pmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -#uno_pic32.upload.using=avrdude -uno_pmod.upload.protocol=stk500v2 -uno_pmod.upload.maximum_size=126976 -uno_pmod.upload.speed=115200 - -uno_pmod.bootloader.low_fuses=0xff -uno_pmod.bootloader.high_fuses=0xdd -uno_pmod.bootloader.extended_fuses=0x00 -uno_pmod.bootloader.path=not-supported -uno_pmod.bootloader.file=not-supported -uno_pmod.bootloader.unlock_bits=0x3F -uno_pmod.bootloader.lock_bits=0x0F - -uno_pmod.build.mcu=32MX320F128H -uno_pmod.build.f_cpu=80000000L -uno_pmod.build.core=pic32 -uno_pmod.build.variant=Uno32_Pmod_shield -#uno_pmod..upload.using= - -############################################################ -############################################################ -chipkit_WF32.name=chipKIT WF32 -chipkit_WF32.group=chipKIT - - -# new items -chipkit_WF32.platform=pic32 -chipkit_WF32.board=_BOARD_WF32_ -chipkit_WF32.board.define= -chipkit_WF32.ccflags=ffff -chipkit_WF32.ldscript=chipKIT-application-32MX695F512.ld -# end of new items - -chipkit_WF32.upload.protocol=stk500v2 -chipkit_WF32.upload.maximum_size=520192 -chipkit_WF32.upload.speed=115200 - -chipkit_WF32.bootloader.low_fuses=0xff -chipkit_WF32.bootloader.high_fuses=0xdd -chipkit_WF32.bootloader.extended_fuses=0x00 -chipkit_WF32.bootloader.path=not-supported -chipkit_WF32.bootloader.file=not-supported -chipkit_WF32.bootloader.unlock_bits=0x3F -chipkit_WF32.bootloader.lock_bits=0x0F - -chipkit_WF32.build.mcu=32MX695F512L -chipkit_WF32.build.f_cpu=80000000L -chipkit_WF32.build.core=pic32 -chipkit_WF32.build.variant=WF32 -#chipkit_WF32.upload.using=avrdude1 - -############################################################ -############################################################ -chipkit_WiFire.name=chipKIT WiFire -chipkit_WiFire.group=chipKIT - - -# new items -chipkit_WiFire.platform=pic32 -chipkit_WiFire.board=_BOARD_WIFIRE_ -chipkit_WiFire.board.define= -chipkit_WiFire.ccflags=ffff -chipkit_WiFire.ldscript=MZ-application-32MZ2048ECX.ld -# end of new items - -chipkit_WiFire.upload.protocol=stk500v2 -chipkit_WiFire.upload.maximum_size=520192 -chipkit_WiFire.upload.speed=115200 - -chipkit_WiFire.bootloader.low_fuses=0xff -chipkit_WiFire.bootloader.high_fuses=0xdd -chipkit_WiFire.bootloader.extended_fuses=0x00 -chipkit_WiFire.bootloader.path=not-supported -chipkit_WiFire.bootloader.file=not-supported -chipkit_WiFire.bootloader.unlock_bits=0x3F -chipkit_WiFire.bootloader.lock_bits=0x0F - -chipkit_WiFire.build.mcu=32MZ2048ECG100 -chipkit_WiFire.build.f_cpu=200000000UL -chipkit_WiFire.build.core=pic32 -chipkit_WiFire.ldcommon=chipKIT-application-COMMON-MZ.ld -chipkit_WiFire.build.variant=WiFire -#chipkit_WiFire.upload.using=avrdude1 - -############################################################ -############################################################ -chipkit_WiFire_80MHz.name=chipKIT WiFire 80MHz -chipkit_WiFire_80MHz.group=chipKIT - - -# new items -chipkit_WiFire_80MHz.platform=pic32 -chipkit_WiFire_80MHz.board=_BOARD_WIFIRE_ -chipkit_WiFire_80MHz.board.define= -chipkit_WiFire_80MHz.ccflags=ffff -chipkit_WiFire_80MHz.ldscript=MZ-application-32MZ2048ECX.ld -# end of new items - -chipkit_WiFire_80MHz.upload.protocol=stk500v2 -chipkit_WiFire_80MHz.upload.maximum_size=520192 -chipkit_WiFire_80MHz.upload.speed=115200 - -chipkit_WiFire_80MHz.bootloader.low_fuses=0xff -chipkit_WiFire_80MHz.bootloader.high_fuses=0xdd -chipkit_WiFire_80MHz.bootloader.extended_fuses=0x00 -chipkit_WiFire_80MHz.bootloader.path=not-supported -chipkit_WiFire_80MHz.bootloader.file=not-supported -chipkit_WiFire_80MHz.bootloader.unlock_bits=0x3F -chipkit_WiFire_80MHz.bootloader.lock_bits=0x0F - -chipkit_WiFire_80MHz.build.mcu=32MZ2048ECG100 -chipkit_WiFire_80MHz.build.f_cpu=80000000UL -chipkit_WiFire_80MHz.build.core=pic32 -chipkit_WiFire_80MHz.ldcommon=chipKIT-application-COMMON-MZ.ld -chipkit_WiFire_80MHz.build.variant=WiFire -#chipkit_WiFire_80MHz.upload.using=avrdude1 -chipkit_DP32.name=chipKIT DP32 -chipkit_DP32.group=chipKIT - -############################################################ -############################################################ -openbci.name=OpenBCI 32 -openbci.group=chipKIT - -# new items -openbci.platform=pic32 -openbci.board=_BOARD_DP32_ -openbci.board.define=-D_USE_USB_FOR_SERIAL_ -openbci.ccflags=-Map="map.map" -openbci.ldscript=chipKIT-application-32MX250F128.ld -# end of new items - -# Use a high -Gnum for devices that have 64K of RAM or less -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -openbci.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder -openbci.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g3::-mdebugger::-Wcast-align::-fno-short-double::-fframe-base-loclist::-ftoplevel-reorder - -chipkit_DP32.upload.protocol=stk500v2 -# 128KB - 4K for EEPROM - 4K for bootloader -openbci.upload.maximum_size=122880 -openbci.upload.speed=115200 - -openbci.bootloader.low_fuses=0xff -openbci.bootloader.high_fuses=0xdd -openbci.bootloader.extended_fuses=0x00 -openbci.bootloader.path=not-supported -openbci.bootloader.file=not-supported -openbci.bootloader.unlock_bits=0x3F -openbci.bootloader.lock_bits=0x0F - -openbci.build.mcu=32MX250F128B -openbci.build.f_cpu=40000000L -openbci.build.core=pic32 -openbci.build.variant=OpenBCI - -############################################################ diff --git a/hardware/pic32/cores/pic32/WSystem.c b/hardware/pic32/cores/pic32/WSystem.c index ee3acfffc..cebd84686 100644 --- a/hardware/pic32/cores/pic32/WSystem.c +++ b/hardware/pic32/cores/pic32/WSystem.c @@ -1002,6 +1002,46 @@ void __attribute__((nomips16)) _initCoreTimer(uint32_t prd) } +/* ------------------------------------------------------------ */ +/*** _disableSeconaryOscillator +** +** Parameters: none +** +** Return Value: none +** +** Errors: none +** +** Description: Several of our boards need to disable the seconday +** oscillator on _boart_init(). This function expands +** the macros from plib.h that previously did the +** unlocking/locking of OSCCON writing. +** +*/ +void _disableSeconaryOscillator(void) +{ + //* Turn Secondary oscillator off + //* this is only needed on the mega board because the mega uses secondary + // ocsilator pins as general I/O + + unsigned int int_status; + + // Expanded mSYSTEMLock() and mSYSTEMUnLock() macros from plib.h + /// WARNING: According to the datasheet, this unlock sequence should also + /// turn off DMA before writing the SYSKEY values, and retore it at the + /// end. This is what the mSYSTEM macros did from plib.h. But since we + /// don't have that piece of plib.h implemneted in chipKIT yet, we're + /// going to leave that part out. + int_status = disableInterrupts(); + SYSKEY = 0; + SYSKEY = 0xAA996655; + SYSKEY = 0x556699AA; + + OSCCONCLR = _OSCCON_SOSCEN_MASK; + + SYSKEY = 0x33333333; + restoreInterrupts(int_status); +} + /* ------------------------------------------------------------ */ /*** ProcName ** diff --git a/hardware/pic32/cores/pic32/wiring.h b/hardware/pic32/cores/pic32/wiring.h index 9044dc5af..eb7bae54e 100644 --- a/hardware/pic32/cores/pic32/wiring.h +++ b/hardware/pic32/cores/pic32/wiring.h @@ -178,6 +178,7 @@ unsigned int executeSoftReset(uint32_t options); unsigned int attachCoreTimerService(uint32_t (*)(uint32_t count)); unsigned int detachCoreTimerService(uint32_t (*)(uint32_t count)); unsigned int callCoreTimerServiceNow(uint32_t (* service)(uint32_t)); +void _disableSeconaryOscillator(void); // if you are going to use setIntVector, then specify the interrupt routine as: // void __USER_ISR UserInterrupt(void) {} diff --git a/hardware/pic32/variants/Cerebot_32MX4/boards.txt b/hardware/pic32/variants/Cerebot_32MX4/boards.txt index 020d8af29..db818e6e2 100644 --- a/hardware/pic32/variants/Cerebot_32MX4/boards.txt +++ b/hardware/pic32/variants/Cerebot_32MX4/boards.txt @@ -9,6 +9,8 @@ cerebot32mx4.board.define= cerebot32mx4.ccflags=ffff cerebot32mx4.ldscript=chipKIT-application-32MX460F512.ld # end of new items +cerebot32mx4.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot32mx4.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder cerebot32mx4.upload.protocol=stk500v2 cerebot32mx4.upload.maximum_size=520192 diff --git a/hardware/pic32/variants/Cerebot_MX3cK/boards.txt b/hardware/pic32/variants/Cerebot_MX3cK/boards.txt index 56860c448..80df61c2a 100644 --- a/hardware/pic32/variants/Cerebot_MX3cK/boards.txt +++ b/hardware/pic32/variants/Cerebot_MX3cK/boards.txt @@ -13,8 +13,8 @@ cerebot_mx3ck.ldscript=chipKIT-application-32MX320F128.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -cerebot_mx3ck.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -cerebot_mx3ck.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +cerebot_mx3ck.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot_mx3ck.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder cerebot_mx3ck.upload.protocol=stk500v2 cerebot_mx3ck.upload.maximum_size=126976 @@ -49,8 +49,8 @@ chipkit_mx3.ldscript=chipKIT-application-32MX320F128.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -chipkit_mx3.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -chipkit_mx3.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +chipkit_mx3.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +chipkit_mx3.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_mx3.upload.protocol=stk500v2 chipkit_mx3.upload.maximum_size=126976 diff --git a/hardware/pic32/variants/Cerebot_MX3cK_512/boards.txt b/hardware/pic32/variants/Cerebot_MX3cK_512/boards.txt index 776e5d18e..3b57f7cf7 100644 --- a/hardware/pic32/variants/Cerebot_MX3cK_512/boards.txt +++ b/hardware/pic32/variants/Cerebot_MX3cK_512/boards.txt @@ -13,8 +13,8 @@ cerebot_mx3ck_512.ldscript=chipKIT-application-32MX340F512.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -cerebot_mx3ck_512.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -cerebot_mx3ck_512.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +cerebot_mx3ck_512.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot_mx3ck_512.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder cerebot_mx3ck_512.upload.protocol=stk500v2 cerebot_mx3ck_512.upload.maximum_size=520192 diff --git a/hardware/pic32/variants/Cerebot_MX4cK/boards.txt b/hardware/pic32/variants/Cerebot_MX4cK/boards.txt index 3ce471dea..433a418d5 100644 --- a/hardware/pic32/variants/Cerebot_MX4cK/boards.txt +++ b/hardware/pic32/variants/Cerebot_MX4cK/boards.txt @@ -9,6 +9,8 @@ cerebot_mx4ck.board.define= cerebot_mx4ck.ccflags=ffff cerebot_mx4ck.ldscript=chipKIT-application-32MX460F512.ld # end of new items +cerebot_mx4ck.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot_mx4ck.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder cerebot_mx4ck.upload.protocol=stk500v2 cerebot_mx4ck.upload.maximum_size=520192 @@ -39,6 +41,8 @@ chipkit_pro_mx4.board.define= chipkit_pro_mx4.ccflags=ffff chipkit_pro_mx4.ldscript=chipKIT-application-32MX460F512.ld # end of new items +chipkit_pro_mx4.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +chipkit_pro_mx4.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_pro_mx4.upload.protocol=stk500v2 chipkit_pro_mx4.upload.maximum_size=520192 diff --git a/hardware/pic32/variants/ChipKIT_Pi/Board_Data.c b/hardware/pic32/variants/ChipKIT_Pi/Board_Data.c index be5e0a237..b78b2fa33 100644 --- a/hardware/pic32/variants/ChipKIT_Pi/Board_Data.c +++ b/hardware/pic32/variants/ChipKIT_Pi/Board_Data.c @@ -380,11 +380,8 @@ const uint8_t external_int_to_digital_pin_PGM[] = { #if (OPT_BOARD_INIT != 0) void _board_init(void) { - - // Turn Secondary oscillator off as GPIO is needed - OSCCONCLR = _OSCCON_SOSCEN_MASK; - -} + _disableSeconaryOscillator(); +} #endif diff --git a/hardware/pic32/variants/ChipKIT_Pi/boards.txt b/hardware/pic32/variants/ChipKIT_Pi/boards.txt index 189cdbe4f..6ea5472a0 100644 --- a/hardware/pic32/variants/ChipKIT_Pi/boards.txt +++ b/hardware/pic32/variants/ChipKIT_Pi/boards.txt @@ -10,11 +10,8 @@ chipkit_Pi.board.define= chipkit_Pi.ldscript=chipKIT-application-32MX250F128.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_Pi.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -chipkit_Pi.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +chipkit_Pi.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +chipkit_Pi.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_Pi.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader @@ -47,11 +44,8 @@ chipkit_Pi_USB_Serial.ccflags=-Map="map.map" chipkit_Pi_USB_Serial.ldscript=chipKIT-application-32MX250F128.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_Pi_USB_Serial.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -chipkit_Pi_USB_Serial.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +chipkit_Pi_USB_Serial.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +chipkit_Pi_USB_Serial.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_Pi_USB_Serial.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader diff --git a/hardware/pic32/variants/Cmod/boards.txt b/hardware/pic32/variants/Cmod/boards.txt index ccbf5a19b..9e2372c53 100755 --- a/hardware/pic32/variants/Cmod/boards.txt +++ b/hardware/pic32/variants/Cmod/boards.txt @@ -13,8 +13,8 @@ cmod.ldscript=chipKIT-application-32MX150F128.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -cmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -cmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +cmod.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cmod.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder cmod.upload.protocol=stk500v2 # 128KB - 4K for EEPROM diff --git a/hardware/pic32/variants/DP32/Board_Data.c b/hardware/pic32/variants/DP32/Board_Data.c index a4824034a..d6925c3de 100644 --- a/hardware/pic32/variants/DP32/Board_Data.c +++ b/hardware/pic32/variants/DP32/Board_Data.c @@ -375,11 +375,8 @@ const uint8_t external_int_to_digital_pin_PGM[] = { #if (OPT_BOARD_INIT != 0) void _board_init(void) { - - // Turn Secondary oscillator off as GPIO is needed - OSCCONCLR = _OSCCON_SOSCEN_MASK; - -} + _disableSeconaryOscillator(); +} #endif diff --git a/hardware/pic32/variants/DP32/boards.txt b/hardware/pic32/variants/DP32/boards.txt index 79ad8f7ce..10504ec8a 100644 --- a/hardware/pic32/variants/DP32/boards.txt +++ b/hardware/pic32/variants/DP32/boards.txt @@ -10,11 +10,8 @@ chipkit_DP32.ccflags=-Map="map.map" chipkit_DP32.ldscript=chipKIT-application-32MX250F128.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_DP32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -chipkit_DP32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +cerebot32mx4.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot32mx4.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_DP32.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader diff --git a/hardware/pic32/variants/Default_100/boards.txt b/hardware/pic32/variants/Default_100/boards.txt index 8c229f290..1028b8319 100644 --- a/hardware/pic32/variants/Default_100/boards.txt +++ b/hardware/pic32/variants/Default_100/boards.txt @@ -10,6 +10,9 @@ ubw32_mx460.ccflags=ffff ubw32_mx460.ldscript=chipKIT-application-32MX460F512.ld # end of new items +cerebot32mx4.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cerebot32mx4.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder + ubw32_mx460.upload.protocol=stk500v2 ubw32_mx460.upload.maximum_size=520192 ubw32_mx460.upload.speed=115200 diff --git a/hardware/pic32/variants/Default_64/boards.txt b/hardware/pic32/variants/Default_64/boards.txt index 89860a1ec..6d6c0f94b 100644 --- a/hardware/pic32/variants/Default_64/boards.txt +++ b/hardware/pic32/variants/Default_64/boards.txt @@ -10,6 +10,9 @@ cui32.ccflags=ffff cui32.ldscript=chipKIT-application-32MX440F512.ld # end of new items +cui32.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +cui32.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder + cui32.upload.protocol=stk500v2 cui32.upload.maximum_size=520192 cui32.upload.speed=115200 @@ -41,11 +44,8 @@ usbono_pic32.ldscript=chipKIT-application-32MX440F512.ld #chipKIT-UNO32-application-32MX320F128L.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -#usbono_pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -#usbono_pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +usbono_pic32.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +usbono_pic32.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder usbono_pic32.upload.protocol=stk500v2 usbono_pic32.upload.maximum_size=520192 diff --git a/hardware/pic32/variants/Fubarino_Mini/boards.txt b/hardware/pic32/variants/Fubarino_Mini/boards.txt index 4a1f2f466..7ec984669 100644 --- a/hardware/pic32/variants/Fubarino_Mini/boards.txt +++ b/hardware/pic32/variants/Fubarino_Mini/boards.txt @@ -8,11 +8,8 @@ fubarino_mini_dev.board.define=-D_USE_USB_FOR_SERIAL_ fubarino_mini_dev.ccflags=-Map="map.map" fubarino_mini_dev.ldscript=chipKIT-application-32MX250F128.ld -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -fubarino_mini_dev.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -fubarino_mini_dev.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +fubarino_mini_dev.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +fubarino_mini_dev.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder fubarino_mini_dev.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader @@ -45,8 +42,8 @@ fubarino_mini.ldscript=chipKIT-application-32MX250F128.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -fubarino_mini.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -fubarino_mini.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +fubarino_mini.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +fubarino_mini.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder fubarino_mini.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader @@ -65,39 +62,3 @@ fubarino_mini.build.mcu=32MX250F128D fubarino_mini.build.f_cpu=48000000L fubarino_mini.build.core=pic32 fubarino_mini.build.variant=Fubarino_Mini - -############################################################ -#fubarino_mini_dbg.name=FubarinoMini Debug -# -## new items -#fubarino_mini_dbg.platform=pic32 -#fubarino_mini_dbg.board=_BOARD_FUBARINO_MINI_ -#fubarino_mini_dbg.board.define=-D_USE_USB_FOR_SERIAL_ -#fubarino_mini_dbg.ccflags=-Map="map.map" -#fubarino_mini_dbg.ldscript=chipKIT-application-32MX250F128-nobootloader.ld -## end of new items -# -## Use a high -Gnum for devices that have less than 64K of data memory -## For -G1024, objects 1024 bytes or smaller will be accessed by -## gp-relative addressing -#fubarino_mini_dbg.compiler.c.flags=-O0::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -#fubarino_mini_dbg.compiler.cpp.flags=-O0::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -#fubarino_mini_dbg.upload.protocol=stk500v2 -## 128KB - 4K for EEPROM - 4K for bootloader -#fubarino_mini_dbg.upload.maximum_size=122880 -#fubarino_mini_dbg.upload.speed=115200 -# -#fubarino_mini_dbg.bootloader.low_fuses=0xff -#fubarino_mini_dbg.bootloader.high_fuses=0xdd -#fubarino_mini_dbg.bootloader.extended_fuses=0x00 -#fubarino_mini_dbg.bootloader.path=not-supported -#fubarino_mini_dbg.bootloader.file=not-supported -#fubarino_mini_dbg.bootloader.unlock_bits=0x3F -#fubarino_mini_dbg.bootloader.lock_bits=0x0F -# -#fubarino_mini_dbg.build.mcu=32MX250F128D -#fubarino_mini_dbg.build.f_cpu=40000000L -#fubarino_mini_dbg.build.core=pic32 -#fubarino_mini_dbg.build.variant=Fubarino_Mini -# -############################################################ diff --git a/hardware/pic32/variants/Fubarino_SD/boards.txt b/hardware/pic32/variants/Fubarino_SD/boards.txt index b9efe28a1..a7f37be0d 100644 --- a/hardware/pic32/variants/Fubarino_SD/boards.txt +++ b/hardware/pic32/variants/Fubarino_SD/boards.txt @@ -12,6 +12,9 @@ fubarino_sd_seeed.upload.protocol=stk500v2 fubarino_sd_seeed.upload.maximum_size=258048 fubarino_sd_seeed.upload.speed=115200 +fubarino_sd_seeed.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +fubarino_sd_seeed.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder + fubarino_sd_seeed.bootloader.low_fuses=0xff fubarino_sd_seeed.bootloader.high_fuses=0xdd fubarino_sd_seeed.bootloader.extended_fuses=0x00 diff --git a/hardware/pic32/variants/Olimex_PIC32_Pinguino/boards.txt b/hardware/pic32/variants/Olimex_PIC32_Pinguino/boards.txt index b963872c7..b4da13441 100644 --- a/hardware/pic32/variants/Olimex_PIC32_Pinguino/boards.txt +++ b/hardware/pic32/variants/Olimex_PIC32_Pinguino/boards.txt @@ -8,6 +8,9 @@ Olimex_Pinguino32.board.define=-D_USE_USB_FOR_SERIAL_ Olimex_Pinguino32.ccflags=ffff Olimex_Pinguino32.ldscript=chipKIT-application-32MX440F256.ld +Olimex_Pinguino32.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +Olimex_Pinguino32.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder + Olimex_Pinguino32.upload.protocol=stk500v2 Olimex_Pinguino32.upload.maximum_size=258048 Olimex_Pinguino32.upload.speed=115200 diff --git a/hardware/pic32/variants/Uno32/boards.txt b/hardware/pic32/variants/Uno32/boards.txt index 1aa969518..b5be00798 100644 --- a/hardware/pic32/variants/Uno32/boards.txt +++ b/hardware/pic32/variants/Uno32/boards.txt @@ -11,11 +11,8 @@ uno_pic32.ccflags=ffff uno_pic32.ldscript=chipKIT-application-32MX320F128.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uno_pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -uno_pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +uno_pic32.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +uno_pic32.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder #uno_pic32.upload.using=avrdude uno_pic32.upload.protocol=stk500v2 diff --git a/hardware/pic32/variants/Uno32_Pmod_Shield/boards.txt b/hardware/pic32/variants/Uno32_Pmod_Shield/boards.txt index eeba9a2e3..f549e15bc 100644 --- a/hardware/pic32/variants/Uno32_Pmod_Shield/boards.txt +++ b/hardware/pic32/variants/Uno32_Pmod_Shield/boards.txt @@ -11,11 +11,8 @@ uno_pmod.ccflags=ffff uno_pmod.ldscript=chipKIT-application-32MX320F128.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uno_pmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -uno_pmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +uno_pmod.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +uno_pmod.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder #uno_pic32.upload.using=avrdude uno_pmod.upload.protocol=stk500v2 diff --git a/hardware/pic32/variants/openbci/Board_Data.c b/hardware/pic32/variants/openbci/Board_Data.c index 7192a9b9c..3af99cca4 100644 --- a/hardware/pic32/variants/openbci/Board_Data.c +++ b/hardware/pic32/variants/openbci/Board_Data.c @@ -376,11 +376,8 @@ const uint8_t external_int_to_digital_pin_PGM[] = { #if (OPT_BOARD_INIT != 0) void _board_init(void) { - - // Turn Secondary oscillator off as GPIO is needed - OSCCONCLR = _OSCCON_SOSCEN_MASK; - -} + _disableSeconaryOscillator(); +} #endif diff --git a/hardware/pic32/variants/openbci/boards.txt b/hardware/pic32/variants/openbci/boards.txt index 97f6b662e..ef4501c1b 100644 --- a/hardware/pic32/variants/openbci/boards.txt +++ b/hardware/pic32/variants/openbci/boards.txt @@ -13,8 +13,8 @@ openbci.ldscript=chipKIT-application-32MX250F128.ld # Use a high -Gnum for devices that have less than 64K of data memory # For -G1024, objects 1024 bytes or smaller will be accessed by # gp-relative addressing -openbci.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -openbci.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double +openbci.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +openbci.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder openbci.upload.protocol=stk500v2 # 128KB - 4K for EEPROM - 4K for bootloader diff --git a/hardware/pic32/variants/quicK240/Board_Data.c b/hardware/pic32/variants/quicK240/Board_Data.c index def490f16..903564b18 100644 --- a/hardware/pic32/variants/quicK240/Board_Data.c +++ b/hardware/pic32/variants/quicK240/Board_Data.c @@ -438,25 +438,9 @@ const uint16_t digital_pin_to_timer_PGM[] = { ** reset and before the user sketch is run. */ #if (OPT_BOARD_INIT != 0) - void _board_init(void) { - - //* Turn Secondary oscillator off - //* this is only needed on the mega board because the mega uses secondary - // ocsilator pins as general I/O - - unsigned int dma_status; - unsigned int int_status; - - mSYSTEMUnlock(int_status, dma_status); - - OSCCONCLR = _OSCCON_SOSCEN_MASK; - - - mSYSTEMLock(int_status, dma_status); - -} - + _disableSeconaryOscillator(); +} #endif /* ------------------------------------------------------------ */ diff --git a/hardware/pic32/variants/uC32/boards.txt b/hardware/pic32/variants/uC32/boards.txt index b3b67c0e8..a17fb798e 100644 --- a/hardware/pic32/variants/uC32/boards.txt +++ b/hardware/pic32/variants/uC32/boards.txt @@ -10,11 +10,8 @@ chipkit_uc32.ccflags=ffff chipkit_uc32.ldscript=chipKIT-application-32MX340F512.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -chipkit_uc32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -chipkit_uc32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +chipkit_uc32.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +chipkit_uc32.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder chipkit_uc32.upload.protocol=stk500v2 chipkit_uc32.upload.maximum_size=520192 diff --git a/hardware/pic32/variants/uC32_Pmod_Shield/boards.txt b/hardware/pic32/variants/uC32_Pmod_Shield/boards.txt index ac0c414ba..540bbda89 100644 --- a/hardware/pic32/variants/uC32_Pmod_Shield/boards.txt +++ b/hardware/pic32/variants/uC32_Pmod_Shield/boards.txt @@ -10,11 +10,8 @@ uc32_pmod.ccflags=ffff uc32_pmod.ldscript=chipKIT-application-32MX340F512.ld # end of new items -# Use a high -Gnum for devices that have less than 64K of data memory -# For -G1024, objects 1024 bytes or smaller will be accessed by -# gp-relative addressing -uc32_pmod.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double -uc32_pmod.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align::-fno-short-double +uc32_pmod.compiler.c.flags=-O2 -c -mno-smart-io -w -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder +uc32_pmod.compiler.cpp.flags=-O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -G1024 -g -mdebugger -Wcast-align -fno-short-double -fframe-base-loclist -ftoplevel-reorder uc32_pmod.upload.protocol=stk500v2 uc32_pmod.upload.maximum_size=520192