Replies: 4 comments 5 replies
-
It could be added by the extension, could you tell me more about his flag and when it should be added ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, I see you already have it for the Pi Pico W , under Board configuration, "c++ exceptions'. But I need it for the Generic STM32F4 series. I'm running the simplefoc library on Blackpill, but simplefoc doesn't handle i2c bus errors from the magnetic sensor, so the motor or battery could overheat if the application doesn't stop. So I want to throw a bus exception from the i2c library up to the application layer without rewriting simplefoc error processing...
On Sunday, May 4, 2025 at 03:34:48 AM PDT, thelastoutpostworkshop ***@***.***> wrote:
It could be added by the extension, could you tell me more about his flag and when it should be added ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It's the arduino CLI that gives the extension what board configuration can be changed. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Well to be honest, it's quite low priority. Because I can always just hack a global variable error flag into the i2c library (twowire). But I still have to recompile the twowire library (whether it throws exceptions or sets global flags), and the cli wont do that...unless I give the right command line flags....according to chatgpt, something like this :
arduino-cli core update-indexarduino-cli core install STMicroelectronics:stm32 --reinstallarduino-cli compile --fqbn STMicroelectronics:stm32:GenF4 --board-options pnum=BLACKPILL_F411CE --clean /path/to/your/sketch Does that seem feasible ?
On Sunday, May 4, 2025 at 02:11:32 PM PDT, thelastoutpostworkshop ***@***.***> wrote:
I will give it a look
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to manually edit .vscode/arduino.json to include "compiler.cpp.extra_flags=-fexceptions". However, when i do the compile, arduino.json get wiped out and set to defaults. Is there any way to do this within the Workshop extension, or should I just do invoke the cli directly in a terminal window ?
Beta Was this translation helpful? Give feedback.
All reactions