DA14531 - Writing & Reading Flash-Data

Hello, 

I am coding based on the ble_app_peripheral example from SDK6.0.16.1144 trying to write and read data from flash. For example I have a char with the value "00000" and would like to write into flash. I also would like to read the value of the respective ragister from flash and compare to my variable. The function I created to perform the write & read looks as follows: 

uint32_t PC_FLASH_ADR = 0x20000;
char default_passcode[] = "00000";

void check_nvs_available()
{
	// Disable HW RST on P0_0 so it can be used as SPI MOSI.
	GPIO_Disable_HW_Reset();
	
	// Read PC Flash --> IF PC Flash was not written in advance rewrite with default PC | ELSE do nothing 
	int8_t ret;
	uint32_t bytes_read;
	char buffer_pc;
	uint8_t data_read[5] = { 0 };
	ret = spi_flash_read_data(&data_read[0],PC_FLASH_ADR , sizeof(data_read), &bytes_read);
	while (bytes_read) {
		buffer_pc = (buffer_pc + bytes_read);
		bytes_read--;
	}
	if (buffer_pc == 0){
		uint32_t pc_bytes_written;
		uint8_t data[5] = { default_passcode[0], default_passcode[1], default_passcode[2], default_passcode[3], default_passcode[4]};
		ret = spi_flash_write_data(&data[0], PC_FLASH_ADR, sizeof(data), &pc_bytes_written);
	}
	
	// Reduce power consumption by putting flash into sleep mode 
    spi_flash_power_down();
	
	// Re-enable HW reset input (must be disabled if/when further operation on
  // external flash are performed) - must set as input first!
	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, INPUT_PULLDOWN, PID_GPIO, false);
    GPIO_Enable_HW_Reset();
    
}

The functions should check the Flash if data was already written to PC_FLASH_ADR. IF this is the case nothting should be done. If no data was written to PC_FLASH_ADR the values of default_passcode should be written into flash starting at PC_FLASH_ADR. 
Are there any issues with my code? 

