Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 23, 2013, 12:55:28 pm

http://www.gammon.com.au/forum/?id=11635

paulinchen
2  Using Arduino / Networking, Protocols, and Devices / Re: ethnet shield and big page html to send on: December 15, 2013, 06:00:00 pm
You can make the buffer bigger or you can send also more than 1 buffer:

char buffer [256];

strcpy(buffer, "...");
ethernet.write(buffer);
strcpy(buffer, "...");
ethernet.write(buffer);
strcpy(buffer, "...");
ethernet.write(buffer);
...

paulinchen
3  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 15, 2013, 04:25:25 pm
Hi Nick,
thanks for your declaration of the 0xff-issue, I learn a lot from you.

I give you a little bit more karma  smiley

paulinchen
4  Using Arduino / Networking, Protocols, and Devices / Re: ethnet shield and big page html to send on: December 15, 2013, 03:50:53 pm
Hi,
i don't use this library, but the "normal" ethernetshield.

You should not use the ethernet.print("...");

Please use instead:

1. define a array:               char buffer [256];
2. fill the array:                  strcpy(buffer, "...");
3. write the array:            ethernet.write(buffer);

Because with the print command you send one packet per char, with the write command you can send many chars with 1 packet, the header-overhead is very reduced.

paulinchen
5  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 15, 2013, 03:05:58 pm
I think I did an Optiboot loader which does not suffer from the 0xFF issue. I can't recall if that is the one that this sketch uploads or not, but that would explain why I didn't have the issue with the 0xFFs at the end, and you did. Of course in this case you need to upgrade the board which uploads the sketches, rather than the Mega2560 board. smiley

I'm not sure I understand you correctly. My English is not so good. Sorry.

But i use only MEGA2560 boards, so i must use as programmer-board also a MEGA2560. You mean, than i use a UNO-board, the problem with the 0xff issue are not present?

paulinchen
6  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 15, 2013, 02:59:54 pm
Thanks for your answer, nick.

I think, the problem is now resolved.

Many, many thanks for your great work!

Please update the sketch on your great website also, because i use this place normally.

paulinchen
7  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 15, 2013, 09:48:33 am
Hi Nick,
with your new bootloader all my sketches works fine  smiley

Many thanks for your support, great work!

There is just one small thing:
then i use your new programmer-sketch, i can compile the sketch, but the uploader shows a error:

Binäre Sketchgröße: 22.842 Bytes (von einem Maximum von 258.048 Bytes)
avrdude: verification error, first mismatch at byte 0x24e4
         0x0f != 0xff
avrdude: verification error; content mismatch


After this, i delete the last 20 lines in the file "bootloader_atmega2560_v2.h"

(always 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,)

and without this i can upload the bootloader. The checksum are identical and it works.

I have check this with 2 boards.

paulinchen
8  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 14, 2013, 04:36:08 pm
To recompile the bootloader i use the make.exe in the DOS commandline-tool.

I use this script (please adapt the paths of your IDE-location):

set BASEDIR=C:\Programme\arduino-1.0.5\hardware
set DIRAVRUTIL=%BASEDIR%\tools\avr\utils\bin
set DIRAVRBIN=%BASEDIR%\tools\avr\bin
set DIRAVRAVR=%BASEDIR%\tools\avr\avr\bin
set DIRLIBEXEC=%BASEDIR%\tools\avr\libexec\gcc\avr\4.3.2
set OLDPATH=%PATH%
@path %DIRAVRUTIL%;%DIRAVRBIN%;%DIRAVRAVR%;%DIRLIBEXEC%;%PATH%
cd C:\Programme\arduino-1.0.5\hardware\arduino\bootloaders\stk500v2
%DIRAVRUTIL%\make.exe mega2560
@path %OLDPATH%



Note: after the recompiling the hex-file was too big. To resolve this problem, you must change the makefile bevor.

https://github.com/msproul/Arduino-stk500v2-bootloader/issues/3

After the recompile i use your lua-script to convert the bootloader hex-file and copy it in your programmer-script.

paulinchen
9  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 14, 2013, 03:43:57 pm
@Nick,
can you reproduce my problem?

paulinchen

10  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 14, 2013, 01:58:23 pm
I have make more tests today.

