JN5189

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
948 次查看
paidaxing
Contributor III
Hello, my question:When i use the jn5189dk6_spi_polling_transfer in SDK example,i change the data I change the written data, it can't read out stably.
0 项奖励
回复
1 解答
921 次查看
paidaxing
Contributor III

Hello,

My SDK version is 2.6.5(2022-3-10).

I modify the data in g_buffer(/* Set the buffer */
for (i = 0; i < PAGE_SIZE; i++)
{
g_buffer[i] = i;
}), 

print the data in the flash(val = (uint8_t *)(FSL_FEATURE_SPIFI_START_ADDR + i);
PRINTF(" %d %d ", i, *val);) ,

download the program to the target board and open the serial terminal,the data read print is different from the data written.

So,i restore the original program,it also can not print the data .

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
936 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @paidaxing,

Just to confirm, which version of the SDK are you using?

Could you please clarify what do you mean with "can't read out stably"? Does the example without modifications work properly? Is it possible for you to capture the data transmission with a logic analyzer/oscilloscope?

Could you please help us with more details about the main modifications you have done to the base project? How are you modifying the source buffer?

Regards,
Eduardo.

0 项奖励
回复
922 次查看
paidaxing
Contributor III

Hello,

My SDK version is 2.6.5(2022-3-10).

I modify the data in g_buffer(/* Set the buffer */
for (i = 0; i < PAGE_SIZE; i++)
{
g_buffer[i] = i;
}), 

print the data in the flash(val = (uint8_t *)(FSL_FEATURE_SPIFI_START_ADDR + i);
PRINTF(" %d %d ", i, *val);) ,

download the program to the target board and open the serial terminal,the data read print is different from the data written.

So,i restore the original program,it also can not print the data .

 

 

0 项奖励
回复
920 次查看
paidaxing
Contributor III
Thank you for you replay,I change the SDK ,the problem has resloved.
0 项奖励
回复