TUTORIAL
TUTORIAL
TUTORIAL
AsProgrammer dregmod allow you to program flash memory on the protocols spi, I2C,
MicroWire. Supports Buzzpirat, Bus Pirate, CH341a, UsbAsp, AVRISP(LUFA), Arduino &
FT232H
http://dangerousprototypes.com/forum/index.php?topic=10698.0
WARNING: While the Bus Pirate part is operational, the GUI part of the AS Programmer
remains frozen; this is normal. Refer to the debug console and be patient... I will be
enhancing this mod over time (integration included). If buzzpirat console freezes(~2
mins without output)/crash : close this program, reconnect USB port and try again
WARNING: Virtual Machines (VM) and/or USB Hubs can cause problems. It is advisable
to ALWAYS use a native OS, and connect the Bus Pirate directly to a USB port
WARNING: I recommend using a speed of approximately 100kHz for each protocol as
the maximum, since the quality of the cables is important and I do not trust that the
length of yours is short, especially if there is an adapter to clips, etc. The longer the
cable and the more adapters there are, coupled with lower voltage, the more you will
need to use a lower speed
WARNING: Some firmwares have a bug in the binary SPI mode (like the latest
community firmware). To make it work, you should select the checkbox: Buzzpirat Menu
-> Fix SPI Firmware Bug. Note that if you activate this option, a firmware that does not
have the bug will not function properly! Activate it only if you are experiencing issues.
Best Firmware
I recommend using the latest Buzzpirat firmware for the Bus Pirate
v3: https://buzzpirat.com/docs/firmware-update/
Download
https://github.com/therealdreg/asprogrammer-dregmod/releases
WARNING
Only issues and/or PRs related to the buzzpirat & bus pirate function are accepted. If
you encounter any other kind of problem, please check if the same issue occurs with the
official UsbAsp-flash and report it there:
• https://github.com/nofeletru/UsbAsp-flash/issues
• https://github.com/nofeletru/UsbAsp-flash/discussions
Follow the same steps as in the previous chapter for the 3.3v Windbond, but Connect
the Winbond's VCC & Bus Pirate's VPU to an external 1.8v power source (all GNDs
together):
Change the following in the configuration:
WARNING: Reading flash content in debug mode .exe can cause exceptions! Please use
a Release .exe version and run it outside of the Lazarus IDE
WARNING: Caution when editing a FORM if you or the Lazarus IDE is altering a caption
in main.lfm as it will disrupt the translation system. I prefer to manually edit the .lfm files
to avoid this kind of issue
6. Install mphexeditor
Go to Package menu --> Open package file (.lpk)
Select file:
asprogrammer-dregmod\mphexeditor\mphexeditor\src\mphexeditorlaz.lpk
https://visualstudio.microsoft.com/es/vs/older-downloads/
And done! You can debug a native C/C++ DLL in a FreePascal Lazarus .EXE Project from
Visual Studio 2019
Just insert a:
__debugbreak();
Related
• https://github.com/therealdreg/flashrom_build_windows_x64
• https://github.com/therealdreg/flashrom-dregmod
• https://github.com/therealdreg/buzzpirat