I am trying to build periph_spi for lpc_board_nxp_lpcxpresso_1769. Although all referenced projects are open I get a lot of errors, undeclared types, conflicting types, ... The reason is mainly that the folders where the definition files are, are not included or the name of the .h file is missing in #include. I have corrected quite a few, but the end is not in sight.
In another framework I have been using long time there is a .h file, where there are most of the .h files needed and that file in included in .c files. Is there in MCUExpresso something like that or should one, e.g. who uses examples, make all manually.
My target is to test PN5180 with LPC1769. When I open the periph_spi example, many other projects are opened. I would like to keep it simple, so one project would be enough. Are there any simple instructions how to dismantle this group of projects.
Hello @paulisammalisto
We can also import just the SPI demo without other demos, but it is essential to include the chip and board libraries. This is because the SPI demo utilizes APIs from both the chip and board libraries. Please follow the import instructions below:
Hope it helps .
Alice
I am facing still the same problems. In periph_spi example I have added inc directories to MCU C compiler Includes and also #include definitions to files, that are complaining undefined variables or types. Quit weird is that even though a file of types, e.g. spi_17xx_40xx.h, is included in spi.c and I can open it from there, SPI_DATA_SETUP_T is unknown type. I am mainly using another framework and there is main.h that includes most of the needed .h file includes, so you just include main.h and all work smoothly. I think that also in MCUXpresso IDE could be something like that but I have not (yet) found it.
I suddenly remembered that some 10 years ago I was in the same situation. Somehow I bought LPC-P11C24 board (Olimex) for something, but I could not build an example in a reasonable time, so I gave up.
I am going to build an access control system using ICODE 15693 cards and NXP reader PN5180. The data will be sent via LORA to the server. Maybe I have to change the processor to another that I know better.
Hello @paulisammalisto
Could you please record a short video demonstrating how to import the LPC demo 'periph_spi' in MCUXpresso IDE? I help you check. Thank you.
BR
Alice