Error? bcm2835_peri_read paddr 0x7fa1c04000

64 views
Skip to first unread message

sn .ymd

unread,
Sep 3, 2024, 3:50:49 AM9/3/24
to bcm2835
Hi,
I'm now using bcm2835.h library to control SPI and GPIO.
When I run my program, it works fine: both GPIO read/write and SPI read/write work.
However, after a few seconds, it enters a state that is assumed to be a GPIO access error. The screen is filled with GPIO access errors as shown below.
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
bcm2835_peri_read paddr 0x7fa1c04000
Can you please advise what is wrong?

My environment is as follows.
HW: Raspberry Pi Zero 2 W
OS: Raspberry Pi OS ver 12.6
Library: bcm2835 ver 1.75 https://www.airspayce.com/mikem/bcm2835/index.html
Using function to control:bcm2835_gpio_write(), bcm2835_gpio_lev(), bcm2835_aux_spi_transfernb()

best regards,

mike james

unread,
Sep 4, 2024, 1:30:01 PM9/4/24
to bcm2835

You need to post the program that generates the error - or enough of it to see how the GPIO is set up ect.
Also the "errors" don't see to have an error code - is it an error?

sn .ymd

unread,
Sep 4, 2024, 8:53:33 PM9/4/24
to bcm2835
To make the code public, the confidential part must be removed. Please wait while I prepare.

I do not know if it is an error. Suddenly this text appears on my console and RPi stops running. My code does not have such a print statement, so I am assuming it is from the library.
Does the library always give an error code when there is an error?

2024年9月5日木曜日 2:30:01 UTC+9 mikej...@gmail.com:

sn .ymd

unread,
Sep 8, 2024, 8:27:37 PM9/8/24
to bcm2835
This problem has solved.
Thanks for everyone.

2024年9月5日木曜日 9:53:33 UTC+9 sn .ymd:

Wolfram Köhn

unread,
Sep 9, 2024, 7:41:13 AM9/9/24
to bcm2835
Can you please tell us how you could solve the problem ?

R Srinivasan

unread,
Sep 9, 2024, 8:29:02 AM9/9/24
to bcm...@googlegroups.com
Exactly my question too!


--
You received this message because you are subscribed to the Google Groups "bcm2835" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcm2835+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bcm2835/969f65be-125f-4f58-9579-9dd8975487een%40googlegroups.com.

sn .ymd

unread,
Sep 10, 2024, 4:11:01 AM9/10/24
to bcm2835
Are you facing the same problem?
I would like to discuss this with you while looking at the source code, but as I already mentioned, my code is confidential, so please share your source code with me.

2024年9月9日月曜日 21:29:02 UTC+9 s...@srin.me:

K P Kanziya

unread,
Sep 10, 2024, 6:34:34 AM9/10/24
to bcm...@googlegroups.com
Thanks to all .

Best regards .
kpk

Reply all
Reply to author
Forward
0 new messages