atmelcorp / atmel-software-package

Atmel Software Package
Other
106 stars 79 forks source link

MPLAB IDE project creation #112

Open UpAtGithub opened 2 years ago

UpAtGithub commented 2 years ago

Hi,- I didn't find a way to use the repository in MPLAB IDE 5.5 Manually placing the makefile in an existing project leads to curious syntax error messages. So how is it mentioned to be used from the IDE? The plan is to build the Eth-lwip sample for a 'samv71-xplained' board.

Thanks.

TonyHan11 commented 2 years ago

Software package can not be directly used in MPLAB X IDE due to there's no MPLAB X projects in it. Users need to generate the projects manually and then compile/debug softpack in MPLAB X IDE.

A MPLAB X IDE project can be generated with GNU make, take examples/eth_lwip as the example: run make TARGET=sama5d2-xplained mplab under path examples/eth_lwip, and the project files are generated in examples/eth_lwip/sama5d2-xplained.X

--- sama5d2-xplained.X
    |-- compile_options_ddram_ARM
    |-- Makefile
    |-- nbproject
         |-- configurations.xml
         |-- project.xml

Using softpack in MPLAB X IDE is not supported for samv71 device yet, only sam9x60 and sama5d2 have be validated. Although the project files could be generated for samv71 device they need to be configured before work properly. The items to be configured includes the device, DFP version, compiler toolchain and etc.