Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile on STM32 CubeIDE 1.13.0 #328

Open
MaxPohlRP opened this issue Nov 15, 2024 · 1 comment
Open

Does not compile on STM32 CubeIDE 1.13.0 #328

MaxPohlRP opened this issue Nov 15, 2024 · 1 comment

Comments

@MaxPohlRP
Copy link

Hi,
which version did you used for compiling?
With Version 1.13.0 i got (at least) 3 errors.

  1. ..\Core\Src\sysmem.c:37:1: error: unknown type name 'caddr_t'
  2. ..\Core\Src\sysmem.c:55:17: error: 'caddr_t' undeclared (first use in this function)
  3. ..\Core\Src\sysmem.c:55:17: note: each undeclared identifier is reported only once for each function it appears in
    ..\Core\Src\sysmem.c:55:25: error: expected ';' before 'prev_heap_end'

Do you have any idea? Maybe its just due to a change in the IDE

@mvladic
Copy link
Contributor

mvladic commented Nov 15, 2024

I'm currently on version 1.14.1 which also has that problem. You can fix this like following:

#if defined(caddr_t) // ADD THIS LINE!
caddr_t _sbrk(int incr)
{
// ...
}
#endif // AND THIS LINE!

Also, note that master branch is version "1.8.0 Alpha" which is never released. Branch dev_1.7.6 contains the latest released version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants