"This header is not available in freestanding mode." #6
Replies: 21 comments 4 replies
-
Fixed in 0.1.2 |
Beta Was this translation helpful? Give feedback.
-
Tks HalfSweet |
Beta Was this translation helpful? Give feedback.
-
Sorry. With the 0.1.2 i have this issue: WARNING: library SrcWrapper claims to run on AirMCU architecture(s) and may be incompatible with your current board which runs on PY32 architecture(s). exit status 1 Compilation error: exit status 1 |
Beta Was this translation helpful? Give feedback.
-
What development board model did you choose? |
Beta Was this translation helpful? Give feedback.
-
PY32F002 |
Beta Was this translation helpful? Give feedback.
-
When I choose the PY32F030 i have another problem: WARNING: library SrcWrapper claims to run on AirMCU architecture(s) and may be incompatible with your current board which runs on PY32 architecture(s). exit status 1 Compilation error: exit status 1 This is with the blink example. |
Beta Was this translation helpful? Give feedback.
-
When choosing the F003 or F030 models with 2k RAM, it is possible that the linker will complain about not having enough RAM space. This problem is due to the fact that the framework takes up too much of it... and the main Serial library takes up quite a bit. We can switch to the |
Beta Was this translation helpful? Give feedback.
-
In version 0.1.3, PY32F002A should compile properly. Feel free to contact me if you have any problems with the runtime, and any comments you can make about this project would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
Yes, it works with PY32F002 now. |
Beta Was this translation helpful? Give feedback.
-
I don't want to open a new issue for this question HalfSweet. Forgive me if posting this question here is wrong. I will delete it if so. |
Beta Was this translation helpful? Give feedback.
-
It's a hard one to average out, maybe the chip makers will use the same core inside multiple chips with different labeling for their own profit maximization or to reduce inventory, which might lead us to misunderstandings about the overall product. But in any case, this repository will follow the datasheet and you can choose another model if you need to, in theory this will not be a problem. Both AirMCU and PY32Duino are maintained by me, including OpenPuya in the future, but these are two different companies and eventually there may be some features that will not be fully synchronized. Finally, thanks for your love of this project, and if you run into any problems, feel free to ask! |
Beta Was this translation helpful? Give feedback.
-
I found another company making the same chip? The datasheet is very similar with the specs of the IC. I have to translate and read it. But for me sound like it is the same. |
Beta Was this translation helpful? Give feedback.
-
Here is the schematic for a board that I'm designing. What do you think? Are you interested on the design? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I'm not familiar with Geehy as a company. But it's not surprising for a Cortex-M core processor to have similar or even the same peripheral IP, so if it really doesn't differ much from the py32, maybe I can add it to this project. |
Beta Was this translation helpful? Give feedback.
-
I grabbed the bootloader part from your design. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It's probably not a good idea to have chat in issues, I've turned it into discussions where we can have |
Beta Was this translation helpful? Give feedback.
-
The capacitor is needed in the 3.3v output pin for voltage stability when you use 5v as VCC. If you feed all the circuit with an stable 3.3v you don't need that cap. |
Beta Was this translation helpful? Give feedback.
-
Moreover, the CH340X supports the so-called "microcontroller USB one-click download", so if it works, maybe you can skip the three BJT designs. Actually, the CH343P also supports a similar feature, plus it's just to make the design more versatile... If you intend to continue with such a design, you should note that NRST requires a 10k pull-up resistor and a 1uF to ground capacitor; BOOT0 requires both a 10k and a 1uF to ground capacitor. |
Beta Was this translation helpful? Give feedback.
-
Tks a lot HalfSweet. You are very kind for giving me that advice. I propose that on another repo. Thats why im using the CH340X on the design. But that serial IC is not working as intended. For the test that another person do it doesnt work well. Can i show you the repo? He has a collection of designs for many IC and also have a repo of programs to flash many MCU's. I think that you will like it. |
Beta Was this translation helpful? Give feedback.
-
描述一下这个bug / Describe the bug
when I try to compile the simple "blink" program the output says:
.arduino15/packages/PY32Duino/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/arm-none-eabi/include/c++/13.2.1/bits/requires_hosted.h:34:4: error: #error "This header is not available in freestanding mode."
34 | # error "This header is not available in freestanding mode."
复现步骤 / To Reproduce
v0.1.1
System: Linux Mint
如果正常,应该是什么样 / Expected behavior
Compile the sketch.
截图 / Screenshots
日志 / Logs
.arduino15/packages/PY32Duino/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/arm-none-eabi/include/c++/13.2.1/bits/requires_hosted.h:34:4: error: #error "This header is not available in freestanding mode."
34 | # error "This header is not available in freestanding mode."
系统 / System
Mint 22.04
PACK包版本 / Version
0.1.1
验证
Beta Was this translation helpful? Give feedback.
All reactions