DA14580 and DA14583
3 months agoPosted by haribabu413 40 points 3 replies
I have been trying to interface MPU6050 Gyro-Accelerometer (using I2C) and External Flash P25Q32H(using SPI). for this i have done modifications in "user_periph_setup.h" to interface External SPI flash as per my Custom board with DA14583.
// SPI connection to external flash
#define SPI_GPIO_PORT GPIO_PORT_2
#define SPI_CLK_PIN GPIO_PIN_0
#define SPI_CS_PIN GPIO_PIN_8
#define SPI_DI_PIN GPIO_PIN_9
#define SPI_DO_PIN GPIO_PIN_4
as long as i run the application in sysRAM it works fine.
Later I burn the Application to internal flash of DA14583 using Smart Snippet Toolbox using SPI Flash Programmer. Then Reset the DA14583 but its not working .
Did i miss any settings to invoke the secondary bootloader in OTP of DA14583 to transfer the Application from internal flash to SysRAM to execute.
Later i have been tried by setting
OTP Header and Programmed through SS as below
0x7F04 : Application Programmed Flag #2 0xA5A51234 = Application is in OTP
0x7F00 : Application Programmed Flag #1 0x1234A5A5 = Application is in OTP
but it was also not worked. It looks like it stays in primary Boot only.