I create a project using the on-line START project creator using a SAML11 microcontroller. I'm using the trustzone libraries. I compile the default starter project, it works. I rebuild the starter project, it still works. I add a few C source modles to the project using the "add" existing items from the solution explorer. I modify the main program only very slightly, like add an include line. The I rebuild, and the whole project fails to compile usually with the following errors:
Severity Code Description Project File Line
Error recipe for target 'driver_init.o' failed MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\Debug\Makefile 296
Error recipe for target 'hal/src/hal_spi_m_sync.o' failed MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\Debug\Makefile 359
Error recipe for target 'hal/src/hal_usart_sync.o' failed MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\Debug\Makefile 366
Error recipe for target 'hal/utils/src/utils_event.o' failed MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\Debug\Makefile 380
Error unknown type name 'WEAK' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\driver_init.c 16
Error expected '=', ',', ';', 'asm' or '__attribute__' before 'nsc_periph_clock_init' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\driver_init.c 16
Warning implicit declaration of function 'nsc_periph_clock_init' [-Wimplicit-function-declaration] MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\driver_init.c 43
Warning implicit declaration of function 'CONTAINER_OF' [-Wimplicit-function-declaration] MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_spi_m_sync.c 137
Error expected expression before 'struct' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_spi_m_sync.c 137
Error expected expression before 'struct' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_spi_m_sync.c 165
Warning implicit declaration of function 'CONTAINER_OF' [-Wimplicit-function-declaration] MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_usart_sync.c 239
Error expected expression before 'struct' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_usart_sync.c 239
Error expected expression before 'struct' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\src\hal_usart_sync.c 266
Warning implicit declaration of function 'round_up' [-Wimplicit-function-declaration] MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\utils\include\utils_event.h 54
Error variably modified 'mask' at file scope MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\utils\include\utils_event.h 78
Message in expansion of macro 'EVENT_MASK_SIZE' MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\utils\include\utils_event.h 78
Error variably modified 'subscribed' at file scope MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\utils\src\utils_event.c 41
Warning implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration] MySAML11Project2 D:\Velentium2\4_Design_Outputs\Inductive_Digital_ Comm_Impl_iCE40UP5K\Atmel\MySAML11Project2\MySAML11Project2\hal\utils\src\utils_event.c 95
This is very frustrating!!!! I put everything back, and this still happens! Any ideas to what is going wrong?