Parents
  • Hi patipat3110,

    Thank you for posting your question online.
    I can see that you have followed the SDK6 Peripheral Drivers Tutorial: 5. DA14531 SPI Flash — DA145XX Tutorial SDK peripherals (renesas.com)
    Have you tested this from your side and it is not working?
    From what you have shared, I believe the read operation has been implemented correctly. I would personally not use a while function since you already know the size of the data you have just read from the SPI Flash. You could just use a for statement and at the end compare the read data with the default_passcode you have set to see if you need to write your passcode into the SPI Flash.
    Your approach seems correct to me, but are you facing any issues?

    Kind Regards,
    OV_Renesas

  • Hi OV_Renesas, 

    Indeed I have followed the linked Tutorial. I have tested it and it does not seem to work. First of all when I add the GPIO_Disable_HW_Reset as well as the spi_flash_power_down & GPIO_ConfigurePin & GPIO_Enable_HW_Reset functions I am running into a strange phenomenon. After building and starting a debug session I need to click three times on run and get three different interruption points as shown in the screencaptures I added to this comment. When I click a fourth time on "run" the debug session runs as desired. 

    First click on "run"

    Second click on "run" 

    Third click on "run"

    This phenomenon disappears when removing the functions named above. 
    Anyway it seems that the data is not read or written correctly. I set my default_passcode to "11111" and checked that if the passcode is not corresponding to "11111" it should be written accordingly. I have added a few printf-statements so that I know if data is written. I was expecting the data to be written at the first try, because the data in the NVS was not exual to "11111", but at the second try I would not expect to again perform a write. But it seems that I read "00000" from flash even if I write "11111". Here is the code: 

    char default_passcode[] = "11111";
    void check_nvs_available()
    {
    	// Disable HW RST on P0_0 so it can be used as SPI MOSI.
    	GPIO_Disable_HW_Reset();
    	arch_printf("GPIO Disabled \n\r");
    	
    	// Read PC Flash --> IF PC Flash was not written in advance rewrite with default PC | ELSE do nothing 
    	int8_t ret;
    	uint32_t bytes_read;
    	char buffer_pc[5];
    	uint8_t data_read[5] = { 0 };
    	ret = spi_flash_read_data(&data_read[0],PC_FLASH_ADR , sizeof(data_read), &bytes_read);
    	arch_printf("Read PC from Flash! \n\r");
    	arch_printf("read Status: %d \n\r", ret);
    	arch_printf("bytes read:");
    	//arch_printf("\n\rRead Status: %d", ret);
    	//arch_printf("\n\rBytes Read:");
    	while (bytes_read) {
    		arch_printf("%d", data_read[sizeof(data_read) - bytes_read]);
    		buffer_pc[data_read[sizeof(data_read) - bytes_read]] = bytes_read + '0';
    		bytes_read--;
    	}
    	arch_printf(" \n\r buffer_pc = %c \n\r", buffer_pc);
    	bool data_read_empty;
    	if (strncmp(buffer_pc, default_passcode,5)){		
    		arch_printf("equal \n\r");
    	}
    	else{
    		uint32_t pc_bytes_written;
    		arch_printf("Not equal -> WRITE PC to Flash! \n\r");
    		uint8_t data[5] = { default_passcode[0], default_passcode[1], default_passcode[2], default_passcode[3], default_passcode[4]};
    		ret = spi_flash_write_data(&data[0], PC_FLASH_ADR, sizeof(data), &pc_bytes_written);
    	}
    	// Reduce power consumption by putting flash into sleep mode 
        spi_flash_power_down();
    	
    	// Re-enable HW reset input (must be disabled if/when further operation on
      // external flash are performed) - must set as input first!
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, INPUT_PULLDOWN, PID_GPIO, false);
        GPIO_Enable_HW_Reset();
    }
     

    everytime I run the code in the debug session I get the following output in TeraTerm: 

    GPIO Disabled
    
    Read PC from Flash!
    
    read Status: 0
    
    bytes read:00000
    
     buffer_pc = À
    
    equal
    
    Read UID from Flash!

    Therefore my guess is that the bytes I read are "00000" as printed and there seems to be something wrong with the write statement or the compare statement as I get always an "equal" printed independently from my "default_passcode". 

    Thanks for your support. 

  • Hi OV_Renesas, 

    thanks for the clarification. Here is the code snippet I am working with in user_peripheral_c. 

    #include "rwip_config.h"             // SW configuration
    #include "gap.h"
    #include "app_easy_timer.h"
    #include "user_peripheral.h"
    #include "user_custs1_impl.h"
    #include "user_custs1_def.h"
    #include "co_bt.h"
    #include "spi_flash.h"
    #include "user_periph_setup.h"
    #include <stdlib.h>
    #include "arch_console.h"
    
    uint32_t PC_FLASH_ADR = 0x2000;
    uint8_t default_pass[] = { 1, 2, 3, 4, 5};
    uint8_t no_pass_written[] = {255, 255, 255, 255, 255};
    
    void read_pc()
    {
    	arch_printf("\n\r----- %s -----\n\r", __FUNCTION__);
    	// Disable HW RST on P0_0 so it can be used as SPI MOSI.
    	GPIO_Disable_HW_Reset();
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, OUTPUT, PID_SPI_DO, false);
    	arch_printf("GPIO Disabled \n\r");
    	// Wakeup flash from sleep mode to interact with it 
    	int8_t err;
    	err = spi_flash_release_from_power_down();
    	arch_printf("SPI wakeup status: %d \n\r", err);
    	err = spi_flash_is_busy();
    	arch_printf("SPI busy status: %d \n\r", err);
    		
    	int8_t ret;
    	uint32_t bytes_read;
    	uint8_t data_read[5] = { 0 };
    	//int counter; 
    	ret = spi_flash_read_data(&data_read[0],PC_FLASH_ADR , sizeof(data_read), &bytes_read);
    	arch_printf("Read PC from Flash! \n\r");
    	arch_printf("read Status: %d \n\r", ret);
    	arch_printf("PC bytes read:");
    	
    	// Print the PC read from flash --> DEBUG 
    	for(int i=0;i<5;i++)
    	{
    		arch_printf(" %d", data_read[i]);
    	}
    	arch_printf("\n\r");
    	
    	// Reduce power consumption by putting flash into sleep mode 
    	err = spi_flash_power_down();
    	arch_printf("SPI goto sleep status: %d\n\r",err);
    	// Re-enable HW reset input (must be disabled if/when further operation on
      // external flash are performed) - must set as input first!
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, INPUT_PULLDOWN, PID_GPIO, false);
    	GPIO_Enable_HW_Reset();
    	
    }
    
    
    void check_nvs_available()
    {
    	arch_printf("\n\r----- %s -----\n\r", __FUNCTION__);
    	// Disable HW RST on P0_0 so it can be used as SPI MOSI.
    	GPIO_Disable_HW_Reset();
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, OUTPUT, PID_SPI_DO, false);
    	arch_printf("GPIO Disabled \n\r");
    	// Wakeup flash from sleep mode to interact with it 
    	spi_flash_release_from_power_down();
    
    	
    	//int8_t rets;
    	//rets = spi_flash_block_erase(PC_FLASH_ADR, SPI_FLASH_OP_SE);
    	//arch_printf("\n\rErase Status: %d \n\r", rets);
    	
    	// Read PC Flash --> IF PC Flash was not written in advance rewrite with default PC | ELSE do nothing 
    	int8_t ret;
    	uint32_t bytes_read;
    	uint8_t data_read[5] = { 0 };
    	int counter = 0; 
    	ret = spi_flash_read_data(&data_read[0],PC_FLASH_ADR , sizeof(data_read), &bytes_read);
    	arch_printf("Read PC from Flash! \n\r");
    	arch_printf("read Status: %d \n\r", ret);
    	arch_printf("PC bytes read:");
    	
    	// Print the PC read from flash --> DEBUG
    	for(int i=0;i<5;i++)
    	{
    		arch_printf(" %d", data_read[i]);
    	}
    	arch_printf("\n\r");
    	bool passcode_empty=false;
    	
    	for(int j=0;j<5;j++)
    	{
    		if(data_read[j] == no_pass_written[j])
    		{
    			counter++;
    		}
    	}
    	if(counter ==5)
    	{
    		passcode_empty = true;
    		arch_printf("PC Empty -> Write defualt PC to Flash! \n\r");
    	}
    	else
    	{
    		passcode_empty = false;
    		arch_printf("PC Not Empty \n\r");
    	}
    	
    	if(passcode_empty)
    	{
    		arch_printf("Writing PC!!!! \n\r");
    		uint32_t pc_bytes_written;
    		uint8_t data[5] = { default_pass[0], default_pass[1], default_pass[2], default_pass[3], default_pass[4]};
    		ret = spi_flash_write_data(&data[0], PC_FLASH_ADR, sizeof(data), &pc_bytes_written);
    		arch_printf("\n\rWrite Status: %d", ret);
    	  arch_printf("\n\rBytes Written: %d", pc_bytes_written);
    		arch_printf("\n\r Written: %d %d %d %d %d \n\r",default_pass[0], default_pass[1], default_pass[2], default_pass[3], default_pass[4]);
    	}
    	
    	// Reduce power consumption by putting flash into sleep mode 
    	spi_flash_power_down();
    	// Re-enable HW reset input (must be disabled if/when further operation on
      // external flash are performed) - must set as input first!
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, INPUT_PULLDOWN, PID_GPIO, false);
    	GPIO_Enable_HW_Reset();
    	
    }
    
    void user_app_init(void)
    {
        app_param_update_request_timer_used = EASY_TIMER_INVALID_TIMER;
    
        // Initialize Manufacturer Specific Data
        mnf_data_init();
    	
        // Initialize Advertising and Scan Response Data
        memcpy(stored_adv_data, USER_ADVERTISE_DATA, USER_ADVERTISE_DATA_LEN);
        stored_adv_data_len = USER_ADVERTISE_DATA_LEN;
        memcpy(stored_scan_rsp_data, USER_ADVERTISE_SCAN_RESPONSE_DATA, USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN);
        stored_scan_rsp_data_len = USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN;
    		
    	
    	arch_printf("\n\r%s", __FUNCTION__);
        default_app_on_init();
    	
    	check_nvs_available();
    	read_pc();
    		
    }

    In TeraTerm I get the following output: 

    As can be seen from the TeraTerm outut the write and read commands are retuned with a value of "0" which indicates that no error occurred. Anyway the read command in read_pc()-function does not return the expected changed value but still the empty value. Am I messing something up in the initialiation of the flash or in the Pin Configuration? 

    I have the following code in user_periph_setup.h:

    /**
     ****************************************************************************************
     *
     * @file user_periph_setup.h
     *
     * @brief Peripherals setup header file.
     *
     * Copyright (C) 2015-2019 Dialog Semiconductor.
     * This computer program includes Confidential, Proprietary Information
     * of Dialog Semiconductor. All Rights Reserved.
     *
     ****************************************************************************************
     */
    
    #ifndef _USER_PERIPH_SETUP_H_
    #define _USER_PERIPH_SETUP_H_
    
    /*
     * INCLUDE FILES
     ****************************************************************************************
     */
    
    #include "gpio.h"
    #include "uart.h"
    #include "spi.h"
    #include "spi_flash.h"
    #include "i2c.h"
    #include "i2c_eeprom.h"
    
    
    
    /*
     * DEFINES
     ****************************************************************************************
     */
    
    /****************************************************************************************/
    /* UART2 configuration                                                                  */
    /****************************************************************************************/
    // Define UART2 Tx Pad
    #if defined (__DA14531__)
        #define UART2_TX_PORT           GPIO_PORT_0
        #define UART2_TX_PIN            GPIO_PIN_5
    #else
        #define UART2_TX_PORT           GPIO_PORT_0
        #define UART2_TX_PIN            GPIO_PIN_4
    #endif
    
    // Define UART2 Settings
    #define UART2_BAUDRATE              UART_BAUDRATE_115200
    #define UART2_DATABITS              UART_DATABITS_8
    #define UART2_PARITY                UART_PARITY_NONE
    #define UART2_STOPBITS              UART_STOPBITS_1
    #define UART2_AFCE                  UART_AFCE_DIS
    #define UART2_FIFO                  UART_FIFO_EN
    #define UART2_TX_FIFO_LEVEL         UART_TX_FIFO_LEVEL_0
    #define UART2_RX_FIFO_LEVEL         UART_RX_FIFO_LEVEL_0
    
    
    /****************************************************************************************/
    /* LED configuration                                                                    */
    /****************************************************************************************/
    #if defined (__DA14531__)
        #define LED_GPIO_PORT           GPIO_PORT_0
        #define LED_GPIO_PIN            GPIO_PIN_9
    		#define ERASE_FLASH_PORT					GPIO_PORT_0
    		#define ERASE_FLASH_PIN						GPIO_PIN_8
    #else
        #define BELL_GPIO_PORT           GPIO_PORT_1
        #define BELL_GPIO_PIN            GPIO_PIN_0
    #endif
    
    /****************************************************************************************/
    /* SPI configuration                                                                    */
    /****************************************************************************************/
    // Define SPI Pads
    #if defined (__DA14531__)
        #define SPI_EN_PORT             GPIO_PORT_0
        #define SPI_EN_PIN              GPIO_PIN_1
    
        #define SPI_CLK_PORT            GPIO_PORT_0
        #define SPI_CLK_PIN             GPIO_PIN_4
    
        #define SPI_DO_PORT             GPIO_PORT_0
        #define SPI_DO_PIN              GPIO_PIN_0
    
        #define SPI_DI_PORT             GPIO_PORT_0
        #define SPI_DI_PIN              GPIO_PIN_3
    
    #elif !defined (__DA14586__)
        #define SPI_EN_PORT             GPIO_PORT_0
        #define SPI_EN_PIN              GPIO_PIN_3
    
        #define SPI_CLK_PORT            GPIO_PORT_0
        #define SPI_CLK_PIN             GPIO_PIN_0
    
        #define SPI_DO_PORT             GPIO_PORT_0
        #define SPI_DO_PIN              GPIO_PIN_6
    
        #define SPI_DI_PORT             GPIO_PORT_0
        #define SPI_DI_PIN              GPIO_PIN_5
    #endif
    
    /***************************************************************************************/
    /* Production debug output configuration                                               */
    /***************************************************************************************/
    #if PRODUCTION_DEBUG_OUTPUT
    #if defined (__DA14531__)
        #define PRODUCTION_DEBUG_PORT   GPIO_PORT_0
        #define PRODUCTION_DEBUG_PIN    GPIO_PIN_11
    #else
        #define PRODUCTION_DEBUG_PORT   GPIO_PORT_2
        #define PRODUCTION_DEBUG_PIN    GPIO_PIN_5
    #endif
    #endif
    
    
    /*
     * FUNCTION DECLARATIONS
     ****************************************************************************************
     */
    
    #if DEVELOPMENT_DEBUG
    /**
     ****************************************************************************************
     * @brief   Reserves application's specific GPIOs
     * @details Used only in Development mode (#if DEVELOPMENT_DEBUG)
     *          i.e. to reserve P0_1 as Generic Purpose I/O:
     *          RESERVE_GPIO(DESCRIPTIVE_NAME, GPIO_PORT_0, GPIO_PIN_1, PID_GPIO);
     ****************************************************************************************
     */
    void GPIO_reservations(void);
    #endif
    
    /**
     ****************************************************************************************
     * @brief   Sets the functionality of application pads
     * @details i.e. to set P0_1 as Generic purpose Output:
     *          GPIO_ConfigurePin(GPIO_PORT_0, GPIO_PIN_1, OUTPUT, PID_GPIO, false);
     ****************************************************************************************
     */
    void set_pad_functions(void);
    
    /**
     ****************************************************************************************
     * @brief   Initializes application's peripherals and pins
     ****************************************************************************************
     */
    void periph_init(void);
    
    
    #endif // _USER_PERIPH_SETUP_H_

    And the following code in user_periph_setup.c:

    /**
     ****************************************************************************************
     *
     * @file user_periph_setup.c
     *
     * @brief Peripherals setup and initialization.
     *
     * Copyright (C) 2015-2019 Dialog Semiconductor.
     * This computer program includes Confidential, Proprietary Information
     * of Dialog Semiconductor. All Rights Reserved.
     *
     ****************************************************************************************
     */
    
    /*
     * INCLUDE FILES
     ****************************************************************************************
     */
    
    #include "user_periph_setup.h"
    #include "datasheet.h"
    #include "system_library.h"
    #include "rwip_config.h"
    #include "gpio.h"
    #include "uart.h"
    #include "syscntl.h"
    #include "spi.h"
    #include "spi_flash.h"
    #include "arch_console.h"
    
    /*
     * GLOBAL VARIABLE DEFINITIONS
     ****************************************************************************************
     */
    
    /**
     ****************************************************************************************
     * @brief Each application reserves its own GPIOs here.
     ****************************************************************************************
     */
    
    #if DEVELOPMENT_DEBUG
    
    void GPIO_reservations(void)
    {
    /*
        i.e. to reserve P0_1 as Generic Purpose I/O:
        RESERVE_GPIO(DESCRIPTIVE_NAME, GPIO_PORT_0, GPIO_PIN_1, PID_GPIO);
    */
    	
    	
    	RESERVE_GPIO(SPI_FLASH_CS, SPI_EN_PORT, SPI_EN_PIN, PID_SPI_EN);
    	RESERVE_GPIO(SPI_FLASH_CLK, SPI_CLK_PORT, SPI_CLK_PIN, PID_SPI_CLK);
    	RESERVE_GPIO(SPI_FLASH_DO, SPI_DO_PORT, SPI_DO_PIN, PID_SPI_DO);
    	RESERVE_GPIO(SPI_FLASH_DI, SPI_DI_PORT, SPI_DI_PIN, PID_SPI_DI);
    	
    	#if defined (CFG_PRINTF_UART2)
        RESERVE_GPIO(UART2_TX, UART2_TX_PORT, UART2_TX_PIN, PID_UART2_TX);
    #endif
    	
    #if !defined (__DA14586__)
        //RESERVE_GPIO(SPI_EN, SPI_EN_PORT, SPI_EN_PIN, PID_SPI_EN);
    #endif
    	
    	RESERVE_GPIO(LED, LED_GPIO_PORT, LED_GPIO_PIN, PID_GPIO);
    	RESERVE_GPIO(ERASE_FLASH, ERASE_FLASH_PORT, ERASE_FLASH_PIN, PID_GPIO);
    }
    
    #endif
    
    void set_pad_functions(void)
    {
    /*
        i.e. to set P0_1 as Generic purpose Output:
        GPIO_ConfigurePin(GPIO_PORT_0, GPIO_PIN_1, OUTPUT, PID_GPIO, false);
    */
    	
    	GPIO_ConfigurePin(SPI_EN_PORT, SPI_EN_PIN, OUTPUT, PID_SPI_EN, true);
    	GPIO_ConfigurePin(SPI_CLK_PORT, SPI_CLK_PIN, OUTPUT, PID_SPI_CLK, false);
    	GPIO_ConfigurePin(SPI_DO_PORT, SPI_DO_PIN, OUTPUT, PID_SPI_DO, false);
    	GPIO_ConfigurePin(SPI_DI_PORT, SPI_DI_PIN, INPUT, PID_SPI_DI, false);
    
    #if defined (__DA14586__)
        // Disallow spontaneous DA14586 SPI Flash wake-up
        GPIO_ConfigurePin(GPIO_PORT_2, GPIO_PIN_3, OUTPUT, PID_GPIO, true);
    #else
        // Disallow spontaneous SPI Flash wake-up
       // GPIO_ConfigurePin(SPI_EN_PORT, SPI_EN_PIN, OUTPUT, PID_SPI_EN, true);
    #endif
    
    #if defined (CFG_PRINTF_UART2)
        // Configure UART2 TX Pad
        GPIO_ConfigurePin(UART2_TX_PORT, UART2_TX_PIN, OUTPUT, PID_UART2_TX, false);
    #endif
    
    	GPIO_ConfigurePin(LED_GPIO_PORT, LED_GPIO_PIN, OUTPUT, PID_GPIO, false);
    	GPIO_ConfigurePin(ERASE_FLASH_PORT, ERASE_FLASH_PIN, INPUT_PULLDOWN, PID_GPIO, false);
        
    }
    
    #if defined (CFG_PRINTF_UART2)
    // Configuration struct for UART2
    static const uart_cfg_t uart_cfg = {
        .baud_rate = UART2_BAUDRATE,
        .data_bits = UART2_DATABITS,
        .parity = UART2_PARITY,
        .stop_bits = UART2_STOPBITS,
        .auto_flow_control = UART2_AFCE,
        .use_fifo = UART2_FIFO,
        .tx_fifo_tr_lvl = UART2_TX_FIFO_LEVEL,
        .rx_fifo_tr_lvl = UART2_RX_FIFO_LEVEL,
        .intr_priority = 2,
    };
    
    #endif
    
    /* Default SPI configuration */
    static const spi_cfg_t spi_cfg = {
        .spi_ms = SPI_MS_MODE_MASTER,
        .spi_cp = SPI_CP_MODE_0,
        .spi_speed = SPI_SPEED_MODE_4MHz,
        .spi_wsz = SPI_MODE_8BIT,
        .spi_cs = SPI_CS_0,
        .cs_pad.port = SPI_EN_PORT,
        .cs_pad.pin = SPI_EN_PIN,
    #if defined (__DA14531__)
        .spi_capture = SPI_MASTER_EDGE_CAPTURE,
    #endif
    };
    
    /* SPI flash configuration - assumes use of a Macronix MXR2035F as this is
       present on the DA145xx PRO development kit */
    static const spi_flash_cfg_t spi_flash_cfg = {
        .dev_index = MX25R2035F_DEV_INDEX,
        .jedec_id  = MX25V2035F_JEDEC_ID,
        .chip_size = MX25V2035F_CHIP_SIZE,
    };
    
    void periph_init(void)
    {
    #if defined (__DA14531__)
        // In Boost mode enable the DCDC converter to supply VBAT_HIGH for the used GPIOs
        syscntl_dcdc_turn_on_in_boost(SYSCNTL_DCDC_LEVEL_3V0);
    #else
        // Power up peripherals' power domain
        SetBits16(PMU_CTRL_REG, PERIPH_SLEEP, 0);
        while (!(GetWord16(SYS_STAT_REG) & PER_IS_UP));
        SetBits16(CLK_16M_REG, XTAL16_BIAS_SH_ENABLE, 1);
    #endif
    
        // ROM patch
        patch_func();
    
        // Initialize peripherals
    #if defined (CFG_PRINTF_UART2)
        // Initialize UART2
        uart_initialize(UART2, &uart_cfg);
    #endif
    		// Initialize interface to SPI flash so we can use it from within the application
    		spi_flash_configure_env(&spi_flash_cfg);
    		spi_initialize(&spi_cfg);
    	
        // Set pad functionality
        set_pad_functions();
    
        // Enable the pads
        GPIO_set_pad_latch_en(true);
    }
    

    Thank you very much for the support. 

  • Hi Patipat3110,

    Thank you for the reply.
    I copied the code snippets you shared on the ble_app_peripheral example and on Tera Term I got the following results:

    I am able to read the contents of the SPI Flash from the read_PC function.
    Are you working with the USB Dev Kit? Have you made any other configurations on your project?

    Kind Regards,
    OV_Renesas

  • Hi, 

    thanks for the fast response and the verification that my code is working on your side. Yes, I am working with the USB Dev Kit with following Switch-Settings: 

    In the mean-time I have also copied my code I posted here for user_peripheral_c , user_periph_setup.h and user_periph_setup.c into a fresh, unchanged example project of ble_app_peripheral. To do so I unpacked the zip again and used the respective file. The additional change I did was to change

     

    #undef CFG_PRINTF

    to 

    #define CFG_PRINTF
     

    within da1458x_config_basic.h to enable the arch_printf function as described in the documentation. Beside from these changes I don't have changed anything else. Anyway I am not able to write correctly as I still get this output: 

    Could it be that I have messed with the Flash of the USB Dev Kit within SmartSnippets Toolbox or with some commant I sent for testing purpose? Can I reset the USB Dev Kit to factory settings using SmartSnippets Toolbox? It seems that the issue is coming from the USB Dev Kit as I have performed the same steps you did but I sitll could not write correctly. 

  • Hi Patipat3110,

    Thank you for the reply.
    Yes, you are correct, you should define the CFG_PRINTF macro, I forgot to mention it on my previous answer.

    Could it be that I have messed with the Flash of the USB Dev Kit within SmartSnippets Toolbox or with some commant I sent for testing purpose? Can I reset the USB Dev Kit to factory settings using SmartSnippets Toolbox?

    No, you could not have messed the Flash of the USB Dev Kit by this way.
    I believe the reason you are facing this issue is due to the multiplexing on the DIP switches of the USB Dev Kit. 
    As you can see from the UM-B-125, on 5.4 Default Configuration, page: 11

    You are using the default configuration as well. This is the reason you have set P0_5 as your UART_TX Pin.

    As you can see the DIP Switches have multiple functionalities for pins P0_0 up to P0_6.
    I will try to recreate your code with a USB Dev Kit as well and I will share my results.
    In the meantime can you add a BKPT after you have wrote or erased the SPI Flash and use the Smart Snippets Toolbox to see if you are able to see those changes on the Flash?

    Kind Regards,
    OV_Renesas

  • Hi Patipat3110,

    I used the USB Dev Kit as well and used the exact same project.
    I am able to read/write the SPI Flash as expected.

    I used the exact same DIP Switch configuration as well.

    Kind Regards,
    OV_Renesas

  • Hi OV_Renesas, 

    Previously I was also able to erase and write the flash successfully until at some point it stopped working. I am still able to read, write and erase the flash using SmartSnippet Toolbox but I am not able to erase or write the flash using my code in a debug session within µKeil5. The strange thing is, that I am able to read successfully, this can be confirmed by writing data into some adress in the flash using Toolbox and then reading it using my code. 

    Where should I set the breakpoint exactly, as I tried to set a BKPT within user_peripheral.c after writing the PC in check_nvs_available(); but the BKPT is ignored in the debug session. When starting a debug session and I set the BKPT using the Disassembly I am not getting any communication in Tera Term anymore when clicking "run". After I reached the BKPT set in Disassembly I switched to Toolbox and read the Flash and cool not see the data I expected to be written. Therefore it seems that I am not writing correctly. 

    These are the steps I am performing when changing code, building and starting debug to run the code and check if it is working properly. 
    - After changing something in the code in one or multiple files I save these changes by pressing CTRL + S 
    - After saving these changes I click on "Build" or "Rebuild" if changes have been done in more than one file (Marked in red circle with 1)
    - After building was finished successfully, which I check in the "Build Output" Window I click on "Start / Stop Debug Session" (Marked in red circle with 2)
    - When the debug view has loaded I click on "run" and observe the output in Tera Term (Marked in red circle with 3)
    - Sometime I cklick on "RESET" to let it run again in the same debug session to check if changes occurred. (Marked in BLUE circle with 4)
    - When finished with the respective debug session I click on "Stop" (which I forgot sometimes) and again click on "Start / Stop Debug Session" to stop the debug session and change the code again. (Marked in red circle with 5) 

    I have marked the respective buttons in the screenshot below. Maybe I am doing something wrong which results in a strange behavior. 

    Can I share any kind of log info created during the debug session or when building that could help in resolve the phenomenon? Currently this behavior is blocking my development as I am not able to write the flash when necessary. 

    Thank you very much, 
    patipat3110

  • Hi Patipat3110,

    Thank you for the reply.
    Regarding the BKPT:
    The debugger is ignoring your BreakPoints due to the Optimization of the code.
    Please go on Option for Target:

    On C/C++ Tab you can find the Optimization:

    The ble_app_peripheral example can be built up to -O1 Image size. However, when I set it to -O1 I am not able to see the values printed on Tera Term, but via SmartSnippets Toolbox I can see that the write was successful on the SPI Flash.
    I have attached a zip with the ble_app_peripheral example that is working on my USB Dev Kit to write/read messages. 
    Project was created with SDK v6.0.18, USB Dev Kit. In case there is path issues when building it, there is a python script inside the zip file. 
    Use the following command on CMD:

    python dlg_make_keil5_env_v2.000.py -sdkpath clean

    and then use the python script again to set your SDK path, for instance for me it is:
    python dlg_make_keil5_env_v2.000.py -sdkpath "C:\New_Workspace_DA14531\6.0.18.1182.1"

    After that you should be able to build the project.
    If you could probe a logic analyzer on the SPI pins we could also have a better idea of what is happening during the write and read procedure.
    ble_app_peripheral_SPI_flash_Macronix_USBdevKit.zip

    Kind Regards,
    OV_Renesas

  • Hi, 

    thanks for the zip and python file. When I tried to build the project I got multiple errors. I then did run the respective command to clean the sdkpath and then to set sdk path. 

    python dlg_make_keil5_env_v2.000.py -sdkpath clean

    python dlg_make_keil5_env_v2.000.py -sdkpath "C:\Users\patip\OneDrive\Desktop\SDK_6.0.16.1144\DA145xx_SDK\6.0.16.1144"

    I needed to remove "armclang" from "DA14585_586_armclang.sct" and "DA14531_armclang.sct" as I did not have the files with "armclang" in the respective path. Here is a *.txt file showing th output in the cmd, for me it seems that the python file did run successfully. 

    CMD-Output_pythonscript.txt

    But even after running the python file I am still not able to build the project as I get the following errors and warnings in the Build Output Window: 

    Build_output_window.txt
    Build started: Project: ble_app_peripheral
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin'
    Build target 'DA14531'
    compiling arch_console.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling system_DA14531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling nmi_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_main.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hardfault_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling nvds.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling jump_table.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_sleep.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_system.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_hibernation.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_rom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling chacha20.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_cs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_hdr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling syscntl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling gpio.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling wkupct_quadec.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling battery.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling adc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_flash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c_eeprom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hw_otpc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling uart.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling trng.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling dma.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwble.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwip.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_585.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling ble_arp.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling attm_db_128.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custom_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_default_handlers.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_entry_point.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_timer.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bond_db.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_whitelist.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs_config.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_def.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_periph_setup.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_impl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_peripheral.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    ".\out_DA14531\Objects\ble_app_peripheral_531.axf" - 72 Error(s), 360 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:05

    Can this be related to the fact that I am using the SDK6.0.16? 

  • Hi Patipat3110,

    Thank you for the reply.
    Yes, you are facing these errors due to SDK v6.0.16. 
    SDK v6.0.16 is using ARM Compiler v5 to build the projects, while SDK v6.0.18 use ARM Compiler v6.
    The script I shared is for ARM Compiler v6 and SDK v6.0.18.
    Please try with the attached script on this answer which is for SDK v6.0.16 and ARM Compiler v5.
    dlg_make_keil5_env_v2.000.zip

    Kind Regards,
    OV_Renesas

  • Hi, 
    thanks for the fast feedback. I performed the steps with the new script for SDK v6.0.16 but I am still not able to build the project as I am still facing multiple warning of old systax and errors that source input files are not in the directory 

    Rebuild started: Project: ble_app_peripheral
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'DA14531'
    compiling nvds.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_main.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling nmi_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_console.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    assembling startup_DA14531.s...
    compiling system_DA14531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hardfault_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_sleep.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling jump_table.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_system.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_rom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_hibernation.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling chacha20.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_cs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_hdr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling syscntl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling gpio.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling wkupct_quadec.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling battery.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling adc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_flash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c_eeprom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hw_otpc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling uart.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling trng.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling dma.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwble.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwip.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_585.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling ble_arp.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling attm_db_128.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custom_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_default_handlers.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_entry_point.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_timer.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bond_db.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_whitelist.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs_config.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_def.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_periph_setup.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_impl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_peripheral.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    ".\out_DA14531\Objects\ble_app_peripheral_531.axf" - 72 Error(s), 360 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:05

    Best Regards, 
    Patipat3110

