Other Parts Discussed in Thread: SYSCONFIG
Hello Expert,
I have a question regarding the Flash API.
Using example projects such as flash_io I have sucessfully read and written into flash.
However when trying to use Flash API in empty project (with sysconfig updated) such as this:
-------------------------------------------------------------------------------------------------
#include <stdlib.h>
#include "ti_drivers_config.h"
#include "ti_board_config.h"
#include <board/flash.h>
void empty_main(void *args)
{
int32_t status;
Flash_Handle handle;
uint8_t offset;
uint32_t buffer[100];
Drivers_open();
/* Open Flash drivers with OSPI instance as input */
Board_driversOpen();
status = Flash_read(handle, offset, buffer, 100);
-------------------------------------------------------------------------------------------------
The CCS produces error
undefined first referenced
symbol in file
--------- ----------------
Flash_close ./syscfg/ti_board_open_close.o
Flash_open ./syscfg/ti_board_open_close.o
Flash_read ./empty.o
This seems like the clang cannot find the flash driver.
This happens even when I copy the code from ospi_flash_io example.
Are there any other necessary changes to call the API in empty project besides adding flash to sysconfig and including the libraries mentioned in the code above ?
Thank you for your advice and have a great day!
Dominik