ASF Dependencies not changing with device change via project properties

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I have opened an example project using ATSAM4LC type part.    As the examples are based on demo kit boards, the examples in this case do not support the device I want to use .. ATSAM4LS4.

I go to properties and change device to my part.   With very limited functionality my boards works fine.   


I now add a SPI bus.  Compiler complains and cant find the required pins.  Trace the problem to the dependencies being tied to the wrong part .. pio_sam4lc4c.h instead of the pio_sam4ls4.h

I am unable to make it point to correct file as changing the part under properties does not appear to have any effect on this.

Short of overwritting the 4LC file, why is this not working.  Have I missed something?