Reply
  • Hi, 
    thanks for the fast feedback. I performed the steps with the new script for SDK v6.0.16 but I am still not able to build the project as I am still facing multiple warning of old systax and errors that source input files are not in the directory 

    Rebuild started: Project: ble_app_peripheral
    *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARM_Compiler_5.06u7\Bin'
    Rebuild target 'DA14531'
    compiling nvds.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_main.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling nmi_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_console.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    assembling startup_DA14531.s...
    compiling system_DA14531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hardfault_handler.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_sleep.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling jump_table.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_system.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_rom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling arch_hibernation.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling chacha20.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_cs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling otp_hdr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling syscntl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling gpio.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling wkupct_quadec.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling battery.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling adc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling spi_flash.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling i2c_eeprom.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling hw_otpc_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling uart.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling trng.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling dma.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwble.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rwip.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_585.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling ble_arp.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling rf_531.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling attm_db_128.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custom_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling custs1_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling prf.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_default_handlers.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_security_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bass_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_findme_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_proxr_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_diss_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_suotar_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_entry_point.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_msg_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_security.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_timer.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_task.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_customs_common.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_bond_db.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_utils.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling app_easy_whitelist.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs_config.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_def.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_periph_setup.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_custs1_impl.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    compiling user_peripheral.c...
    Warning: C3910W: Old syntax, please use '-M'.
    Warning: C3910W: Old syntax, please use '--thumb'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    Warning: C3910W: Old syntax, please use '-I'.
    "no source": Error:  #5: cannot open source input file "da1458x_config_basic.h": No such file or directory
    da1458x_config_basic.h: 0 warnings, 1 error
    ".\out_DA14531\Objects\ble_app_peripheral_531.axf" - 72 Error(s), 360 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:05

    Best Regards, 
    Patipat3110

