| 
									
										
										
										
											2022-03-07 21:30:33 +01:00
										 |  |  | # How to build example for Esp32s3
 | 
					
						
							|  |  |  | 1. Load idf environment variables (eg. using the esp-idf alias `get_idf` if configured) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 2. cd into examples directory | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | $ cd /tinyusb/examples/device/audio_test_freertos | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-27 21:44:25 +02:00
										 |  |  | 3. Run cmake in project directory specifying the board | 
					
						
							| 
									
										
										
										
											2022-03-07 21:30:33 +01:00
										 |  |  | ``` | 
					
						
							| 
									
										
										
										
											2024-04-27 21:44:25 +02:00
										 |  |  | $ cmake -DBOARD=espressif_s3_devkitc -B build -G Ninja . | 
					
						
							|  |  |  | $ ninja.exe -C build | 
					
						
							| 
									
										
										
										
											2022-03-07 21:30:33 +01:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 4. Flash the binary onto the esp32-s3 by copy-paste of the full command output by the esp-idf build system replacing **(PORT)** with eg. /dev/ttyUSB0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | eg. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-28 00:40:36 +02:00
										 |  |  | > /home/kaspernyhus/.espressif/python_env/idf4.4_py3.8_env/bin/python ../../../../esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset --chip esp32s3  write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 _build/espressif_s3_devkitc/bootloader/bootloader.bin 0x8000 _build/espressif_s3_devkitc/partition_table/partition-table.bin 0x10000 _build/espressif_s3_devkitc/audio_test_freertos.bin
 |