cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube_FW_G4_V1.5.1 not working: unknown type name 'caddr_t'

CBram.1776
Associate II

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:

https://community.st.com/t5/stm32cubeide-mcu/core-src-sysmem-c-38-1-error-unknown-type-name-caddr-t/td-p/56309

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @CBram.1776 ,

Thank you for reporting the issue.

I confirm the issue and I reported internally.

Internal ticket number: 158666(This is an internal tracking number and is not accessible or usable by customers).

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

Hello @CBram.1776 ,

Thank you for reporting the issue.

I confirm the issue and I reported internally.

Internal ticket number: 158666(This is an internal tracking number and is not accessible or usable by customers).

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.