1. I use a new MEGA R3 and flashing the standard bootloader from the sketch "Atmega_Board_Programmer" from nick.
2. I use the sketch "watchdog_ok" and after 8 seconds the board is reseting, fine.
3. I use the sketch "watchdog_error" and after 8 seconds the board is hanging, no reset.
4. I use the sketch "watchdog_ok" again and after 8 seconds the board is also hanging.

When i flashing the bootloader again, the sketch "watchdog_ok" is running ok.

paulinchen
11  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 14, 2013, 01:50:18 pm

Thanks for the link. With the changes i can recompile the bootloader.

paulinchen
12  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 13, 2013, 07:06:34 am
Hi,
here are a test-sketch, please show the comments in the code.

If i compile it and after this runs the sketch and the serial monitor in the IDE is open, when hangs the sketch after the watchdog-event.
If i power-off the board and power-on again, and it is running without the IDE, it works?

paulinchen
13  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 12, 2013, 05:09:25 pm
Yes it seems too long. However you shouldn't really need to recompile the bootloader. If you post a sketch that reproduces the problem we can look into it.

I would recompile the bootloader with the parameter -DWATCHDOG_MODS. I hope, this changes solved the problem.

I'm a little bit confused with the bootloader, why i can't recompile it?  smiley-sad

I have write a test-sketch, but i can't reproduces the problem, only some times it hangs...
But tomorrow is a new day...

paulinchen
14  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 12, 2013, 04:21:41 pm
Yes, i have compile the original bootloader again, which comes with the IDE 1.0.5.
No changes in the sourcefiles or the makefile.

After compiling the bootloader is to long?

Here are the start- and endlines:

Code:
:020000023000CC
:10E000000D9489F10D94B3F10D94B3F10D94B3F126
:10E010000D94B3F10D94B3F10D94B3F10D94B3F1EC
:10E020000D94B3F10D94B3F10D94B3F10D94B3F1DC
:10E030000D94B3F10D94B3F10D94B3F10D94B3F1CC
:10E040000D94B3F10D94B3F10D94B3F10D94B3F1BC
:10E050000D94B3F10D94B3F10D94B3F10D94B3F1AC
:10E060000D94B3F10D94B3F10D94B3F10D94B3F19C
:10E070000D94B3F10D94B3F10D94B3F10D94B3F18C
:10E080000D94B3F10D94B3F10D94B3F10D94B3F17C
:10E090000D94B3F10D94B3F10D94B3F10D94B3F16C
:10E0A0000D94B3F10D94B3F10D94B3F10D94B3F15C
:10E0B0000D94B3F10D94B3F10D94B3F10D94B3F14C
:10E0C0000D94B3F10D94B3F10D94B3F10D94B3F13C
:10E0D0000D94B3F10D94B3F10D94B3F10D94B3F12C
:10E0E0000D94B3F141546D656761323536300041AE
:10E0F000726475696E6F206578706C6F72657220DE
:10E1000073746B3530305632206279204D4C530099
:10E11000426F6F746C6F616465723E004875683F52
:10E1200000436F6D70696C6564206F6E203D200048
:10E130004350552054797065202020203D20005FF9
:10E140005F4156525F415243485F5F3D2000415658
:10E1500052204C696243205665723D20004743437C
:10E160002056657273696F6E203D20004350552024
:10E1700049442020202020203D20004C6F7720663D
:10E18000757365202020203D20004869676820665F
:10E190007573652020203D200045787420667573D6
:10E1A00065202020203D20004C6F636B2066757336
:10E1B000652020203D20004465632031322032302C
:10E1C000313300312E362E3400342E332E320056A9
:10E1D00023202020414444522020206F7020636F70
:10E1E00064652020202020696E73747275637469E1
:10E1F0006F6E2061646472202020496E74657272B3
:10E20000757074006E6F20766563746F7200726A49

a lot of lines....

