Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
973 Views

Intel® Quark™ Microcontroller D2000 - Problem with new/fresh D2000 uC programming/update ROM

Hi Intel,

I found a problem with each new (non-programmed) D2000 uC. After power-on I tried to update ROM first and I'm always receiving this error (using Intel System Studio 2016 for Microcontrollers):

"..Error: quark_d2000_flash_write: Bit ER_DONE in FLASH_STTS Timeout!"

Every time when I'm trying to update ROM (with newly soldered uC) I receive the same error.

To eliminate that (using default configuration in Intel System Studio - I don't know what is the proper one) I need to program first uC (some sample code). Then I'm receiving:

After that I'm able to update D2000 ROM:

After that I can program in normal way uC.

AdrianBurns

avijit.M

0 Kudos
6 Replies
Highlighted
28 Views

Hi ,

Is the problem only seen in ISSM - or if you try to update the ROM using the command line do you see the same issue ?

regards,

Michelle.

0 Kudos
Highlighted
Novice
28 Views

Hi Michelle,

The problem is with both with new soldered D2000 (never flashed before). Are there some special configurations/commands with flags/parameters to do that?

I wonder how to program D2000s in quick way in that case..

AdrianBurns

avijit.M

Regards,

Bartosz

0 Kudos
Highlighted
28 Views

Hi Bartosz,

In case there is some issue with the default configurations can you just loading the ROM image manually from the command line -- and let me know if you still see the issue.

Open Command Window :

cd IntelSWTools/ISSM_2016.0.0XX

issm_env.bat

cd %ISSM_DEBUGGER_ROOT%/openocd

bin\openocd -f scripts/board/quark_d2000_onboard.cfg

On a new window (or use a Terminal Emulator) open a telnet connection to OpenOCD :

telnet localhost 4444

clk32M

load_image ../../../firmware/bsp/1.0/soc/quark_d2000/rom/quark_d2000_rom.bin 0x0

regards,

Michelle.

0 Kudos
Highlighted
Novice
28 Views

Hi Michelle,

I have still the same problem.

I've done what you wrote before with newly soldered D2000 (never flashed).

First, I've tried:

Open On-Chip Debugger

> clk32M

adapter speed: 3 kHz

redirect to PM, tapstatus=0x08302c14

unknown break reason at 0x0000ffff

target state: halted

target halted due to undefined at 0x0000ffff in real mode

adapter speed: 1000 kHz

JTAG tap: quark_d2000.cltap tap/device found: 0x0e786013 (mfg: 0x009, part: 0xe786, ver: 0x0)

Enabling lmt core tap

JTAG tap: quark_d2000.lmt enabled

target state: halted

target halted due to debug-request at 0x0000fff0 in real mode

> load_image ../../../firmware/bsp/1.0/soc/quark_d2000/rom/quark_d2000_rom.bin 0x0

The requested flash write overlaps the OTP DATA protected region 0x00000000 - 0x0000014f, skipping that part

The following command will allow it:

set QUARK_D2000_OTPC_DATA_WRITE_ENABLED 1

..quark_d2000_flash_write: Bit ER_DONE in FLASH_STTS Timeout!

in procedure 'load_image'

target running for unknown reason

>

Did you check it with never flashed uC?

Regards,

Bartosz

AdrianBurns

avijit.M

0 Kudos
Highlighted
Beginner
28 Views

I had also same issue in using the second uart .....

You also try this solution

Short the GND and digital 0 pin. and restart the board . Don't forget to stop openocd. and start update ROM.

0 Kudos
Highlighted
Community Manager
28 Views

hi

someone get a solution for this?

i get the same that bartosz except at the end that i get

set QUARK_D2000_OTPC_DATA_WRITE_ENABLED 1

quark_d2000_flash_write: Write Flash Disabled

in procedure 'load_image'

also tried with the digital pin 0 grounded, and happened the same

0 Kudos