Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH32V003 Debug Problems Windows #56

Open
alexandrkolesnikov1 opened this issue May 2, 2024 · 3 comments
Open

CH32V003 Debug Problems Windows #56

alexandrkolesnikov1 opened this issue May 2, 2024 · 3 comments
Assignees
Labels
bug Something isn't working debugging question Further information is requested

Comments

@alexandrkolesnikov1
Copy link

Hello everyone! I'm trying to set up debug on CH32V003. But it turns out that I only see assembler lines and do not see my code during debugging. How can I achieve that I can see the disassembled code?

image

platformio.ini

platform = ch32v 
board = genericCH32V003F4U6 
framework = arduino 
build_type = debug
board_build.core = openwch 
monitor_speed = 115200 ``` 
@alexandrkolesnikov1
Copy link
Author

Note: I use WCH-Link(E)

@maxgerhardt
Copy link
Member

That shouldn't happen. Only initially on function entry, it does go into the __riscv_save_x function, but once you carefully step-into each instruction, it should return to the C/C++ code normally.

Does this also happen with the most simple blinky example? https://github.com/Community-PIO-CH32V/platform-ch32v/blob/develop/examples/blinky-arduino/src/main.cpp

@maxgerhardt maxgerhardt self-assigned this May 5, 2024
@maxgerhardt maxgerhardt added bug Something isn't working question Further information is requested debugging labels May 5, 2024
@alexandrkolesnikov1
Copy link
Author

@maxgerhardt Yes it happens with blink example too. But I fix this problem when rewrite my code to noneos-sdk. I dont now why but it happens when i use Arduino sdk and it happens only with users code, for example "ch32v00x_usart.h"/"ch32v00x_usart.c" debug works normaly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working debugging question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants