« first day (1135 days earlier)      last day (1709 days later) » 

4:21 PM
Is it normal that this code outputs (core dumped)? What I mean is, is it normal that you get (core dumped) if you have any uncaught exceptions in the code?
 
 
2 hours later…
6:31 PM
@MuhamedCicak Why are you asking a question about code that doesn't compile?
 
@MuhamedCicak Yes, it's pretty much normal. Officially, what happens is that terminate() is called. Exactly how the OS reacts to that depends, but dumping core is a reasonable reaction.
In older versions of C++, you could use set_unexpected to set a function that would be called under those circumstances, but (at least if memory serves) that was removed in C++17 (or maybe C++ 20--can't remember for sure).
 
I have a question about configuring flag, busy and interrupt pins.
This "Hello World" program can be used directly in their online IDE by clicking "Import program": os.mbed.com/components/X-NUCLEO-IHM03A1
Here is a modified program of main.cpp:
I'm wondering how I should initialize A0, A1 and D1:
x_nucleo_ihm02a1two = new XNucleoIHM02A1(&init[0], &init[1], A0, A1, D1, D2, &dev_spi);
Where A0 is pin name of the FLAG pin of the component, A1 is pin name of the BUSY pin of the component and D1 is the pin name of the STBY\RST pin of the component.
I don't know if I should initialize them as inputs, outputs...or something else.
 
6:55 PM
And if you're inclined, more details are here: stackoverflow.com/questions/57434935/…
 
7:45 PM
Oh, and I tried DigitalIn and DigitalOut, both ways.
 

« first day (1135 days earlier)      last day (1709 days later) »