Author Topic: SAMD + MPLABX  (Read 1605 times)

0 Members and 1 Guest are viewing this topic.

Offline Evan.CornellTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: us
SAMD + MPLABX
« on: March 27, 2020, 08:23:42 pm »
I have MPLAB X v5.35, XC32 v2.40 installed on Win10, 64-bit.

I am making a New Project -> Standalone Project -> ATSAMD21J18A -> SAM D21 Xplained Pro (EDBG) -> XC32 (v2.40) -> ProjectName. Great, project created.

I make a new C main file. I add #include <xc.h>. I can CTRL+click on <xc.h>, and it opens that file ("C:\Program Files (x86)\Microchip\MPLABX\v5.35\packs\Microchip\SAMD21_DFP\3.2.90\samd21a\xc32\include\xc.h").

The problem is this - when I then Ctrl+click on <samd21j18a.h> within xc.h to look at the device-specific header file, I get an error in the bottom left corner of MPLAB X that says: "Cannot open element "<samd21j18a.h>" ".

Does anyone know why this is happening? I am new to Microchip world, so it may just be something easy.

I have searched the xc32 install directory, and find two different samd21j18a.h files, one at "C:\Program Files\Microchip\xc32\v2.40\pic32c\include\proc\SAMD21A\pio" and another at "C:\Program Files\Microchip\xc32\v2.40\pic32c\include\proc\SAMD21A".

If I manually put #define <samd21j18a.h>, the one at the not-\pio subfolder comes up when I Ctrl-click, but I believe the \pio\samd21j18a.h is the one I want for register definitions and such.
 

Offline higheredundead

  • Newbie
  • Posts: 7
  • Country: ca
Re: SAMD + MPLABX
« Reply #1 on: August 05, 2020, 03:35:37 pm »
Hi,

did you ever find a solution to this?  I just discovered that I've got the same problem since moving from XC32 v2.10 to v2.40.  I've posted to the Microchip forum but haven't heard back.

thanks1

James
 

Offline Evan.CornellTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: us
Re: SAMD + MPLABX
« Reply #2 on: August 05, 2020, 03:39:58 pm »
Hi,

did you ever find a solution to this?  I just discovered that I've got the same problem since moving from XC32 v2.10 to v2.40.  I've posted to the Microchip forum but haven't heard back.

thanks1

James

Sorry, no. The project shifted to a different, non-Microchip target.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->