energia / cc3200-core

6 stars 10 forks source link

CC3200 EMT — Error, size if data (1234045) is too big to write #13

Closed rei-vilo closed 7 years ago

rei-vilo commented 7 years ago

Once #12 has been fixed with suggested command, upload fails due to too big file to write.

Resulting MultiBlink_CC3200.ino.elf for the MultiBlink.ino example weights 1234045 whereas arm-none-eabi-size MultiBlink_CC3200.ino.elf gives 33833.

ls -all /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/buildcf7d690e97b58be70057bbfed06e8f9b.tmp
total 4512
drwxr-xr-x   10 reivilo  staff      340 21 déc 16:16 .
drwx------@ 122 reivilo  staff     4148 21 déc 16:17 ..
-rwxr-xr-x    1 reivilo  staff  1234045 21 déc 16:16 MultiBlink_CC3200.ino.elf
-rw-r--r--    1 reivilo  staff  1062939 21 déc 16:16 MultiBlink_CC3200.ino.map
-rw-r--r--    1 reivilo  staff      717 21 déc 16:16 build.options.json
drwxr-xr-x    4 reivilo  staff      136 21 déc 16:16 core
-rw-r--r--    1 reivilo  staff      699 21 déc 16:16 includes.cache
drwxr-xr-x    2 reivilo  staff       68 21 déc 16:15 libraries
drwxr-xr-x    3 reivilo  staff      102 21 déc 16:15 preproc
drwxr-xr-x    7 reivilo  staff      238 21 déc 16:16 sketch
$ /Users/ReiVilo/Library/Energia15/packages/energia/tools/cc3200prog/1.1.4/cc3200prog /dev/cu.usbserial-cc3200B /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/buildcf7d690e97b58be70057bbfed06e8f9b.tmp/MultiBlink_CC3200.ino.elf 
Open UART /dev/cu.usbserial-cc3200B
open UART success
Getting storage list
Bootloader Version: 3
Silicon version ES1.32 or higher
Bootloader version is 2, 0, 3, 2
It's a CC3200 device: PG1.32
BlockSize is 4096, number of blocks is 64
erasing 1 blocks starting from  4
Switch to NWP bootloader complete
Load common boot command for PG1.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
--- Invalid file size ---
Error, size if data (1234045) is too big to write

$ /Users/ReiVilo/Library/Energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-size /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/buildcf7d690e97b58be70057bbfed06e8f9b.tmp/MultiBlink_CC3200.ino.elf 
   text    data     bss     dec     hex filename
  26013    4532    3288   33833    8429 /var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/buildcf7d690e97b58be70057bbfed06e8f9b.tmp/MultiBlink_CC3200.ino.elf
``
rei-vilo commented 7 years ago

Reminiscent of https://github.com/energia/Energia/issues/443?

robertinant commented 7 years ago

This issue was moved to energia/cc3200emt-core#6