Skip to content

Instantly share code, notes, and snippets.

View mohanex's full-sized avatar
:shipit:
Focusing

Mohamed Afassi mohanex

:shipit:
Focusing
View GitHub Profile
@mohanex
mohanex / gist:0c81352a0a8920141e32a34ab00d5c61
Last active January 18, 2024 08:45
Installing python3 on alpine on docker
# Based on the latest version of the alpine image
FROM alpine:latest
# Updates the package index and installs python3 in the alpine container
RUN apk --update add python3
# Copies the hello-docker.py file to the image
COPY hello-world.py /opt/
# Executes python3 with /opt/hello-docker.py as the only parameter
@mohanex
mohanex / Flash QSPI Readings
Created August 23, 2023 07:40
Vitis C++ Code to handle different type of Flash QSPI readings (MACRONIX MX25L3233F)
int ReadFromFLASH(int mode, u32 addr){
u8 WRITE_ENABLE[2] = {0x06,0x00};/*Command to enable memory conf writing*/
u8 conf_QUAD[3] ={ /*Command to activate Quad Read Mode*/
0x01,
0x43,
0x00
};
int Status,I_mode = mode;
u32 adresse_to_read_from = addr;