From f176d53c46576b7df85174f80d0c460172f943db Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 11 Mar 2023 18:15:54 -0500 Subject: [PATCH] update README.md; --- README.md | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 78570e1..3c85d58 100644 --- a/README.md +++ b/README.md @@ -17,36 +17,13 @@ Please see the various Makefile's included in the project for more information. To build the firmware, use the ```make``` command, followed by -f and the correct makefile, followed by the type of board you are using. -> **_NOTE:_** The only two known tested targets are ```mmdvm-hs-hat-dual``` and ```mmdvm-hs-hat-dual-usb```. - An example of this would be ```make -f Makefile.STM32FX mmdvm-hs-hat-dual``` for a full duplex modem hotspot, attached to GPIO. ## Firmware installation -The device can be used on top on a RPi attached via the GPIO port or standalone and connected via USB. Both variants require different handling of compiling and uploading the firmware, examples on flashing devices are mostly not included here because the methods to flash vary from device to device. - -The USB connection requires firmware with bootloader support whereas the GPIO version does not. For USB connection a bootloader has to be installed initally. This requires STlink connection. After that is done the firmware upgrade can be done via the USB connection. The STlink connection can be used as fallback if wrongly configured firmware was installed for example. - -### Install the firmware via GPIO on Raspberry Pi - -> **_NOTE:_** Your mileage may vary with these instructions, the hotspot boards are loosely designed around a common factor but not all are created equally. - -First you will need to disable the serial console and disable bluetooth. Edit ```/boot/cmdline.txt``` and remove the line ```console=serial0, 115200```. -Next, you will need to disable bluetooth on the board. Edit ```/boot/config.txt``` and add a line containing ```dtoverlay=disable-bt```. Reboot. - -> Most sets of instructions reccomend to download stm32flash from online, however we have found the prepackaged version to work fine. +The device can be used connected via USB. -Once the hotspot is back on, navigate to the build folder where you compiled the firmware. Put a jumper across the J1 points on the board, and the RED heartbeat LED should stop flashing. Run the below command to flash. - -```stm32flash -v -w dvm-firmware-hs_f1.bin -i 20,-21,21,-20 -R /dev/ttyAMA0``` - -You should see the below output if the board flashed successfully. -``` -Wrote and verified address 0x0800be40 (100.00%) Done. - -Resetting device... -Reset done. -``` +The USB connection requires firmware with bootloader. For USB connection a bootloader has to be installed initally. This requires STlink connection. After that is done the firmware upgrade can be done via the USB connection. The STlink connection can be used as fallback if wrongly configured firmware was installed for example. ### Install the firmware with bootloader support for USB connection