Closed aashishc1988 closed 6 years ago
ARM Internal Ref: MBOTRIAGE-1497
Hi, @khj098765 There seems to be W7500 + IAR cause heap problem. Could you please follow this issue?
Hi, @aashishc1988 When WIZnet and I run the same command, I get this error. Do you know how we should solve this compile error?
C:\Andrew\code\greentea>mbed test -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v
Build successes:
- WIZWIKI_W7500::IAR::MBED-BUILD [mbed] Exec "mbedgt --test-spec C:\Andrew\code\greentea\BUILD\tests\WIZWIKI_W7500\IAR\test_spec.json -n tests-mbed_platform-stats_heap -V -DMBED_HEAP_STATS_ENABLED=1" in C:\Andrew\code\greentea Usage: mbedgt [options]
mbedgt: error: no such option: -D [mbed] ERROR: "mbedgt" returned error code 2.
Thanks,
@andrewc-arm Try replacing "mbed test" with "mbed test --compile"
Hi. @aashishc1988 I replaced it and got following failure.
C:\Andrew\code\greentea>mbed test --compile -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v [mbed] Working path "C:\Andrew\code\greentea" (program) [mbed] Exec "C:\Python27\python.exe -u C:\Andrew\code\greentea\mbed-os\tools\test.py -t IAR -m WIZWIKI_W7500 --source C:\Andrew\code\greentea --build C:\Andrew\code\greentea\BUILD\tests\WIZWIKI_W7500\IAR --test-spec C:\Andrew\code\greentea\BUILD\tests\WIZWIKI_W7500\IAR\test_spec.json -n tests-mbed_platform-stats_heap -v -DMBED_HEAP_STATS_ENABLED=1" in C:\Andrew\code\greentea [Warning] Test with name 'tests-mbed_platform-stats_heap' was not found in the available tests Building library mbed-build (WIZWIKI_W7500, IAR) Scan: greentea
Could you please make sure 'Steps to Reproduce' is working for you?
@andrewc-arm Sorry for late reply. Can you please post the complete log? I just tried
mbed test --compile -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v
and it built fine for me.
Hi, @khj098765 @aashishc1988 confirmed the new command works for him. Could you please test if it works for you? Also, could you please make sure that your latest W7500 driver code in the latest mbed-os solves the problem? Thanks,
Hi, @aashishc1988 @andrewc-arm I have tried this test. compile was possible but this test occured NOT_SUPPORTED error. Is the test that W7500 should support?
mbed test --compile -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v heapcompilelog.txt
mbed test -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap heaptestlog.txt
@khj098765 It is saying NOT_SUPPORTED because with the second call
mbed test -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap
You are rebuilding the test without the necessary flag
DMBED_HEAP_STATS_ENABLED=1
To fix that and run the test locally, you can do this
Build the example first
mbed test --compile -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v
And then run locally using greentea
mbedgt --use-tids 2201000003b8bdc800000000000000000000000097969902 -n tests-mbed_platform-stats_heap -v V
Do a mbedls to find the right target id for your device and replace the one above with that.
@aashishc1988 I run locally using greentea
mbedgt --use-tids 2201000003b8bdc800000000000000000000000097969902 -n tests-mbed_platform-stats_heap -v V
mbedgt --use-tids 2201000003b8bdc800000000000000000000000097969902 -n tests-mbed_platform-stats_heap -v V
mbedgt: greentea test automation tool ver. 1.2.6 mbedgt: using multiple test specifications from current directory! using 'BUILD\tests\WIZWIKI_W7500\IAR\test_spec.json mbedgt: detecting connected mbed-enabled devices... mbedgt: detected 1 device mbedgt: filtering out target ids not on below list (specified with --use-tids switch) accepting target id '2201000003b8bdc800000000000000000000000097969902 mbedgt: processing target 'WIZWIKI_W7500' toolchain 'IAR' compatible platforms... (note: switch set to --parallel 1) mbedgt: all tests finished! mbedgt: shuffle seed: 0.9835318232 mbedgt: no platform/target matching tests were found! mbedgt: no matching platforms were found! mbedgt: completed in 0.37 sec mbedgt: exited with code -110
but I returned message about no maching.
If you possible, can you try this issue test after the following PR has been merged? https://github.com/ARMmbed/mbed-os/pull/7921#issuecomment-422500049
@khj098765 I ran the test on that PR and it is fixed now. Closing this one
Description
Bug
Target WIZWIKI_W7500
Toolchain: IAR
Tests we are failing: tests-mbed_platform-stats_heap
Steps to reproduce
mbed test -m WIZWIKI_W7500 -t IAR -n tests-mbed_platform-stats_heap -DMBED_HEAP_STATS_ENABLED=1 -v
log snippet