I'm using ADuCM360 IDE in oder to build some examples.
In an example, included cstddef(#include <cstddef>) library from GNU.
I also installed GNU(Version:5.3 2016q1) on my PC.
Below picture is errors when i try to build CN0359 source code.
but, when i right-click on cstddef and choose Open Declaration
please let me know what wrong
Thank all !
Please refer attached file, it is my current project.
You can uncomment line 29 (#include "SysTick.h") in ISR.c file to see errors !
And i got CN0359 source code here: http://www.analog.com/CN0359-DesignSupport
Thank you !
Thank for your kindly support !
I follow your shared link to create new project using C++
But when i run debug my project run into Default_Handler interrupt.
I don't know what wrong with my code.
Please refer attached project and please point me how to make it rigth !
Thank you so much !
Can you please provide you CN0359 project that you put together in ADuCM360 IDE? Because the available source code for CN0359 is not in ADuCM36x template format it will be more easy to check directly your project.
As I already said your project does not respect the ADuCM36x template format. The available CN0359 software package was not developed based on the project structure provided by ADuCM36x template. So you will need to adapt it if you want to use this.
To do this please check our documentation regarding ADuCM360 IDE:
1. Tool Chain Setup User Guide [Analog Devices Wiki] - here you can find the possibilities for creating a new project (keep in mind that the CN0359 have .c and .cpp source so you will need to use C++ template).
2. Reference Designs [Analog Devices Wiki] - here you can find our existing projects for EVAL-ADICUP360 board in order to check the project structure (in your project all files from CN0359 are in src folder). The ADuCM360_demo_cn0338 project is a C++ project.
3. The ADuCM36x template already contain the startup, reset, exception handler, system clock configuration and vector table. So those parts should not be taken from CN0359 project.
Regarding your question about cstddef.h header: it is an GCC system header which comes with GCC. You have it added manually in the scr folder. This is not necessary.
Your attached project work fine.
I also clone CN0338 project then add some code and it work too.
I will try include CN0359 source code, can you please give me some suggestions ?