![]() If you don’t have swap space, add a 4GB swap file. To keep the Nano from crashing, we need to create a swap file. Some of the applications I will use on my Jetson Nano require a lot of memory. ![]() If you want to change it to low performance because you are using microUSB to power the Jetson Nano, here is the command: sudo nvpmodel -m 1 Create a Swap File This command will give you high power performance. Otherwise, type the following command: sudo nvpmodel -m 0 If you see the following, you are good to go. If you are using the 5V/4A power supply like I am, open your terminal window, and type: sudo nvpmodel -q Open a terminal window, and type the following command. sudo reboot Collect Information About Your Jetson Nano Type Y and press Enter to upgrade everything. Open the terminal, and type: sudo apt-get update sudo apt-get upgrade Let’s update our package list and upgrade the software on the system. ![]() sudo iw dev wlan0 set power_save off sudo reboot Run Updates Turn off the power save mode to get stability. You should see the LED blinking every 0.5 seconds (i.e. If you see an error, check your program to see if it is exactly like I wrote it. You should see a new file named led_blink. See if the executable is in the current directory. (That is a lowercase L in front of Jetson above) g++ -o led_blink led_blink.cpp -lJetsonGPIO ![]() Std::this_thread::sleep_for(std::chrono::milliseconds(500)) Std::cout << "Press CTRL+C to stop the LED" << std::endl GPIO::setup(led_pin, GPIO::OUT, GPIO::HIGH) When CTRL+C pressed, signalHandler will be called Flag to determine when user wants to end program
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |