This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] F29H859TU-Q1:错误:Makefile:164:目标&#39的配方;post-build'失败且 gmake[2]:[post-build]错误1 (已忽略)

Guru**** 2478325 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1469628/f29h859tu-q1-error-makefile-164-recipe-for-target-post-build-failed-and-gmake-2-post-build-error-1-ignored

器件型号:F29H859TU-Q1

工具与软件:

大家好、团队成员:

我正在尝试按照指令 https://dev.ti.com/tirex4-desktop/content/c29x_academy_1_00_00_01/_build_c29x_academy_1_00_00_01/source/c2000_academy_labs/c29_labs/c29_timer_lab.html 运行计时器 LED 实验

正在生成输出文件、但在生成输出文件后、输出窗口中会出现一些错误。

1.您能告诉我为什么会出现该错误,以及为什么它正在尝试执行一些 python 文件吗? (首次尝试编译时或清理工程后生成时、错误即将出现。)

[51]Building target: "timer_academy_lab.out"
[52]Invoking: C2000 Linker
[53]"C:/ti/ccs2001/ccs/tools/compiler/ti-cgt-c29_1.0.0LTS/bin/c29clang.exe" -O1 -DDEBUG -g -Qunused-arguments -Wl,-m"timer_academy_lab.map" -Wl,--heap_size=0x400 -Wl,--stack_size=0x2000 -Wl,-i"C:/ti/f29h85x-sdk_1_00_00_00/source/driverlib/ccs" -Wl,-i"C:/ti/f29h85x-sdk_1_00_00_00/source/flash_api/lib" -Wl,-i"C:/ti/f29h85x-sdk_1_00_00_00/source/calibration/hrpwm/lib" -Wl,-i"C:/ti/f29h85x-sdk_1_00_00_00/source/security/ccs" -Wl,-i"C:/ti/ccs2001/ccs/tools/compiler/ti-cgt-c29_1.0.0LTS/lib" -Wl,--reread_libs -Wl,--diag_suppress=10325-D -Wl,--diag_suppress=10063-D -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="timer_academy_lab_linkInfo.xml" -Wl,--rom_model -o "timer_academy_lab.out" "./syscfg/board.o" "./syscfg/device.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_dpl_config.o" "./timer_academy_lab.o" "./device/bitfield_structs.o" "./device/codestartbranch.o" "../f29h85x_ram_lnk.cmd"  -Wl,-ldriverlib.lib -Wl,-lsfo.lib -Wl,-lF29H85x_NWFlashAPI_v21.00.00.00.lib -Wl,-lsecurity_drivers.lib 
[54]Finished building target: "timer_academy_lab.out"
 
[55]C:/ti/ccs2001/ccs/tools/compiler/ti-cgt-c29_1.0.0LTS/bin/c29objcopy.exe -O binary timer_academy_lab.out timer_academy_lab.bin
[56]py C:/ti/f29h85x-sdk_1_00_00_00/tools/boot/signing/mcu_rom_image_gen.py --image-bin timer_academy_lab.bin --core C29 --swrv 1 --loadaddr 0x200E1000 --sign-key C:/ti/f29h85x-sdk_1_00_00_00/tools/boot/signing/mcu_gpkey.pem --out-image timer_academy_lab_cert.bin --device f29h85x --boot RAM --img_integ no
[57]makefile:164: recipe for target 'post-build' failed
[58]Traceback (most recent call last):
[59]  File "C:\ti\f29h85x-sdk_1_00_00_00\tools\boot\signing\mcu_rom_image_gen.py", line 13, in <module>
[60]    import shutil
[61]  File "C:\Users\ay220418\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 22, in <module>
[62]    import bz2
[63]ValueError: source code string cannot contain null bytes
[64]gmake[2]: [post-build] Error 1 (ignored)
[65]del C29-cert-pad.bin
 
[66]Could Not Find C:\Users\ay220418\workspace_ccstheia\timer_academy_lab\RAM\C29-cert-pad.bin
[67]**** Build Finished 

2.考虑到 工作区的问题、我尝试切换工作区、但基于 IDE 的最新 CCS 中没有选项。 是否有适合它的选项?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    当您编译其他 SDK 示例时、是否也会出现此问题? 或者这是否特定于此示例?

    此致、

    Allison

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    有。 其他示例也会出现这种情况。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    到目前为止、我无法重现此问题。 您是否还可以检查"C:\Users\ay220418\workspace_ccstheia\timer_academ_lab\RAM\C29-cert-pad.bin"的路径是否正确? 您是否已经尝试过删除和重新下载 CCS 以进行完整性检查?

    此致、

    Allison