For discussion of Speeduino compatible boards designed / built by other members of the forum and for guidance around making such a board
By Hasse.69
#16652
How cool is that..... :D
User avatar
By NicoEFI
#17293
Hi
Can you help me to burn my 2561. I have never do that. i read some posts on web but i don't understood all (again my bad english).
What fuse use ?
someone can do a small tuturial maybe ? :roll:

*****************************************************************************
After a day, to TRY to understand.
1- I must use the pins_arduino.h file from NickZ, replacing it in the directory: \ arduino \ avr \ variants \ mega.
2- I keep, the choice of mega2560 microcontroller in arduino IDE.
3- I compile and export the file speeduino into Hex.
4- I connect my programmer to isp plug on my card (I use USBasp).
5- I open the CMD console.
6- I use an avrdude command line to burn my atmega2561 with -F option:
-c usbasp -p m2561 -F -U flash:w:"H:\Speeduino\Speeduino_Fev17\atmelstudio\speeduinoatmelstudio\speeduinoatmelstudio\speeduino.ino.mega.hex":a -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFD:m

For the fuse bit,I'm really not sure (that is original fuse for MEGA2560) !
Is it good ?
User avatar
By NicoEFI
#17378
:( I can't do it!
I use avrdudess and a STK500 programmer to burn.

i can burn a bootloader(no problem for that) and i have tested with -F option :
stk500boot_v2_mega2560.hex with atmega2560 selected
stk500boot_v2_mega2560.hex with atmega2561 selected
stk500boot_v2_mega2561.hex with atmega2560 selected
stk500boot_v2_mega2561.hex with atmega2561 selected

sample command i have tested :
-c stk500 -p m2560 -P COM6 -F -U flash:w:"C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\stk500v2\stk500boot_v2_mega2561.hex":a -U lfuse:w:0xFF:m -U hfuse:w:0xD8:m -U efuse:w:0xFD:m

For each previous test, i have tested to burn Speeduino with Arduino IDE : ATmega2560 (original pins_arduino.h) or 2561 (modified pins_arduino.h for 2561)
When i burn in arduino a have error.

Help please
Attachments
avrdudess.PNG
avrdudess.PNG (69.35 KiB) Viewed 6762 times
User avatar
By PSIG
#17380
You can upload to an ATMega with no bootloader at all (only burn fuses), but you will have to make any future uploads with ISP/ICSP or other serial after that. The bootloader allows USB/IDE programming with a start delay. Something to consider if only you are doing programming, and other operation is by serial-only such as Bluetooth. I have programmed sketches without a bootloader installed (only a few), and while most users will want a bootloader, one useful benefit is that sketches start instantly with no boot delay. This could be useful with Speeduino in some cases as any power glitch or reset is effectively invisible to operation. Take care with resets if the engine still has low MAP signal as it will throw-off the system using the new 'base' baro, and is one reason a second barometric pressure input can be important.

David
User avatar
By NicoEFI
#17381
Thanks David
So if I understand, I erase the current bootloader 2561 ;
And directly load speeduino firmware by arduino ide without bootloader, only use atmega2561 board in arduino ide and pinsarduino.h for 25661 ? and what fuses use ?
If I erase bootloader can i use FTDI for communicate after with Tunerstudio ?
User avatar
By PSIG
#17388
You could try that, but I'm concerned that if you can't burn a bootloader, you may have issues loading a sketch as well. If you downloaded Gammon's sketches, it includes a fuse reader, programmer, hex uploader, etc. Lots of tools to do stuff with it and they are 2561 capable. The Hex Uploader for example uses no bootloader in the example here. The online fuse calculator is here.

David
User avatar
By klempnertommy
#17402
OMG...
@NicoEFI
First, You dont need special settngs!
only little bit of Brain ;) (sorry) ;)... to fool the arduino IDE LOL

Step1: change your pinmap
Step2: Compile for 2560!!! with the arduino IDE and export it with bootloader for programming with programmer.
Step3: Burn wit AVR Studio or something else this 2560 code with 2560 bootloader and right fuses in the 2561.

Then you later can flash new firmewares with arduino and 2560 settings in your 2561 with serial bootloader

On my mini Speeduino I can flash Firmware with bloetooth, Serial2USB, Real RS232 with Arduino
;)

My Firmware, My Fuses:
Attachments
2561_Fuses.PNG
2561_Fuses.PNG (38.8 KiB) Viewed 6714 times
(57.3 KiB) Downloaded 305 times
User avatar
By NicoEFI
#17404
Many thanks for your help.

When I use your hex, it works very well.

But if i want to compil and export , l always have an error. (I must arrive to compile for later (future Speeduino firmware))
I have used this pins_arduino.h , it is the pins_arduino from Nickz
(9.38 KiB) Downloaded 304 times
burn error.png
burn error.png (77.3 KiB) Viewed 6705 times
User avatar
By klempnertommy
#17405
what did I write?
...
You dont need special settings ;)

load a new clean arduino.zip , no installation, ony zipout, and start out of the folder, no changes in the board definition!

Load new Speeduino, change your pinnmapping in the utils.c file

Strg+Alt+S

The binaer files then in the same folder, you load your Speeduino.ino

Only change the Pinnmaping in utils.c, simular like mine, I use my settings in "Case0" and select this in Tuner Studio
Code: Select all
void setPinMapping(byte boardID)
{
  switch (boardID)
  {
    case 0:
      //Pin mappings as per the EDFI micro-EFI (made by EURODRONES)
      pinInjector1 = 11; //Output pin injector 1 is on
      
      pinCoil1 = 12; //Pin for coil 1
      
      pinTrigger = 2; //The CAS pin
      
      pinTPS = A5; //TPS input pin
      pinMAP = A6; //MAP sensor pin
      pinIAT = A1; //IAT sensor pin
      pinCLT = A3; //CLS sensor pin
      pinO2 = A4; //O2 Sensor pin
      pinIdle1 = 10; //Single wire idle control
      
      pinBat = A2; //Battery reference voltage pin
      pinFan = 5; //Pin for the fan output
      pinFuelPump = 4; //Fuel pump output
      
      break;
   
  • 1
  • 18
  • 19
  • 20
  • 21
  • 22
  • 27

Had it running for a short period again. Same as […]

Ok, here is the first version of the adapter plate[…]

Ignition Angle doubled?

don't load your old tune in case it is corrupted[…]

Yes, totally wrong setting. Slight noise in TPS ca[…]

Still can't find what you're looking for?