Closed s00500 closed 2 months ago
Sorry for the late response. Can you post your current project with the platformio.ini
? This hsould be as simple as
build_flags =
-L<path where libxxxx.a is>
-l<xxxxx>
This is what it looks like right now
That looks extraordinarily weird. Why is the whole Startup and StdPeriphDriver and RVMSIS lib lib/
? When you set framework = noneos-sdk
, the startup file, peripheral code, debug code and system code is already compiled for you, as sourced from https://github.com/Community-PIO-CH32V/framework-wch-noneos-sdk.
Let me just convert the original project properly to show you the clean way.
Example converted and added into https://github.com/Community-PIO-CH32V/platform-ch32v/tree/develop/examples/usb-pdf-logger-none-os-ch592.
Pay close attention to the platformio.ini
and the two created library.json
files. Pay attention to what files were added and which weren't. Cross-reference everything against the documentation, such as library.json and the LDF modes.
Linking .pio\build\genericCH592F\firmware.elf
Checking size .pio\build\genericCH592F\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [===== ] 46.3% (used 12340 bytes from 26624 bytes)
Flash: [= ] 8.4% (used 43268 bytes from 516096 bytes)
Building .pio\build\genericCH592F\firmware.bin
===== [SUCCESS] Took 3.84 seconds =====
@maxgerhardt Exceptional!
Why was it done like I did it ? cause I did not know what I was doing ;-)
Thanks for including the example!
Falls es bei euch einen Link für die Kaffeekasse gibt wäre ich interessiert ;-)
Hey, nice Project!!! I was able to build and upload some basic blink sketches to an ch592F
Now I know this might not be 100% related to this project... But I am trying to get this example moved over to pio...
https://github.com/openwch/ch592/tree/main/Application/PDF_DataLogger
but I cant make the libpdf.a link properly... I keep running into linker errors.. any tips ?
I tried adding buildflags pointing to the .a file without much luck...