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

raspberrypi-pico:nshsram configuration gets "ERROR: A RAM binary should have an entry point at the beginning: 20000001 (not 200000c1)" #11956

Closed
znmeb opened this issue Mar 20, 2024 · 15 comments · Fixed by #12025

Comments

@znmeb
Copy link

znmeb commented Mar 20, 2024

I'm getting this error with the raspberrypi-pico:nshsram configuration. See attached script and logfiles for the details. It fails the same way withraspberrypi-pico-w:nshsram. None of the other Pico or Pico W configurations do this.

test-error.zip

@znmeb
Copy link
Author

znmeb commented Mar 20, 2024

In case it matters, the host system is Windows Subsystem for Linux Ubuntu 22.04 LTS.

@acassis
Copy link
Contributor

acassis commented Mar 25, 2024

Same issue confirmed on Linux:

Generating: nuttx.uf2
tools/rp2040/elf2uf2 nuttx nuttx.uf2;
ERROR: A RAM binary should have an entry point at the beginning: 20000001 (not 200000c1)

make: *** [tools/Unix.mk:550: nuttx] Error 253

@YuuichiNakamura any idea?

@znmeb
Copy link
Author

znmeb commented Mar 25, 2024

It fails the same way on a Raspberry Pi 32-bit Debian 11 and 64-bit Ubuntu 22.04.

@acassis
Copy link
Contributor

acassis commented Mar 29, 2024

@masayuki2009 could you please ping Yuichi Nakamura? He is the author of nshsram board profile.

@masayuki2009
Copy link
Contributor

@znmeb
Could you provide the following information?

  • NuttX code base (release version or branch and commit id)
  • Toolchain version

@znmeb
Copy link
Author

znmeb commented Mar 30, 2024

@znmeb Could you provide the following information?

* NuttX code base (release version or branch and commit id)

* Toolchain version

Host is Ubuntu 22.04 LTS "jammy" on amd64

NuttX is version 12.4.0, acquired via git clone --branch nuttx-12.4.0 https://github.com/apache/nuttx.git nuttx.

gcc-multilib; g++-multilib:

g++-11-multilib/jammy-updates,jammy-security,now 11.4.0-1ubuntu1~22.04 amd64 [installed,automatic]
g++-multilib/jammy,now 4:11.2.0-1ubuntu1 amd64 [installed]
gcc-11-multilib/jammy-updates,jammy-security,now 11.4.0-1ubuntu1~22.04 amd64 [installed,automatic]
gcc-multilib/jammy,now 4:11.2.0-1ubuntu1 amd64 [installed]

cross-compilers - these are installed by the Raspberry Pi Pico SDK installer:

binutils-arm-none-eabi/jammy,now 2.38-3ubuntu1+15build1 amd64 [installed,automatic]
gcc-arm-none-eabi/jammy,now 15:10.3-2021.07-4 amd64 [installed]
libnewlib-arm-none-eabi/jammy,now 3.3.0-1.3 all [installed,automatic]
libstdc++-arm-none-eabi-dev/jammy,now 15:10.3-2021.07-4+17 all [installed,automatic]
libstdc++-arm-none-eabi-newlib/jammy,now 15:10.3-2021.07-4+17 all [installed,automatic]

@znmeb
Copy link
Author

znmeb commented Mar 30, 2024

I can try this on Debian 12 "bookworm" if you wish - the tools that ship with it are slightly newer than the ones on Ubuntu 22.04 LTS. I can also try it on the beta of Ubuntu 24.04 LTS; I'm doing everything in containers.

masayuki2009 added a commit to masayuki2009/incubator-nuttx that referenced this issue Mar 31, 2024
Summary:
- This commit fixes apache#11956.
- The issue was introduced by apache#6118.

Impact:
- None

Testing:
- Tested with raspberrypi-pico.
- NOTE: the ci should be fixed later.

Signed-off-by: Masayuki Ishikawa <[email protected]>
@masayuki2009
Copy link
Contributor

@znmeb
Please try #12025

@znmeb
Copy link
Author

znmeb commented Mar 31, 2024

@znmeb Please try #12025

OK - how do I clone the patched source repository in a script? I can run the whole test set if I have that.

xiaoxiang781216 pushed a commit that referenced this issue Mar 31, 2024
Summary:
- This commit fixes #11956.
- The issue was introduced by #6118.

Impact:
- None

Testing:
- Tested with raspberrypi-pico.
- NOTE: the ci should be fixed later.

Signed-off-by: Masayuki Ishikawa <[email protected]>
@masayuki2009
Copy link
Contributor

@znmeb
You'll be able to clone my repository directly.
However, since the PR was merged you can use the latest master.

@znmeb
Copy link
Author

znmeb commented Apr 1, 2024

@znmeb You'll be able to clone my repository directly. However, since the PR was merged you can use the latest master.

Tests are done ... there's still one error.
errors.log.zip

By the way, if you want to look at the scripts, they're here at the moment:

https://github.com/AlgoCompSynth/CLAMS/tree/forth-itc/RPI-Pico-W-Dev-Setup

@masayuki2009
Copy link
Contributor

masayuki2009 commented Apr 1, 2024

@znmeb You'll be able to clone my repository directly. However, since the PR was merged you can use the latest master.

Tests are done ... there's still one error. errors.log.zip

By the way, if you want to look at the scripts, they're here at the moment:

https://github.com/AlgoCompSynth/CLAMS/tree/forth-itc/RPI-Pico-W-Dev-Setup

OK, I need to change raspberrypi-pico-w:nshsram as well.

...
Testing configuration raspberrypi-pico-w:nshsram                                                                                                                                               
...creating /home/znmeb/nuttxspace/raspberrypi-pico-w..nshsram   
...
LD: nuttx                                                                                                                                                                                      
Generating: nuttx.uf2                                                                                                                                                                          
tools/rp2040/elf2uf2 nuttx nuttx.uf2;                                                                                                                                                          
ERROR: A RAM binary should have an entry point at the beginning: 20000001 (not 200000c1)                                                                                                                                      
...

@masayuki2009
Copy link
Contributor

@znmeb
Please try #12028

@znmeb
Copy link
Author

znmeb commented Apr 1, 2024

OK - in progress. It turns out the clone operation is

git clone --branch fix-rp2040-defconfigs https://github.com/masayuki2009/incubator-nuttx.git nuttx

I can expand the test suite to look at other rp2040 boards. However, I don't have any of them, so I was only testing Pico and Pico W. I do have some ESP32-C3 and ESP32-S3 hardware I can test on.

@znmeb
Copy link
Author

znmeb commented Apr 1, 2024

OK ... both of them work now.

jerpelea pushed a commit to jerpelea/nuttx that referenced this issue Apr 5, 2024
Summary:
- This commit fixes apache#11956.
- The issue was introduced by apache#6118.

Impact:
- None

Testing:
- Tested with raspberrypi-pico.
- NOTE: the ci should be fixed later.

Signed-off-by: Masayuki Ishikawa <[email protected]>
xiaoxiang781216 pushed a commit that referenced this issue Apr 6, 2024
Summary:
- This commit fixes #11956.
- The issue was introduced by #6118.

Impact:
- None

Testing:
- Tested with raspberrypi-pico.
- NOTE: the ci should be fixed later.

Signed-off-by: Masayuki Ishikawa <[email protected]>
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

Successfully merging a pull request may close this issue.

3 participants