当前位置:网站首页>Mpc5744p burning to 98% can not continue to download the program
Mpc5744p burning to 98% can not continue to download the program
2022-07-26 18:27:00 【Tritium】
mpc5744p Burn to 98% Unable to continue downloading the program
ref :MPC5744 Burning has been staying 98% Solutions for
All of a sudden debug Unable to download program , It shows that the progress in the lower right corner is stuck 98%, Console The window information is as follows
...
Loading programming algorithm ...
WARNING - Selected .PCP file has been modified. CRC16 = $5A63
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00FA0000-00FA0007 ...
Ok.
block 00FA0010-00FA0017 ...
Ok.
block 01000000-0100026D ...
But then it was recorded RAM There is no problem , Should be flash A bit of a problem.
Solution steps
- Create a new project from the process
hello_world_mpc5744p, Compile the test and burn it to ram No problem - from
componentsadd toflash_c55, The generated code - Reference resources MPC5744 Burning has been staying 98% Solutions for
- Add code to
ledInitialize front , So erase itledIt's flashing , We will know that the erasure is complete
There are three lines of comment code above , from MPC5744 Burning has been staying 98% Solutions for Copying out is an error , It can also be used to comment out the discovery directlystatus_t ret = STATUS_SUCCESS; // Operating state variables uint32_t buffer[1024]; // Cache array flash_block_select_t blockSelect; // Block selection flash_state_t opResult; // Disable caching //DisableFlashControllerCache(FLASH_PFCR1, FLASH_FMC_BFEN_MASK, &pflash_pfcr1); //DisableFlashControllerCache(FLASH_PFCR2, FLASH_FMC_BFEN_MASK, &pflash_pfcr2); // initialization Flash ret = FLASH_DRV_Init(); DEV_ASSERT(ret == STATUS_SUCCESS); // incorrect UTEST Block to operate , Lock directly ret = FLASH_DRV_SetLock(C55_BLOCK_UTEST, 0x1U); if (STATUS_SUCCESS != ret) { return ret; } // Unlock the block to be erased ret = FLASH_DRV_SetLock(C55_BLOCK_LOW, 0x00); if (STATUS_SUCCESS != ret) { return ret; } ret = FLASH_DRV_SetLock(C55_BLOCK_MID, 0x00); if (STATUS_SUCCESS != ret) { return ret; } ret = FLASH_DRV_SetLock(C55_BLOCK_HIGH, 0x00); if (STATUS_SUCCESS != ret) { return ret; } ret = FLASH_DRV_SetLock(C55_BLOCK_256K_FIRST, 0x00); if (STATUS_SUCCESS != ret) { return ret; } ret = FLASH_DRV_SetLock(C55_BLOCK_256K_SECOND, 0x00); if (STATUS_SUCCESS != ret) { return ret; } // Select the block to erase // Low address space It's a partition 0 and 1 , common 4 block blockSelect.lowBlockSelect = 0xFU; // Mid address space It's a partition 2 and 3 , common 2 block blockSelect.midBlockSelect = 0x2U; // High address space It's a partition 4 and 5 , common 6 block blockSelect.highBlockSelect = 0x3FU; // 256KB address space It's a partition 6 and 7 , common 8 block blockSelect.first256KBlockSelect = 0xFFU; blockSelect.second256KBlockSelect = 0x0U; //g_usrCnt = 0U; // Erase operation ret = FLASH_DRV_Erase(ERS_OPT_MAIN_SPACE, &blockSelect); // Erase instruction operation succeeded , Wait for erasure to complete if (STATUS_SUCCESS == ret) { // This cycle cannot be exited until the exit erase is in progress do { // Check at this time falsh Erase state of ret = FLASH_DRV_CheckEraseStatus(&opResult); }while(ret == STATUS_FLASH_INPROGRESS); } if (STATUS_SUCCESS != ret) { return ret; } - led Flashing indicates completion , At this time, other projects arrive flash That's fine
边栏推荐
- 14.梯度检测、随机初始化、神经网络总结
- Ten year structure five year life-06 impulse to leave
- SQL判断某列中是否包含中文字符、英文字符、纯数字,数据截取
- 链表-合并两个排序的列表
- ICML 2022(第四篇)|| 图分层对齐图核实现图匹配
- 2022 Henan Mengxin League game (3): Henan University
- SSH based online mall
- drools-基础语法
- Sword finger offer regular expression matching
- [kitex source code interpretation] service discovery
猜你喜欢
![[static code quality analysis tool] Shanghai daoning brings you sonarource/sonarqube download, trial and tutorial](/img/09/209a405953d99d7d8b347c01873eba.png)
[static code quality analysis tool] Shanghai daoning brings you sonarource/sonarqube download, trial and tutorial

Apartment rental system based on JSP

Maximum sum of continuous subarray of sword finger offer (2)
![[a little knowledge] thread pool](/img/47/7296e47b53e728d2d3b9db198243f4.png)
[a little knowledge] thread pool

MySQL 遇到过死锁问题吗,你是如何解决的?

Baidu PaddlePaddle easydl x wesken: see how to install the "eye of AI" in bearing quality inspection

更安全、更健康、无续航焦虑,魏牌拿铁DHT-PHEV来了

SSM练习第五天

The second day of SSM practice_ Project split moudle_ Basic addition, deletion, modification and query_ Batch delete_ One to one cascading query

【Unity3D】摇杆
随机推荐
LeetCode50天刷题计划(Day 1—— 两数相加 11.00-12.30)
The faith of circle justice
8.2 some algebraic knowledge (groups, cyclic groups and subgroups)
剑指offer 连续子数组的最大和(二)
Distributed link tracking Jaeger's use in golang
2020美亚个人赛复盘
PyQt5快速开发与实战 3.5 菜单栏与工具栏
LeetCode_1005_K次取反后最大化的数组和
Redis master-slave replication, read-write separation, sentinel mode
云服务器mySQL提示报错
你适合做自动化 测试吗?
8.1 Diffie-Hellman密钥交换
网上炒股,选择在哪里开户比较安全呢?
[Digital IC] understand Axi Lite protocol in simple terms
PS_ 2_ layer
链表-两个链表的第一个公共结点
推荐效果不如意,不如试试飞桨图学习
Explain in detail the implementation of grpc client long connection mechanism
Maximum sum of continuous subarray of sword finger offer (2)
同步时现实密码不匹配