chipKIT® Development Platform

Inspired by Arduino™

HelvePic32 definitions

Created Tue, 23 Feb 2016 22:23:53 +0000 by GastonLagaffe


GastonLagaffe

Tue, 23 Feb 2016 22:23:53 +0000

Salut Matt,

in the past weeks I used DP32 as board setting even when using my HelvePic32 as I was switching between the two boards all the time. Tonight I selected HelvePic32 as board and I get weird errors: on the blink script:

c:\uecidebeta\compilers\pic32-tools\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/pic32-ld.exe: MPIDE Version not specfied correctly
c:\uecidebeta\compilers\pic32-tools\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/pic32-ld.exe: Link terminated due to previous error(s).
collect2.exe: error: ld returned 255 exit status
Failed linking sketch

on the I2CMasterEEPROM:

c:\UECIDEBETA\libraries\Communications\chipkit\DTWI\DTWI.cpp: In constructor 'DTWI0::DTWI0()':
• Error at line 1438 in file DTWI.cpp:
‣ '_DTWI0_SCL_PIN' was not declared in this scope
 DTWI0::DTWI0() : DTWI(((p32_i2c *) _DTWI0_BASE), _DTWI0_BUS_IRQ, _DTWI0_VECTOR, _DTWI0_IPL, _DTWI0_SPL, _DTWI0_SCL_PIN, _DTWI0_SDA_PIN) 
                                                                                                         ^
• Error at line 1438 in file DTWI.cpp:
‣ '_DTWI0_SDA_PIN' was not declared in this scope
 DTWI0::DTWI0() : DTWI(((p32_i2c *) _DTWI0_BASE), _DTWI0_BUS_IRQ, _DTWI0_VECTOR, _DTWI0_IPL, _DTWI0_SPL, _DTWI0_SCL_PIN, _DTWI0_SDA_PIN) 
                                                                                                                         ^
Failed compiling libraries

Looks like the HelvePic32 definitions are missing some flags. Compiling with DP32 board selected works ok.

Ciao, Mathias


majenko

Wed, 24 Feb 2016 09:12:41 +0000

Quute possiboy some things got missed with some of the changes to the Wire library. I will look at it today and upload a new set of defs.

Sent from my SM-T555 using Tapatalk


majenko

Wed, 24 Feb 2016 10:17:01 +0000

Yep, I thought so - that board definition got missed with the upgrade from TWI to DTWI for the Wire library (and others). It's a very simple fix, I just need to know which pins the I2C is on. I'll see if I can find the nice picture you have of it to find them :)


majenko

Wed, 24 Feb 2016 10:23:43 +0000

Ok, new defs uploaded to the repo. It should all work now.


GastonLagaffe

Wed, 24 Feb 2016 10:43:54 +0000

Perfect!

as usual: light speed response

Ciao, Mathias


GastonLagaffe

Wed, 24 Feb 2016 21:15:48 +0000

Salut,

I am puzzled now ... it worked this afternoon and now is comes with the error again:

• Linking sketch...
c:\UECIDEBETA\compilers\pic32-tools/bin/pic32-g++ -Os -Wl,--gc-sections,-Map,C:\Users\mawilhel\AppData\Local\Temp\build-f3df4aba-af6d-4759-a611-3cafd6893599/Blink.map -mdebugger -mno-peripheral-libs -nostartfiles -T c:\UECIDEBETA\cores\chipkit\pic32\chipKIT-application-32MX250F128.ld -T c:\UECIDEBETA\cores\chipkit\pic32\chipKIT-application-COMMON.ld c:\UECIDEBETA\cores\chipkit/pic32/cpp-startup.S -D_USE_USB_FOR_SERIAL_ -w -mprocessor=32MX250F128B -o C:\Users\mawilhel\AppData\Local\Temp\build-f3df4aba-af6d-4759-a611-3cafd6893599/Blink.elf C:\Users\mawilhel\AppData\Local\Temp\build-f3df4aba-af6d-4759-a611-3cafd6893599\Blink.cpp.o -LC:\Users\mawilhel\AppData\Local\Temp\build-f3df4aba-af6d-4759-a611-3cafd6893599 -Lc:\UECIDEBETA\cache\chipkit\boxtec-helvepic32 -Wl,--start-group -lCore_api -Wl,--end-group -lm 
c:\uecidebeta\compilers\pic32-tools\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/pic32-ld.exe: MPIDE Version not specfied correctly
c:\uecidebeta\compilers\pic32-tools\bin\bin\gcc\pic32mx\4.8.3\..\..\..\..\bin/pic32-ld.exe: Link terminated due to previous error(s).
collect2.exe: error: ld returned 255 exit status
Failed linking sketch

UECIDE shows Board: HelvePic32 Core: PIC32 Compiler for MX and MZ version 4.8.3

Strange ... (maybe because I am in London now? ;)

Ciao, Mathias


GastonLagaffe

Wed, 24 Feb 2016 21:36:26 +0000

Well....

I changed the options->optimization from "smallest size" to "Fastest execution" and it linked. When I then switched back to smallest size it linked as well.

Ciao, Mathias


majenko

Wed, 24 Feb 2016 23:30:39 +0000

This is something I have been seeing myself with the new compiler. If it hiccups for whatever reason a subsequent compile whinges about the MPIDE version. The quickest solution is to hold SHIFT and click compile. That forces a purge before compiling, and the compile then works fine. By switching optimizations you also forced a purge before compiling.