STM32Cube_FW_G4_V1.5.1 not working: unknown type name 'caddr_t'
I'm using STM32Cube_FW_G4_V1.5.1 for testing a NUCLEO-G474RE board, but none of the examples worked at the first try. After importing them into STM32CubeIDE v1.13.0, I'm always getting this error message on sysmem.c:
../Application/User/sysmem.c:63:1: error: unknown type name 'caddr_t'
63 | caddr_t _sbrk(int incr)
| ^~~~~~~
../Application/User/sysmem.c: In function '_sbrk':
../Application/User/sysmem.c:76:25: error: 'caddr_t' undeclared (first use in this function)
76 | return (caddr_t) -1;
| ^~~~~~~
With reference to the solution posted into this thread:
I have been able to fix all included examples for all boards by doing a search & replace into all sysmem.c files and I replaced all 'caddr_t' with 'void *'.
I'm reporting this issue, so that it could be fixed into a newer release of that package, since it has been quite easy to do, afterall.
Sincerely.
