USBSerialLogger/README.md

44 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2021-12-26 10:20:12 +01:00
# USB Serial Logging
## Usage
2021-12-26 10:26:08 +01:00
Place the `20_usb_serial_logging.rpx` in the `[ENVIRONMENT]/modules/setup` folder and run the [EnvironmentLoader](https://github.com/wiiu-env/EnvironmentLoader).
Requires [MochaPayload](https://github.com/wiiu-env/MochaPayload) as a setup module in `[ENVIRONMENT]/modules/setup`.
2021-12-26 10:20:12 +01:00
Requires a USB serial cable with FTDI FT232 chipset (e.g. Digitus DA-70156) and [TeraTerm](https://ttssh2.osdn.jp/index.html.en), or similar serial terminal program.
Settings:
2021-12-26 10:26:08 +01:00
- Speed: 57600
- Data: 8 bit
- Parity: none
- Stop bits: 1 bit
- Flow control: none
- New-line Receive: CR+LF
- New-line Transmit: CR+LF
2021-12-26 10:20:12 +01:00
The IOP-Shell is not supported.
## Building
For building you just need [wut](https://github.com/devkitPro/wut/) installed, then use the `make` command.
## Building using the Dockerfile
It's possible to use a docker image for building. This way you don't need anything installed on your host system.
```
# Build docker image (only needed once)
docker build . -t usb_serial_logging-builder
# make
docker run -it --rm -v ${PWD}:/project usb_serial_logging-builder make
# make clean
docker run -it --rm -v ${PWD}:/project usb_serial_logging-builder make clean
```
2023-04-07 19:49:34 +02:00
## Format the code via docker
`docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./source -i`
2021-12-26 10:20:12 +01:00
## Credits
Maschell