Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate APP #254

Closed
neomissing opened this issue Mar 28, 2017 · 4 comments
Closed

Unable to generate APP #254

neomissing opened this issue Mar 28, 2017 · 4 comments
Labels

Comments

@neomissing
Copy link

*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'kl27z_frdmkl27z_if'
Before Build - User command #1: ......\tools\pre_build_script.bat
C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>copy ......\source\daplink\version_git_tmpl.txt ......\source\daplink\version_git.h
已复制 1 个文件。
C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>python ......\tools\pre_build_script.py
#> Pre-build script start
#> Old git version file removed
#> Getting git SHA
#> Checking for local changes
#> Creating new git version file
#> Pre-build script completed
compiling vfs_user.c...
compiling vfs_manager.c...
linking...
Program Size: Code=38908 RO-data=5360 RW-data=592 ZI-data=12572
After Build - User command #1: ......\tools\post_build_script.bat C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if C:\Keil_v5\ARM
C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>fromelf --bin C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.axf -o C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.bin
C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>fromelf --i32 C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.axf -o C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.hex
C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>python ......\tools\post_compute_crc.py C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.hex C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if_crc
Traceback (most recent call last):
File "......\tools\post_compute_crc.py", line 137, in
main()
File "......\tools\post_compute_crc.py", line 58, in main
new_hex_file.fromfile(input_file, format='hex')
File "C:\Python27\lib\site-packages\intelhex_init_.py", line 246, in loadfile
self.loadhex(fobj)
File "C:\Python27\lib\site-packages\intelhex_init_.py", line 196, in loadhex
fobj = open(fobj, "r")
IOError: [Errno 13] Permission denied: 'C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.hex'
".\build\kl27z_frdmkl27z_if.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:04

I tried to transplant to MKL27Z256VFM4, boot is OK, but APP can not generate

@c1728p9
Copy link
Contributor

c1728p9 commented Mar 29, 2017

Hi @neomissing, after the build was the file C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.hex created? If not that would explain why there was an IOError in the python script.

@neomissing
Copy link
Author

kl27z_frdmkl27z_if.hex not created,What is the reason?Need to change what configuration。

@c1728p9
Copy link
Contributor

c1728p9 commented Mar 30, 2017

Hi @neomissing, this command from your log above should be creating the .hex file:

C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if>fromelf --i32 C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.axf -o C:\Users\neomissing\Desktop\DAPLink\projectfiles\uvision\kl27z_frdmkl27z_if\build\kl27z_frdmkl27z_if.hex

You could try running this manually and see why it isn't creating kl27z_frdmkl27z_if.hex . I would also check to make sure you have kl27z_frdmkl27z_if.axf which should have been created by uvision.

@c1728p9
Copy link
Contributor

c1728p9 commented Sep 25, 2017

Please re-open if you are having further problems with this.

@c1728p9 c1728p9 closed this as completed Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants