Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:36 24 May 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Latest GitHub version compiling issues

Author Message
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 83
Posted: 11:20pm 21 Feb 2025
Copy link to clipboard 
Print this post

Morning all,

well, i am (and was) compiling under Linux and running into two issues:

Compiler was complaining that "VS1053.h" was not found, because its named "vs1053.h". No issue at all, but just a hint.

Secondarily, since its trying to build both for RP2040 and RP2350, ssi.h for hardware_structs and hardware_regs is missing for the RP2350 Platform (SDK-Version V2.1.0 and the latest SDK), but tries to include them. Simply copying them over from RP2040 to RP2350 SDK-Sources doesn´t work....


Any hint?

Kind regards
Stef

Ps: It would be really great if the SDK being used would find its way back into the sources, because its very complicated to fulfill all the requests before being able to perform the cmake/build (git submodule update --init for example in order to pull tinyusb and make it available to cmake)
 
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 83
Posted: 11:30pm 21 Feb 2025
Copy link to clipboard 
Print this post

This is the output with ssi.h removed (NOT from the RP2040 hardware_regs and hardware_structs)- it isn´t part of the official SDK in the RP2350 folder anyway. ssi.h can only be found in the rp2040-folder



In file included from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/lock_core.h:12,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/sem.h:10,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/sync.h:15,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/pico_multicore/include/pico/multicore.h:11,
                from /home/bla/PicoMiteAllVersions/MMBasic.c:42:
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:204:32: error: conflicting types for 'disable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 204 | __force_inline static uint32_t disable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~~
In file included from /home/bla/PicoMiteAllVersions/Hardware_Includes.h:48,
                from /home/bla/PicoMiteAllVersions/MMBasic.c:39:
/home/bla/PicoMiteAllVersions/FileIO.h:61:6: note: previous declaration of 'disable_interrupts' with type 'void(void)'
  61 | void disable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:217:32: error: conflicting types for 'enable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 217 | __force_inline static uint32_t enable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/FileIO.h:62:6: note: previous declaration of 'enable_interrupts' with type 'void(void)'
  62 | void enable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~
In file included from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/hardware_claim/include/hardware/claim.h:11,
                from /home/bla/PicoMiteAllVersions/Custom.c:91:
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:204:32: error: conflicting types for 'disable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 204 | __force_inline static uint32_t disable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~~
In file included from /home/bla/PicoMiteAllVersions/Hardware_Includes.h:48,
                from /home/bla/PicoMiteAllVersions/Custom.c:37:
/home/bla/PicoMiteAllVersions/FileIO.h:61:6: note: previous declaration of 'disable_interrupts' with type 'void(void)'
  61 | void disable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:217:32: error: conflicting types for 'enable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 217 | __force_inline static uint32_t enable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/FileIO.h:62:6: note: previous declaration of 'enable_interrupts' with type 'void(void)'
  62 | void enable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/PicoMite.c:68:14: fatal error: hardware/structs/ssi.h: No such file or directory
  68 |     #include "hardware/structs/ssi.h"
     |              ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/lock_core.h:12,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/sem.h:10,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/common/pico_sync/include/pico/sync.h:15,
                from /home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/pico_multicore/include/pico/multicore.h:11,
                from /home/bla/PicoMiteAllVersions/Commands.c:43:
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:204:32: error: conflicting types for 'disable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 204 | __force_inline static uint32_t disable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~~
In file included from /home/bla/PicoMiteAllVersions/Hardware_Includes.h:48,
                from /home/bla/PicoMiteAllVersions/Commands.c:38:
/home/bla/PicoMiteAllVersions/FileIO.h:61:6: note: previous declaration of 'disable_interrupts' with type 'void(void)'
  61 | void disable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:217:32: error: conflicting types for 'enable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
 217 | __force_inline static uint32_t enable_interrupts(void) {
     |                                ^~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/FileIO.h:62:6: note: previous declaration of 'enable_interrupts' with type 'void(void)'
  62 | void enable_interrupts(void);
     |      ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/PicoMite.dir/build.make:76: CMakeFiles/PicoMite.dir/PicoMite.c.o] Fehler 1

Edited 2025-02-22 09:33 by stef123
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10090
Posted: 08:00am 22 Feb 2025
Copy link to clipboard 
Print this post

You have downloaded sdk2.1.1. The build works with sdk 2.1.0. They have included functions in 2.1.1 with the same names I'm already using.
 
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 83
Posted: 12:46pm 22 Feb 2025
Copy link to clipboard 
Print this post

Nope, i used SDK 2.1.0 as required, freshly downloaded from the official sources. In /src/rp2350/hardware_structs/include/hardware/structs/ and /src/rp2350/hardware_regs/include/hardware/regs/, there is no ssi.h for the RP2350.

Only for RP2040 and the subfolders like above; its the only occurence where ssi.h pops up....copying them over from RP2040 to RP2350 will run into a mess while compiling  



 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10090
Posted: 01:19pm 22 Feb 2025
Copy link to clipboard 
Print this post

Sorry, but if you are getting this error you are using sdk2.1.1

  Quote  /home/bla/PicoMiteAllVersions/pico-sdk/src/rp2_common/hardware_sync/include/hardware/sync.h:217:32: error: conflicting types for 'enable_interrupts'; have 'uint32_t(void)' {aka 'long unsigned int(void)'}
217 | __force_inline static uint32_t enable_interrupts(void) {
    |                                ^~~~~~~~~~~~~~~~~
/home/bla/PicoMiteAllVersions/FileIO.h:62:6: note: previous declaration of 'enable_interrupts' with type 'void(void)'
 62 | void enable_interrupts(void);


Other than that your are on your own. As previously stated I can't and won't provide support for building the code as there are too many platform differences to know what is going on. Clearly I can build it so......
 
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 83
Posted: 01:27pm 22 Feb 2025
Copy link to clipboard 
Print this post

Found out that it builds when i force him to build the RP2350 Version. If i set in cmakelists to "pico" by using the SDK 2.1.0, it won't and runs into the SSI.h-Issue.

I will seek for the problem. I know that you wont provide support for issues like that, thats total ok.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10090
Posted: 01:30pm 22 Feb 2025
Copy link to clipboard 
Print this post

Ypu can't swap between RP2040 and RP2350 without different build directories
 
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 83
Posted: 01:58pm 22 Feb 2025
Copy link to clipboard 
Print this post

A-ha! And that was the issue     !

I was running cmake / make always in the same build directory.

Sorry for the fuss, but helpful anyway !
Edited 2025-02-22 23:59 by stef123
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025