Skip to content

cpu/esp32: fix heap command output#12754

Merged
aabadie merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/fix_heap_cmd
Nov 20, 2019
Merged

cpu/esp32: fix heap command output#12754
aabadie merged 1 commit intoRIOT-OS:masterfrom
gschorcht:cpu/esp32/fix_heap_cmd

Conversation

@gschorcht
Copy link
Contributor

@gschorcht gschorcht commented Nov 20, 2019

Contribution description

This PR fixes the output of the heap command. The has to have an output format that is compatible with the test. With this PR, tests/heap_cmd works for ESP32 boards.

This PR belongs to the series of PRs, each with very small changes that fix automatic tests on ESP32 boards.

Testing procedure

Make, flash and execute tests/heap.

make BOARD=esp32-wroom-32 -C tests/heap_cmd flash test

Issues/PRs references

Requires #12752

The heap command output has to have an output format that is compatible with the test.
@gschorcht gschorcht added Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Nov 20, 2019
Copy link
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Output is now consistent with other architectures. Calling heap shell command in tests/heap_cmd returns the following:

esp32-wroom-32
2019-11-20 21:53:04,980 #  heap
2019-11-20 21:53:04,983 # heap: 185288 (used 876, free 184412) [bytes]
atmega256rfr2-xpro
2019-11-20 21:55:22,171 # heap
2019-11-20 21:55:22,174 # heap: 30548 (used 0, free 30548) [bytes]

And the test is passing on atmega256rfr2-xpro.

@aabadie aabadie merged commit e9bde9e into RIOT-OS:master Nov 20, 2019
@gschorcht
Copy link
Contributor Author

Thanks for testing.

@gschorcht gschorcht deleted the cpu/esp32/fix_heap_cmd branch November 21, 2019 09:25
@gschorcht
Copy link
Contributor Author

BTW, I have an open issue #12173 which will separate the output of heap statistics from gathering the heap statistics. This will avoid such inconsistencies between platforms in future.

@fjmolinas fjmolinas added this to the Release 2020.01 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants