-
Notifications
You must be signed in to change notification settings - Fork 159
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
v30x blink example don't run if TARGET_MCU_PACKAGE sets to CH32V307VCT6 #303
Comments
Sadly, at the moment no one is looking into this specific target. If you are up for seeing where we've made a mistake, it would be great to let us know. There's plarform-specific code in the .ld, Makefile, and ch32v003.h As a note, when changing the .ld, you will need to remove the auto-generated .ld for your part in the ch32v003fun folder. Please let us know what you find. |
@AlexanderMandera - do you recall if you ever tested with CH32V307VCxx? Should this line read 2 instead of 1? MCU_PACKAGE:=1 https://github.com/cnlohr/ch32v003fun/blob/6c3c515598db6d3d50f8087da2f694ee417fc445/ch32v003fun/ch32v003fun.mk#L114C14-L114C18 @romainreignier Can you test with changing that line of that file from 2 to 1, removing the generated .ld file, and seeing if it works then? |
I am just not familiar with the 30x line, does it make sense to add another package type for the 307? You can copy-paste it from one of the other parts, and make a PR. |
it should work
|
Hi,
First, I would like to thank you for this amazing project.
I have successfully tried the blink example from the
examples_v30x
on aCH32V307 EVT by SCDZ
board.But the board is actually populated with a
CH32V307VCT6
and the Makefile selects a CH32V305RBT6, I have then replaced it with the following:And after a
make clean
and thenmake
, the code does not run once uploaded to the board.I have also tried with the
debugprintfdemo
copied from the V003 examples, it works with the V305RBT6 settings but not with the V307VCT6.From the
ch32v003fun.mk
, the difference is only theMCU_PACKAGE
and the sizes for the FLASH and RAM.I have then tried to configure
TARGET_MCU_PACKAGE:=CH32V307RBT6
and in that case, the code runs.When it does not work, I have tried to use GDB and adding a breakpoint on the first line of the main on the
SystemInit()
line. The breakpoint is reached but on first step, I am in theDefaultIRQHandler
.Does anyone have a clue of why I have this behavior when using the config matching my MCU?
The text was updated successfully, but these errors were encountered: