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

Segmentation fault on Raspberry Zero w and EPD4in01f #294

Open
wzqvip opened this issue May 10, 2023 · 4 comments
Open

Segmentation fault on Raspberry Zero w and EPD4in01f #294

wzqvip opened this issue May 10, 2023 · 4 comments

Comments

@wzqvip
Copy link

wzqvip commented May 10, 2023

`
pi@raspberrypi:/Desktop/e-Paper/RaspberryPi_JetsonNano/c $ sudo make clean
rm ./bin/.
rm epd
pi@raspberrypi:/Desktop/e-Paper/RaspberryPi_JetsonNano/c $ sudo make EPD=epd4in01f
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -D USE_BCM2835_LIB -D RPI -c ./lib/Config/dev_hardware_SPI.c -o ./bin/dev_hardware_SPI.o -Wl,--gc-sections -lbcm2835 -lm -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -D USE_BCM2835_LIB -D RPI -c ./lib/Config/RPI_sysfs_gpio.c -o ./bin/RPI_sysfs_gpio.o -Wl,--gc-sections -lbcm2835 -lm -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -D USE_BCM2835_LIB -D RPI -c ./lib/Config/DEV_Config.c -o ./bin/DEV_Config.o -Wl,--gc-sections -lbcm2835 -lm -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/e-Paper/EPD_4in01f.c -o bin/EPD_4in01f.o -I ./lib/Config -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/GUI/GUI_BMPfile.c -o bin/GUI_BMPfile.o -I ./lib/Config -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/GUI/GUI_Paint.c -o bin/GUI_Paint.o -I ./lib/Config -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c examples/EPD_4in01f_test.c -o bin/EPD_4in01f_test.o -I ./lib/Config -I ./lib/GUI -I ./lib/e-Paper -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c examples/main.c -o bin/main.o -I ./lib/Config -I ./lib/GUI -I ./lib/e-Paper -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c examples/ImageData2.c -o bin/ImageData2.o -I ./lib/Config -I ./lib/GUI -I ./lib/e-Paper -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c examples/ImageData.c -o bin/ImageData.o -I ./lib/Config -I ./lib/GUI -I ./lib/e-Paper -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font12CN.c -o bin/font12CN.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font12.c -o bin/font12.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font16.c -o bin/font16.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font24CN.c -o bin/font24CN.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font20.c -o bin/font20.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font8.c -o bin/font8.o -D DEBUG
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -c lib/Fonts/font24.c -o bin/font24.o -D DEBUG
echo RPI_epd
RPI_epd
gcc -g -O -ffunction-sections -fdata-sections -Wall -D epd4in01f -D RPI ./bin/EPD_4in01f.o ./bin/GUI_BMPfile.o ./bin/GUI_Paint.o ./bin/EPD_4in01f_test.o ./bin/main.o ./bin/ImageData2.o ./bin/ImageData.o ./bin/font12CN.o ./bin/font12.o ./bin/font16.o ./bin/font24CN.o ./bin/font20.o ./bin/font8.o ./bin/font24.o ./bin/dev_hardware_SPI.o ./bin/RPI_sysfs_gpio.o ./bin/DEV_Config.o -o epd -Wl,--gc-sections -lbcm2835 -lm -D DEBUG

pi@raspberrypi:/Desktop/e-Paper/RaspberryPi_JetsonNano/c $ ./epd
EPD_4in01F_test Demo
/***********************************/
Current environment: Raspbian
bcm2835 init success !!!
Segmentation fault
`

removed "~" ~cause markdown..

@wzqvip
Copy link
Author

wzqvip commented May 10, 2023

Python code not running too.
I'm using HAT with Raspberry pin.
Plugged in the right side.

`
pi@raspberrypi:~/Desktop/e-Paper/RaspberryPi_JetsonNano/python/examples $ python3 epd_4in01f_test.py
INFO:root:epd4in01f Demo
INFO:root:init and Clear
DEBUG:waveshare_epd.epd4in01f:e-Paper busy

^CINFO:root:ctrl + c:
DEBUG:waveshare_epd.epdconfig:spi end
DEBUG:waveshare_epd.epdconfig:close 5V, Module enters 0 power consumption ...
pi@raspberrypi:/Desktop/e-Paper/RaspberryPi_JetsonNano/python/examples $ python3 epd_4in01f_test.py
INFO:root:epd4in01f Demo
INFO:root:init and Clear
DEBUG:waveshare_epd.epd4in01f:e-Paper busy
^CINFO:root:ctrl + c:
DEBUG:waveshare_epd.epdconfig:spi end
DEBUG:waveshare_epd.epdconfig:close 5V, Module enters 0 power consumption ...
`

@xionjames
Copy link

Hi, Same error here with 7in5V2.

@shhds
Copy link
Contributor

shhds commented Jul 14, 2023

sudo make EPD=epd4in01f be admitted into make -j4 EPD=epd4in01f
python3 epd_4in01f_test.py be admitted into sudo python3 epd_4in01f_test.py

@forando
Copy link

forando commented Jul 20, 2023

same error with epd2in9** on Pi4

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

4 participants