Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Program memory erased after unplug on: February 06, 2013, 11:06:10 am
Hi,

I had the same problem using an Arduino Due with Atmel Studio. I reported it to Atmel and they were able to reproduce the issue. The flash does not get erased, but rather it is inaccessible when you apply the power. Once powered, you can reset the board and then the flash becomes accessible. I believe this is only an issue if you bypass the Arduino bootloader which is managed by the Mega. We took the Mega off and it solved the problem.

Atmel's response was as follows:-
"From what we can see on the faulty start-up sequence , the erase pin is asserted after power on until the XMEGA drive it. This generate an error as the flash seems to be not accessible during this time."

Hope that helps,

Kevin.
2  Using Arduino / Programming Questions / Re: Arduino Due + Atmel Studio 6 Flash Problem on: November 21, 2012, 03:43:04 am
I've only tried it using Atmel Studio IDE. I contacted Atmel to ask about this but I'm still waiting for a reply, so hopefully they will be able to reproduce it.
3  Using Arduino / Programming Questions / Arduino Due + Atmel Studio 6 Flash Problem on: November 20, 2012, 10:17:49 am
Hi,

I'm using the Arduino Due with Atmel Studio 6 and I have found a major issue. If I leave the board powered down for > 1 minute, when I power it back up, it fails to read the internal flash memory. As a test, I wrote a byte to a fixed location in flash. Then the first thing I do in my main code is read the location, and if it is not as programmed, I flicker the LED. I get consistent results with 2 Arduino Due boards, whereby after powering the device off for > 1 minute, when I next power up the LED flickers to indicate that the flash was not read correctly.

I have also used Atmel's ASF Flash Programming Example code to reproduce this problem, to rule out anything stupid.

It works fine on my SAM3X-EK dev board, and I'm wondering if it's a start-up time issue. When I have used AVR's, I would set the SUT fuse to increase the start-up time, but with the ARM, I can't think of anything else I can do other than waiting for the clocks to stabilise?

Is anyone else using the Due and Atmel Studio 6, and if so is this something you have tried or will be trying?

Thanks,

Kevin.
Pages: [1]