Jump to content
43oh

cc3200 failed upload query (open operation failed)


Recommended Posts

I decided to add more to a program of mine which compiles and uploads successfully.

 

erase file completed
Downloading file "/sys/mcuimg.bin" with size 62232
................Download complete
 
The program has increased in size but now it gives me the following "error" message...
 
erase file completed
Downloading file "/sys/mcuimg.bin" with size 66504
Open operation failed

 

Is this a memory issue as added more variables, is this a program size issue or is this something completely different.

 

Any clues as to how to fix as rather cryptic. 

Link to post
Share on other sites

We have seen this issue a couple times before but have not determined the root cause yet. Would be great if you could help answering the questions below to get us more information on why these Sketches fail to upload:

 

1: Did you update the service pack as described here http://energia.nu/cc3200guide/?

2: What version is your LaunchPad?

3: Can you post the complete output from the failing download attempt?

4: What operating system are you on?

5: In some cases the issue goes away by either:

    1) Reboot the PC without the LaunchPad connected

    2) Reprogramming the service pack as described here: http://energia.nu/cc3200guide/

 

Thanks!

Link to post
Share on other sites

I have had no problems with uploading other programs. I checked the message outputs:

 

The output from the version of my program that uploads and works properly:

 

Getting storage list
Bootloader Version: 3
Silicon version ES1.32
Bootloader version is 2, 0, 3, 2
It's a CC3101 device: PG1.32
BlockSize is 4096, number of blocks is 64
erasing 1 blocks starting from  4
Switch to NWP bootloader complete
Silicon version ES1.32
Bootloader version is 2, 0, 3, 4
BlockSize is 4096, number of blocks is 16
erasing 12 blocks starting from  0
erasing file "/sys/mcuimg.bin"
deleting file "/sys/mcuimg.bin"
erase file completed
Downloading file "/sys/mcuimg.bin" with size 62232
................Download complete
 

 

The output when trying to upload revised program which does not open:

 

Getting storage list

Bootloader Version: 3
Silicon version ES1.32
Bootloader version is 2, 0, 3, 2
It's a CC3101 device: PG1.32
BlockSize is 4096, number of blocks is 64
erasing 1 blocks starting from  4
Switch to NWP bootloader complete
Silicon version ES1.32
Bootloader version is 2, 0, 3, 4
BlockSize is 4096, number of blocks is 16
erasing 12 blocks starting from  0
erasing file "/sys/mcuimg.bin"
deleting file "/sys/mcuimg.bin"
erase file completed
Downloading file "/sys/mcuimg.bin" with size 66504
Open operation failed
 

 

 

I know I had flash problems before when using CCS and this was resolved by reformatting and starting afresh with my CC3200. I plan to do that later to see if it resolves the problem as was thinking that I might still have some old files stored in flash that is preventing the larger program from opening.

Link to post
Share on other sites

I removed small sections of code from program and it uploaded ok until it bumped over : 65024

 

Downloading file "/sys/mcuimg.bin" with size 64088
................Download complete
 
Downloading file "/sys/mcuimg.bin" with size 65024
................Download complete
 
erase file completed
Downloading file "/sys/mcuimg.bin" with size 65080
Open operation failed
 
Downloading file "/sys/mcuimg.bin" with size 65040
Open operation failed
 
and managed to find a way to reduce a little further, which also failed:
 
Downloading file "/sys/mcuimg.bin" with size 65032
Open operation failed
 
Link to post
Share on other sites

Thanks @@BigG! That is very helpful. You last experiment, was this after you formatted the FLASH or is the FLASH still like it was previously?

I will try to reproduce it here again. Do you remember which projects you downloaded when using CCS? Were there any projects that stored files in flash such as HTML and images?

 

Thanks,

 

Robert

Link to post
Share on other sites

Ok problem has been resolved by reformatting and reloading my service pack. The experiments above were done pre-formatting.

 

I know when I originally received my launchpad I had problems uploading some files using CCS. This was resolved by reformatting and clearing out the OOB (out of box) demo, which would have had html files preloaded. I had subsequently uploaded other html files / images onto the launchpad but never removed them so I thought it could be linked and it proved to be the case.

 

Hence in my case it appears this "Open operation failed" message was triggered when the Energia compiler ran out of free space on my flash.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...