analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
873 stars 1.63k forks source link

Building for maxim targets looking for xilinx c files #1713

Closed EdwinFairchild closed 1 year ago

EdwinFairchild commented 1 year ago

Following this guide : here I have tried to get into some of the project folders and build for maxim targets with no luck. MAXIM_LIBRARIES is set and my maxim project build fine. Just cant get noOs to build

make PLATFORM=maxim TARGET=max32655
---INFO enter Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk, RISCV_CORE=, RISCV_LOAD=
---INFO ARM ONLY, SRAM_SIZE=0x20000
---INFO exit  Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk
[15:13:14] Building for maxim
---INFO enter Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk, RISCV_CORE=, RISCV_LOAD=
---INFO ARM ONLY, SRAM_SIZE=0x20000
---INFO exit  Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk
[15:13:15]  Building for target max32655
[15:13:15] Creating IDE project
[15:13:15]  Linking srcs to created project
---INFO enter Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk, RISCV_CORE=, RISCV_LOAD=
---INFO ARM ONLY, SRAM_SIZE=0x20000
---INFO exit  Libraries/CMSIS/Device/Maxim/MAX32655/Source/GCC/max32655_memory.mk
[15:13:16] [CC] no_os_gpio.c
[15:13:16] [CC] no_os_spi.c
[15:13:16] [CC] axi_adc_core.c
/home/eddie/playground/no-OS/projects/adrv9001/build/app/noos/drivers/axi_core/axi_adc_core/axi_adc_core.c: In function 'axi_adc_update_active_channels':
/home/eddie/playground/no-OS/projects/adrv9001/build/app/noos/drivers/axi_core/axi_adc_core/axi_adc_core.c:557:10: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  557 |   if (ch > (adc->num_slave_channels - 1))
      |          ^
/home/eddie/playground/no-OS/projects/adrv9001/build/app/noos/drivers/axi_core/axi_adc_core/axi_adc_core.c:571:11: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  571 |    if (ch > (adc->num_slave_channels - 1))
      |           ^
[15:13:16] [CC] axi_dac_core.c
[15:13:16] [CC] axi_dmac.c
make[1]: *** No rule to make target '/home/eddie/playground/no-OS/projects/adrv9001/build/app/noos/drivers/platform/maxim/max32655/xilinx_axi_io.c', needed by '/home/eddie/playground/no-OS/projects/adrv9001/build/objs/adrv9001/build/app/noos/drivers/platform/maxim/max32655/xilinx_axi_io.o'.  Stop.
make: *** [../../tools/scripts/generic.mk:319: all] Error 2
rbolboac commented 1 year ago

Hi @EdwinFairchild ,

We do not support adrv9001 project for maxim platforms. May I ask what are you exactly searching for? If you simply want to try and build out our maxim projects you might take a look at the following projects which are supported on maxim platform:

https://github.com/analogdevicesinc/no-OS/tree/master/projects/ad74413r supports targets max78000 and max32655 https://github.com/analogdevicesinc/no-OS/tree/master/projects/adt7420-pmdz supports targets max78000 and max32655 https://github.com/analogdevicesinc/no-OS/tree/master/projects/adt75 support target max32650 https://github.com/analogdevicesinc/no-OS/tree/master/projects/adxrs290-pmdz supports target max32655 https://github.com/analogdevicesinc/no-OS/tree/master/projects/eval-adxl355-pmdz supports targets max32650, max32655 and max78000

or if you do not want to a specific device, you might want to run iio_demo project which simulates and ADC and DAC device: https://github.com/analogdevicesinc/no-OS/tree/master/projects/iio_demo which supports targets max32650, max32655 and max78000

Best Regards, Ramona

rbolboac commented 1 year ago

Hi @EdwinFairchild ,

Did the answer above solve your problem? Can we close this issue?

Thanks, Ramona

amiclaus commented 1 year ago

Closing issue due to lack of reply / considered as answered.