在线时间4771 小时
UID3441752
注册时间2017-11-21
NXP金币81115
TA的每日心情 | 开心 2025-7-11 08:53 |
---|
签到天数: 301 天 连续签到: 2 天 [LV.8]以坛为家I
管理员
  
- 积分
- 39627
- 最后登录
- 2025-8-1
|
发表于 2024-7-30 13:43:02
|
显示全部楼层
It seems like you're encountering an issue where a program compiled with one configuration file (ICF) works correctly, but when you switch to another configuration file, the program does not function as expected, particularly with no output being printed via the COM port.
Here are some steps you can take to troubleshoot the issue:
Check the Configuration File: Make sure that the XXX_flexspi_nor.icf file is correctly set up for the FlexSPI NOR interface. Verify the memory map, clock settings, and any specific configurations needed for the FlexSPI NOR flash.
Compare Configurations: Compare the settings in XXX_ram.icf and XXX_flexspi_nor.icf. Look for differences that might affect the program execution, such as memory allocation, interrupt vectors, or peripheral configurations.
Serial Communication Settings: Ensure that the serial communication settings (baud rate, data bits, stop bits, parity) are the same in both configurations and match the settings of your terminal or debugger.
Initialization Code: Check if the initialization code for the FlexSPI NOR interface is present and correct in the program compiled with the XXX_flexspi_nor.icf. Sometimes, the issue might be due to the peripherals not being initialized properly.
Watchdog Timer: If there's a watchdog timer in your system, ensure it's being handled correctly in both configurations, as it could reset the system if not serviced properly.
Debugging: Use a debugger to step through the code and see where it might be hanging. Look for any breakpoints or error conditions that could indicate why the program is not running as expected. |
|