Skip to content

Simulation freezes after completion of unity and next malloc #530

@IngmarEckhardt

Description

@IngmarEckhardt

Hey Community,

Maybe you want to look into the situation, I have troubles to debug it. When I run the test for the flash helper with unity in the simulator (simutron as wrapper) the simulation freezes at next malloc after unity finished, doesn't matter where I call malloc or if this is a simulated atmega2560 or a Atmega328p. I think malloc can't be the problem, I see no blocking things or loops there.

Can't let simavr run as embedded gdb server, or with other words I lack the skills to add the virtual port to uart by my self. So I can't step with breakpoints through the code.

It is in this branch, I linked the CMakeLists for the tests. It's happening in the isolated target for flash helper and the test runner too. After the tests for stdio(puts_pf) this don't happen.

Edit: I know I forgot to tell you which version simutron is wrapping here. Maybe this is simutron related and their windows build related. Sry. Will give this infos at the evening when sun dissappeared.

Would still love a command line option for a virtual serial port to uart0. But your project is really great. Thanx for the tool.

https://github.com/IngmarEckhardt/dwarfOS/blob/7-unit-tests-for-flash_helper/tests/CMakeLists.txt

EDIT: There is no versioning at all? It is the simutron-1.0.1-SR1-Win32 build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions