Revision 332fd270
README.txt | ||
---|---|---|
169 | 169 |
be compiled by executing 'make' in these directories. |
170 | 170 |
|
171 | 171 |
In order to flash the bootloader to a microcontroller, you first have to set |
172 |
full read and write permissions to the USB ports of your system. You can do so |
|
173 |
by executing the following command: |
|
174 |
>$ sudo echo 'KERNEL=="ttyUSB[0-9]*",NAME="tts/USB%n",SYMLINK+="%k",MODE="0666"' > /etc/udev/rules.d/50-ttyusb.rules |
|
172 |
full read and write permissions to the USB ports of your system. To do so, first |
|
173 |
create a new file by executing the following command: |
|
174 |
>$ sudo touch /etc/udev/rules.d/50-usb-serial.rules |
|
175 |
Open the file in a text editor of your choice (sudo required) and add the lines: |
|
176 |
|
|
177 |
# Future Technology Devices International Ltd. - TTL-232RG |
|
178 |
SUBSYSTEMS=="usb", ACTION=="add", KERNEL=="ttyUSB[0-9]*", |
|
179 |
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666" |
|
180 |
|
|
181 |
# Future Technology Devices International Ltd. - FT231X |
|
182 |
SUBSYSTEMS=="usb", ACTION=="add", KERNEL=="ttyUSB[0-9]*", |
|
183 |
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE="0666" |
|
184 |
|
|
175 | 185 |
Now connect the module you want to flash directly to your system (note that |
176 | 186 |
indirect flashing is not possible for the bootloader itself) and run the command |
177 | 187 |
>$ make flash |
178 | 188 |
If the procedure was not successful, the following hints might help: |
189 |
- Did your system apply the new rules? |
|
190 |
Reboot and try again! |
|
179 | 191 |
- Could the makefile execute the stm32flash tool? |
192 |
Reinitialize the submodule and try again! |
|
180 | 193 |
- Are the permissions for USB ports set correctly? |
194 |
Check the udev rules! |
|
181 | 195 |
- Are there any other applications using the serial connection? |
196 |
Close any other applications using the serial connection! |
|
182 | 197 |
- Is the AMiRo module connected to your system? |
198 |
Use the programming cable to connect the module to your system. |
|
183 | 199 |
- Is the AMiRo module powered up? |
200 |
Keep a charger plugged in during flashing. |
|
184 | 201 |
|
185 | 202 |
ATTENTION: |
186 | 203 |
Never flash a bootloader to the wrong module! Doing so might cause severe errors |
Also available in: Unified diff