Children
  • Hi Patipat3110,

    Thank you for the reply.
    Could you try with our latest SDK v6.0.18?
    I will share another project for SDK v6.0.16 which works on my side as well.

    KInd Regards,
    OV_Renesas

  • Hi Patipat3110,

    Please find attached a project that works on my side with your code snippet. The zip attached is based on SDK v6.0.16 and runs well on USB Dev Kit.

    Kind Regards,
    OV_Renesasble_app_peripheral_SPI_USBDEVKIT.zip

  • Hi OV_Renesas, 

    I analysed this behavior on my side and could observe that writing / erasing and reading from flash works perfectly fine when I don't have any arch_printf(); function in my code. I did verify this by commenting the print functions out, building the code and start the debug session. After starting the debug session I connected to SmartSnippets Toolbox and read the flash data at respective adresses. For example when erasing the flash I could confirm that I did erase by reading "FF" in the respective address. When writing a specific value to addresses I did see the values in SmartSnippets Toolbox. Therefore it seems that I had some strange behavior of the flash when using arch_printf(); function and TeraTerm. 
    But as I have confirmed that everything is working as desired and the print functionality is only used during development and won't be used on my custom board I don't think it is anecessary to analyse it further. 

    If you have any more questions because you would like to dig deeper in this topic let me know. 

    Thanks, 
    patipat3110

  • Hi Patipat3110,

    Thank you for the reply.
    Glad you were able to read/write/erase the SPI Flash like you wanted. 
    Did you notice this behavior with arch_printf on the project I shared as well? Could you share on a zip the project that you noticed this behavior so I could take a look?
    This could be an issue of the USB dev kit since the UART and SPI pins are being multiplexed. 
    If you found any answer helpful, you could verify them so you can help others in the community as well.

    Kind Regards,
    OV_Renesas