:10FFA000E89507B600FCFDCFCE5CDE4F88819981D5
:10FFB000AA81BB81C253D14080509F4FAF4FBF4FEA
:10FFC000CE5CDE4F88839983AA83BB83C253D14022
:10FFD000C05EDE4F488159816A817B81C052D14029
:10FFE000DE011B9631E08C9111962C91119712969F
:10FFF000C75CDE4F2883C953D140C85CDE4F1882EE
:020000024000BC
:10000000C853D14090E0C85CDE4FE881F981C85305
:10001000D1408E2B9F2B0C01FA0160935B00309333
:100020005700E89511244E5F5F4F6F4F7F4F02508E
:100030001040C9F685E0C05EDE4FE880F9800A8195
:100040001B81C052D140F70100935B0080935700A1
:10005000E89507B600FCFDCF81E180935700E89555
:1000600036C0C05EDE4F88819981AA81BB81C052B3
:10007000D140B695A795979587959801FE013B9637
:1000800010C04081F999FECF31961FBA92BD81BD53
:1000900040BD0FB6F894FA9AF99A0FBE0196215016
:1000A00030402115310569F7A80160E070E0440F88
:1000B000551F661F771FC05EDE4F088119812A8198
:1000C0003B81C052D140400F511F621F731F1A82E3
:1000D000C05EDE4F488359836A837B83C052D14020
:1000E0007FC01A81C55CDE4F1883CB53D140C65CFC
:1000F000DE4F1882CA53D1408B81C82EDD24C65CE6
:10010000DE4F28813981CA53D140C22AD32A1A82AC
:100110008981BE016D5F7F4F843121F59601C05EFC
:10012000DE4FE880F9800A811B81C052D1400BBFAD
:10013000F70187919691DB018C9311969C936E5FEA
:100140007F4FD801C7010296A11DB11DC05EDE4FD1
:1001500088839983AA83BB83C052D1402250304008
:10016000F1F636C0C05EDE4F288139814A815B815D
:10017000C052D1400894C108D108760100E010E0D7
:100180000894C11CD11C0894E11CF11C011D111D17
:10019000E20EF31E041F151F21BDBB27A52F942FB0
:1001A000832F82BD2F5F3F4F4F4F5F4FF89A80B52F
:1001B000DB018D93BD012E153F054007510761F707
:1001C000C05EDE4F288339834A835B83C052D140AF
:1001D00096012D5F3F4FFB01108204C080EC8A83A3
:1001E00022E030E08BE18093C6008091C00086FF62
:1001F000FCCF8091C00080648093C000C15DDE4F61
:10020000F881CF52D140F093C6008091C00086FFA4
:10021000FCCF8091C00080648093C000432F309356
:10022000C6008091C00086FFFCCF8091C000806432
:100230008093C000922F2093C6008091C00086FF5B
:10024000FCCF8091C00080648093C0008EE08093DA
:10025000C6008091C00086FFFCCF8091C000806402
:100260008093C00065E1C15DDE4FE880CF52D14090
:100270006E2569276427FE01319610C09081909306
:10028000C6008091C00086FFFCCF31968091C000EF
:1002900080648093C00069272150304021153105CA
:1002A00069F76093C6008091C00086FFFCCF809103
:1002B000C00080648093C00085B1805885B99920C2
:1002C00099F4C15DDE4F0881CF52D1400F5FC15D0F
:1002D000DE4F0883CF52D14090E0A0E0B0E08E0125
:1002E0000F5F1F4F0D9496F427982F9880E090E0B1
:1002F00020ED37E0F9013197F1F701968436910549
:10030000C9F700008091C0008D7F8093C00081E11B
:1003100080935700E895EE27FF270994FFCF90E0E0
:100320000D9496F497FB092E07260AD077FD04D08A
:100330002ED006D000201AF4709561957F4F089555
:10034000F6F7909581959F4F0895A1E21A2EAA1B6A
:10035000BB1BFD010DC0AA1FBB1FEE1FFF1FA21775
:10036000B307E407F50720F0A21BB30BE40BF50B72
:10037000661F771F881F991F1A9469F760957095FB
:10038000809590959B01AC01BD01CF010895AA1BFA
:10039000BB1B51E107C0AA1FBB1FA617B70710F070
:1003A000A61BB70B881F991F5A95A9F780959095A2
:0A03B000BC01CD010895F894FFCFC1
:040000033000E000E9
:00000001FF
paulinchen
15  Using Arduino / Microcontrollers / Re: watchdog with the mega does not work? on: December 12, 2013, 03:27:55 pm
Can you post a sketch that reproduces the bootloader issue, not just a couple of lines. Then I'll test that.

Many thanks for your help, Nick.
My webserver-sketch has many libs and need a lot of external hardware. But i will create a test-sketch for this problem.

Can you give me please a answer for the problem with the bootloader-size?


paulinchen
Pages: [1] 2 3 ... 7