Skip to main content
CBram.1776
Associate II
August 1, 2023
Solved

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

  • August 1, 2023
  • 1 reply
  • 5652 views

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.

 

This topic has been closed for replies.
Best answer by KDJEM.1

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

1 reply

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
August 2, 2023

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 "Best answer" on the reply which solved your issue or answered your question.