Sorry, has taken me time to get back to this problem, once I make the suggested change the error I got previously no longer appears when I compile the code. I now get other issues but that appears to be due to board differences.
@kamiltomaszewski On investigation I believe the error is in our code, there is a function called which fails to return anything (t.setSecond()), therefore the code is incorrect and causes an error. Though the same issue is there when we try an compile with either SDK, so not sure why we only see the problem in the latest SDK version!
Once the function returns the expected value the error is no more.
@kamiltomaszewski I think it is number formatting in our code, but not sure why that causes such an error in the spresense when we change the SDK version. As the code does not change? I will continue to look into what was written
@kamiltomaszewski Our code worked fine in the older SDK, but fails in the latest? I confirm have updated the bootloader.
We have been built and running code using Arduino and spresence 2.2.1 SDK which includes the use of the RTC function and this is working fine, however when we try and build the same code using 2.3.0 it compiles fine, but when running we get the following error in the monitor:
arm_hardfault: PANIC!!! Hard fault: 40000000
up_assert: Assertion failed at file:armv7-m/arm_hardfault.c line: 135 task: init
up_registerdump: R0: a10d03b1 000000d0 0d031c50 290d0079 000000d0 0d03a038 0d02a83c 00000000
up_registerdump: R8: 00000000 00000000 00000000 00000000 00000000 0d039f38 0d000303 0d000302
up_registerdump: xPSR: 21000000 BASEPRI: 000000e0 CONTROL: 00000000
up_registerdump: EXC_RETURN: ffffffe9
Any suggests why this might be?
@TE-KarlKomierowski Thank your reply. The senor is https://learn.adafruit.com/nxp-precision-9dof-breakout/overview, and I can run the basic application supplied for this board. However I am now trying to run the AHS code, and have start with the function "Adafruit_Sensor_Calibration.h". which is where I get this error.
I am trying to run some example code for an NXP sensor on spresense, it will compile for a Arduino board with out erros, but when I try for Sprensence I get the following error:
*\AppData\Local\Arduino15\packages\SPRESENSE\tools\spresense-sdk\1.0.0/spresense/release/nuttx/include/stdio.h:93:22: error: expected unqualified-id before 'void'
#define rewind(s) ((void)fseek((s),0,SEEK_SET))
Any comments please of this if is an error in my code or and issue with the stdio.h file?