Hifiplayer: can download, but no start

Using VSDSP legacy command line tools.
Post Reply
Mick42
User
Posts: 17
Joined: Fri 2011-10-14 22:45

Hifiplayer: can download, but no start

Post by Mick42 » Fri 2011-10-14 23:24

Hi,

as a beginners task I use VSIDE, made new solution for VS1053b and selected VS1053 HfiPlayer V1.0 as template.
Build runs ok,
VSide crashes always when I try to debug .
Then I use uniprom tool to download the image to Hifiplayer V0.4 board.
it lloks fine, but finally hifiplayer does not start, so there msut be some error.
Can you help ?
I am listing the uniprom output below, guess you guys now by heart what should be there...

Kind regards + thanks for any hint
Michael Schmelz

Read electronic signature (RDES (0xAB) method): 15 15
Read manufacturer and product id (RDID (0x90) method): ef 15
Sending a Flash Erase Block 0 (64KB) Command (0xD8)...
Erase took time, probably this is a Flash chip: Using 24-bit address.
Opened file eeprom.img.
Programming blocks of data... "." means OK, "X" means error.
. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB.
. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB.. 0x10 KB.
. 0x11 KB.. 0x12 KB.. 0x13 KB.. 0x14 KB.. 0x15 KB.. 0x16 KB.. 0x17 KB.. 0x18 KB.
. 0x19 KB.. 0x1a KB.. 0x1b KB.. 0x1c KB.. 0x1d KB.. 0x1e KB.. 0x1f KB.. 0xe0 KB.
. 0xe1 KB.. 0xe2 KB.. 0xe3 KB.. 0xe4 KB.. 0xe5 KB.. 0xe6 KB.. 0xe7 KB.. 0xe8 KB.
. 0xe9 KB.. 0xea KB.. 0xeb KB.. 0xec KB.. 0xed KB.. 0xee KB.. 0xef KB.. 0xf0 KB.
. 0xf1 KB.. 0xf2 KB.. 0xf3 KB.. 0xf4 KB.. 0xf5 KB.. 0xf6 KB.. 0xf7 KB.. 0xf8 KB.
. 0xf9 KB.. 0xfa KB.. 0xfb KB.. 0xfc KB.. 0xfd KB.. 0xfe KB.. 0xff KB.. 0x00 KB.
X VERIFY ERROR
Done. Resetting chip.
A2 : 0x10 A1 : 0x1010 A0 : 0x1010
B2 : 0x10 B1 : 0x1010 B0 : 0x1010
C2 : 0x10 C1 : 0x1010 C0 : 0x1010
D2 : 0x10 D1 : 0x1010 D0 : 0x1010
LR0 : 0x1010 LR1 : 0x1010 MR0 : 0x1010 MR1 : 0x1010
LC : 0x1010 LS : 0x1010 LE : 0x1010
I0 : 0x1010 I1 : 0x1010 I2 : 0x1010 I3 : 0x1010
I4 : 0x1010 I5 : 0x1010 I6 : 0x1010 I7 : 0x1010
P : 0x0010101010 =~ 269488144
A : 0x0010101010 =~ 269488144
B : 0x0010101010 =~ 269488144
C : 0x0010101010 =~ 269488144
D : 0x0010101010 =~ 269488144
PC : 0x00000000
Next Exec: 0x0000 LDC 0x0,A0
_audio_buffer + 0x000000


K:\KOS\PROJ\T11\SW\uniprom>uniprom hifiplayer.coff

K:\KOS\PROJ\T11\SW\uniprom>coff2boot hifiplayer.coff eeprom.img
X: 0xc002-0xc010 In: 33, out: 33
I: 0x0018-0x001f In: 33, out: 33
I: 0x0050-0x0e62 In:14413, out:14413
I: 0x0000-0x0001 In: 9, out: 9
X: 0x1800-0x180d In: 31, out: 31
Y: 0x1800-0x1807 In: 19, out: 19
X: 0x361f-0x3914 In: 1519, out: 1519
In: 16057, out: 16062

K:\KOS\PROJ\T11\SW\uniprom>vs3emu -chip vs1002b -e 0x50 -s 9600 -x 12288 -ts 384
00 -l uniprom.coff -c run.cmd -p 4
VSEMU 2.2 Nov 12 2010 16:48:42(c)1995-2010 VLSI Solution Oy
Using serial port 4, COM speed 9600
Waiting for a connection to the board...

Chip version "1053"
Stack pointer 0x1920, bpTable 0x4f56
User program entry address 0x50
Speed changed to 38400
uniprom.coff: includes optional header, 23 sections, 887 symbols
Section 1: code page:0 start:80 size:2 relocs:2 fixed
Section 2: puthex page:0 start:82 size:53 relocs:5
Section 3: puthex8 page:0 start:135 size:37 relocs:3
Section 4: SpiPrivDelay page:0 start:172 size:10 relocs:1
Section 5: SpiSendClocks page:0 start:182 size:24 relocs:1
Section 6: SpiPrivSendReceive page:0 start:206 size:51 relocs:4
Section 7: SpiPrivInit page:0 start:257 size:14 relocs:0
Section 8: SpiPrivRead page:0 start:271 size:52 relocs:11
Section 9: SpiPrivStatus page:0 start:323 size:33 relocs:4
Section 10: SpiPrivWrite page:0 start:356 size:63 relocs:13
Section 11: SpiStatus page:0 start:419 size:33 relocs:4
Section 12: SpiEraseBlock page:0 start:452 size:107 relocs:24
Section 13: SpiBlockWrite page:0 start:559 size:71 relocs:13
Section 14: SpiVerify page:0 start:630 size:71 relocs:15
Section 15: BlockProgram page:0 start:701 size:58 relocs:9
Section 16: ReadSignature page:0 start:759 size:97 relocs:30
Section 17: main page:0 start:856 size:257 relocs:107
Section 18: oldmain page:0 start:1113 size:23 relocs:6
Section 19: init_x page:1 start:2048 size:19 relocs:0
Section 20: const_x page:1 start:2067 size:692 relocs:0
Section 21: bss_x page:1 start:2759 size:260 relocs:0
Section 22: VS_stdiolib page:0 start:1136 size:50 relocs:13
Section 23: VS_stdiolib$0 page:0 start:1186 size:134 relocs:37
VS1053 16/24 BIT SPI EEPROMMER / FLASHER V1.0 (PP)
Detecting connected SPI Flash or EEPROM type...
Read electronic signature (RDES (0xAB) method): 15 15
Read manufacturer and product id (RDID (0x90) method): ef 15
Sending a Flash Erase Block 0 (64KB) Command (0xD8)...
Erase took time, probably this is a Flash chip: Using 24-bit address.
Opened file eeprom.img.
Programming blocks of data... "." means OK, "X" means error.
. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB.
. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB...
Verifying...
.. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB
.. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB..
Verify OK.
Finished!
Done. Resetting chip.
A2 : 0x10 A1 : 0x1010 A0 : 0x1010
B2 : 0x10 B1 : 0x1010 B0 : 0x1010
C2 : 0x10 C1 : 0x1010 C0 : 0x1010
D2 : 0x10 D1 : 0x1010 D0 : 0x1010
LR0 : 0x1010 LR1 : 0x1010 MR0 : 0x1010 MR1 : 0x1010
LC : 0x1010 LS : 0x1010 LE : 0x1010
I0 : 0x1010 I1 : 0x1010 I2 : 0x1010 I3 : 0x1010
I4 : 0x1010 I5 : 0x1010 I6 : 0x1010 I7 : 0x1010
P : 0x0010101010 =~ 269488144
A : 0x0010101010 =~ 269488144
B : 0x0010101010 =~ 269488144
C : 0x0010101010 =~ 269488144
D : 0x0010101010 =~ 269488144
PC : 0x00000000
Next Exec: 0x0000 LDC 0x0,A0
_audio_buffer + 0x000000


K:\KOS\PROJ\T11\SW\uniprom>uniprom hifiplayer.coff

K:\KOS\PROJ\T11\SW\uniprom>coff2boot hifiplayer.coff eeprom.img
X: 0xc002-0xc010 In: 33, out: 33
I: 0x0018-0x001f In: 33, out: 33
I: 0x0050-0x0e62 In:14413, out:14413
I: 0x0000-0x0001 In: 9, out: 9
X: 0x1800-0x180d In: 31, out: 31
Y: 0x1800-0x1807 In: 19, out: 19
X: 0x361f-0x3914 In: 1519, out: 1519
In: 16057, out: 16062

K:\KOS\PROJ\T11\SW\uniprom>vs3emu -chip vs1002b -e 0x50 -s 9600 -x 12288 -ts 384
00 -l uniprom.coff -c run.cmd -p 4
VSEMU 2.2 Nov 12 2010 16:48:42(c)1995-2010 VLSI Solution Oy
Using serial port 4, COM speed 9600
Waiting for a connection to the board...

Connection failed (timeout)
Trying to reconnect...Chip version "1053"
Stack pointer 0x1920, bpTable 0x4f56
User program entry address 0x50
Speed changed to 38400
uniprom.coff: includes optional header, 23 sections, 887 symbols
Section 1: code page:0 start:80 size:2 relocs:2 fixed
Section 2: puthex page:0 start:82 size:53 relocs:5
Section 3: puthex8 page:0 start:135 size:37 relocs:3
Section 4: SpiPrivDelay page:0 start:172 size:10 relocs:1
Section 5: SpiSendClocks page:0 start:182 size:24 relocs:1
Section 6: SpiPrivSendReceive page:0 start:206 size:51 relocs:4
Section 7: SpiPrivInit page:0 start:257 size:14 relocs:0
Section 8: SpiPrivRead page:0 start:271 size:52 relocs:11
Section 9: SpiPrivStatus page:0 start:323 size:33 relocs:4
Section 10: SpiPrivWrite page:0 start:356 size:63 relocs:13
Section 11: SpiStatus page:0 start:419 size:33 relocs:4
Section 12: SpiEraseBlock page:0 start:452 size:107 relocs:24
Section 13: SpiBlockWrite page:0 start:559 size:71 relocs:13
Section 14: SpiVerify page:0 start:630 size:71 relocs:15
Section 15: BlockProgram page:0 start:701 size:58 relocs:9
Section 16: ReadSignature page:0 start:759 size:97 relocs:30
Section 17: main page:0 start:856 size:257 relocs:107
Section 18: oldmain page:0 start:1113 size:23 relocs:6
Section 19: init_x page:1 start:2048 size:19 relocs:0
Section 20: const_x page:1 start:2067 size:692 relocs:0
Section 21: bss_x page:1 start:2759 size:260 relocs:0
Section 22: VS_stdiolib page:0 start:1136 size:50 relocs:13
Section 23: VS_stdiolib$0 page:0 start:1186 size:134 relocs:37
VS1053 16/24 BIT SPI EEPROMMER / FLASHER V1.0 (PP)
Detecting connected SPI Flash or EEPROM type...
Read electronic signature (RDES (0xAB) method): 15 15
Read manufacturer and product id (RDID (0x90) method): ef 15
Sending a Flash Erase Block 0 (64KB) Command (0xD8)...
Erase took time, probably this is a Flash chip: Using 24-bit address.
Opened file eeprom.img.
Programming blocks of data... "." means OK, "X" means error.
. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB.
. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB...
Verifying...
.. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB
.. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB..
Verify OK.
Finished!
Done. Resetting chip.
A2 : 0x10 A1 : 0x1010 A0 : 0x1010
B2 : 0x10 B1 : 0x1010 B0 : 0x1010
C2 : 0x10 C1 : 0x1010 C0 : 0x1010
D2 : 0x10 D1 : 0x1010 D0 : 0x1010
LR0 : 0x1010 LR1 : 0x1010 MR0 : 0x1010 MR1 : 0x1010
LC : 0x1010 LS : 0x1010 LE : 0x1010
I0 : 0x1010 I1 : 0x1010 I2 : 0x1010 I3 : 0x1010
I4 : 0x1010 I5 : 0x1010 I6 : 0x1010 I7 : 0x1010
P : 0x0010101010 =~ 269488144
A : 0x0010101010 =~ 269488144
B : 0x0010101010 =~ 269488144
C : 0x0010101010 =~ 269488144
D : 0x0010101010 =~ 269488144
PC : 0x00000000
Next Exec: 0x0000 LDC 0x0,A0
_audio_buffer + 0x000000


K:\KOS\PROJ\T11\SW\uniprom>uniprom hifiplayer.coff

K:\KOS\PROJ\T11\SW\uniprom>coff2boot hifiplayer.coff eeprom.img
X: 0xc002-0xc010 In: 33, out: 33
I: 0x0018-0x001f In: 33, out: 33
I: 0x0050-0x0e62 In:14413, out:14413
I: 0x0000-0x0001 In: 9, out: 9
X: 0x1800-0x180d In: 31, out: 31
Y: 0x1800-0x1807 In: 19, out: 19
X: 0x361f-0x3914 In: 1519, out: 1519
In: 16057, out: 16062

K:\KOS\PROJ\T11\SW\uniprom>vs3emu -chip vs1002b -e 0x50 -s 9600 -x 12288 -ts 384
00 -l uniprom.coff -c run.cmd -p 4
VSEMU 2.2 Nov 12 2010 16:48:42(c)1995-2010 VLSI Solution Oy
Using serial port 4, COM speed 9600
Waiting for a connection to the board...

Connection failed (timeout)
Trying to reconnect...Nothing detected
Trying with 38400
Connection failed (timeout)
Trying to reconnect...Nothing detected

K:\KOS\PROJ\T11\SW\uniprom>uniprom hifiplayer.coff

K:\KOS\PROJ\T11\SW\uniprom>coff2boot hifiplayer.coff eeprom.img
X: 0xc002-0xc010 In: 33, out: 33
I: 0x0018-0x001f In: 33, out: 33
I: 0x0050-0x0e62 In:14413, out:14413
I: 0x0000-0x0001 In: 9, out: 9
X: 0x1800-0x180d In: 31, out: 31
Y: 0x1800-0x1807 In: 19, out: 19
X: 0x361f-0x3914 In: 1519, out: 1519
In: 16057, out: 16062

K:\KOS\PROJ\T11\SW\uniprom>vs3emu -chip vs1002b -e 0x50 -s 9600 -x 12288 -ts 384
00 -l uniprom.coff -c run.cmd -p 4
VSEMU 2.2 Nov 12 2010 16:48:42(c)1995-2010 VLSI Solution Oy
Using serial port 4, COM speed 9600
Waiting for a connection to the board...

Chip version "1053"
Stack pointer 0x1920, bpTable 0x4f56
User program entry address 0x50
Speed changed to 38400
uniprom.coff: includes optional header, 23 sections, 887 symbols
Section 1: code page:0 start:80 size:2 relocs:2 fixed
Section 2: puthex page:0 start:82 size:53 relocs:5
Section 3: puthex8 page:0 start:135 size:37 relocs:3
Section 4: SpiPrivDelay page:0 start:172 size:10 relocs:1
Section 5: SpiSendClocks page:0 start:182 size:24 relocs:1
Section 6: SpiPrivSendReceive page:0 start:206 size:51 relocs:4
Section 7: SpiPrivInit page:0 start:257 size:14 relocs:0
Section 8: SpiPrivRead page:0 start:271 size:52 relocs:11
Section 9: SpiPrivStatus page:0 start:323 size:33 relocs:4
Section 10: SpiPrivWrite page:0 start:356 size:63 relocs:13
Section 11: SpiStatus page:0 start:419 size:33 relocs:4
Section 12: SpiEraseBlock page:0 start:452 size:107 relocs:24
Section 13: SpiBlockWrite page:0 start:559 size:71 relocs:13
Section 14: SpiVerify page:0 start:630 size:71 relocs:15
Section 15: BlockProgram page:0 start:701 size:58 relocs:9
Section 16: ReadSignature page:0 start:759 size:97 relocs:30
Section 17: main page:0 start:856 size:257 relocs:107
Section 18: oldmain page:0 start:1113 size:23 relocs:6
Section 19: init_x page:1 start:2048 size:19 relocs:0
Section 20: const_x page:1 start:2067 size:692 relocs:0
Section 21: bss_x page:1 start:2759 size:260 relocs:0
Section 22: VS_stdiolib page:0 start:1136 size:50 relocs:13
Section 23: VS_stdiolib$0 page:0 start:1186 size:134 relocs:37
VS1053 16/24 BIT SPI EEPROMMER / FLASHER V1.0 (PP)
Detecting connected SPI Flash or EEPROM type...
Read electronic signature (RDES (0xAB) method): 15 15
Read manufacturer and product id (RDID (0x90) method): ef 15
Sending a Flash Erase Block 0 (64KB) Command (0xD8)...
Erase took time, probably this is a Flash chip: Using 24-bit address.
Opened file eeprom.img.
Programming blocks of data... "." means OK, "X" means error.
. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB.
. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB...
Verifying...
.. 0x01 KB.. 0x02 KB.. 0x03 KB.. 0x04 KB.. 0x05 KB.. 0x06 KB.. 0x07 KB.. 0x08 KB
.. 0x09 KB.. 0x0a KB.. 0x0b KB.. 0x0c KB.. 0x0d KB.. 0x0e KB.. 0x0f KB..
Verify OK.
Finished!
Done. Resetting chip.
A2 : 0x10 A1 : 0x1010 A0 : 0x1010
B2 : 0x10 B1 : 0x1010 B0 : 0x1010
C2 : 0x10 C1 : 0x1010 C0 : 0x1010
D2 : 0x10 D1 : 0x1010 D0 : 0x1010
LR0 : 0x1010 LR1 : 0x1010 MR0 : 0x1010 MR1 : 0x1010
LC : 0x1010 LS : 0x1010 LE : 0x1010
I0 : 0x1010 I1 : 0x1010 I2 : 0x1010 I3 : 0x1010
I4 : 0x1010 I5 : 0x1010 I6 : 0x1010 I7 : 0x1010
P : 0x0010101010 =~ 269488144
A : 0x0010101010 =~ 269488144
B : 0x0010101010 =~ 269488144
C : 0x0010101010 =~ 269488144
D : 0x0010101010 =~ 269488144
PC : 0x00000000
Next Exec: 0x0000 LDC 0x0,A0
_audio_buffer + 0x000000


K:\KOS\PROJ\T11\SW\uniprom>

User avatar
pasi
VLSI Staff
Posts: 1474
Joined: Thu 2010-07-15 16:04

Re: Hifiplayer: can download, but no start

Post by pasi » Sun 2011-10-16 19:54

Mick42 wrote: K:\KOS\PROJ\T11\SW\uniprom>coff2boot hifiplayer.coff eeprom.img
X: 0xc002-0xc010 In: 33, out: 33
I: 0x0018-0x001f In: 33, out: 33
I: 0x0050-0x0e62 In:14413, out:14413
I: 0x0000-0x0001 In: 9, out: 9
X: 0x1800-0x180d In: 31, out: 31
Y: 0x1800-0x1807 In: 19, out: 19
X: 0x361f-0x3914 In: 1519, out: 1519
In: 16057, out: 16062
You need -x 0x50 to set the execute address for the boot image. Also check that the resulting image starts with "P&H". (It has "VLSI" for VS1000.)

I need to refer the crashing problem to Lasse.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Mick42
User
Posts: 17
Joined: Fri 2011-10-14 22:45

Re: Hifiplayer: can download, but no start

Post by Mick42 » Sun 2011-10-16 20:30

Thanks, the downlaod works now.

One hint about the crashing VSIDE:
If I do download using uniprom in DOS Box beforehand,
I can also download image in VSIDE afterwards.
If omit this step, VSIDE still crashes.
Tried to debug this way, but it simply wont step inside,
and it says cannot set breakpoints when I try to set break point and run to some source line.

What is this ??

Really thanks for your hints, very much appreciated !

User avatar
Panu
VLSI Staff
Posts: 2523
Joined: Tue 2010-06-22 13:43

Re: Hifiplayer: can download, but no start

Post by Panu » Thu 2011-10-20 10:40

Hi!

I'm not sure if I understood correctly, but much of the emulator crashes can be avoided if you always reset the board before connecting. Also make sure that the SD card is removed when you reset. Also you should disconnect "Stop" before you reset the board, otherwise the RS-232 can receive some extra character when you reset the board, which will confuse the emulator's state machine and the emulator gets stuck.

Also note that if you use the USB cable, then it may feed power to the RX pin, in which case the reset is not 100% successful, you need to remove the RX pin wire also...

Sometimes it helps (with breakpoints, simulator etc) if the solution is stored in a folder which has no spaces in the file name (like "c:\vside\solutions\myhifiplayer" instead of something like "c:\documents and settings\..."). We're still trying to hunt down what might go wrong with the spaces, seems it's something in the Qt libraries...

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Mick42
User
Posts: 17
Joined: Fri 2011-10-14 22:45

Re: Hifiplayer: can download, but no start

Post by Mick42 » Mon 2011-11-21 11:46

Dear Panu,

many thanks for the lots of hints.
I am trying this now:
1. Generate new solution based an VS1053 Solution ( no idea what "with overlays" means, so not selected),
template is HifiPlayer V1.0, Build is ok (one warning type cast into shorter type display.c/352)
2. I have a uniprom directory, copy newly built hifiplayer.coff there,
then run batch :
coff2boot hifiplayer.coff eeprom.img
vs3emu -chip vs1002b -e 0x50 -s 9600 -x 12288 -ts 38400 -l uniprom.coff -c run.cmd -p 4
Seems to work, no error messages,
so I assume firmware is downloaded

Now when I try to start hifiplayer, nothing happens.
excpet I hear small click in earphones when pushing on/off button.

Did I miss something ?

User avatar
Panu
VLSI Staff
Posts: 2523
Joined: Tue 2010-06-22 13:43

Re: Hifiplayer: can download, but no start

Post by Panu » Mon 2011-11-21 12:24

Did I miss something ?
I think so... you missed the execute address specification -x 0x50 from the coff2boot line.

Can you check if that helps?

Also, if the boot prevention jumper (for writing the firmware) is in place, the software in the SPI flash doesn't boot.

PS. Were you able to run your custom hifiplayer code directly (without promming) in the target board using the "Play" button of VSIDE?

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Mick42
User
Posts: 17
Joined: Fri 2011-10-14 22:45

Re: Hifiplayer: can download, but no start

Post by Mick42 » Mon 2011-11-21 14:45

Hi Panu,

thanks a lot,
now the download works, when I remove jumper, I can start the player again by on key.

I also can run with the RUN button in VSIDE (jumper still installed).

But I cannot debug the application, it says:

Loading system 'C:/Program Files (x86)/VSIDE/plugins/emulator.system'...
Loading 'Emulation-Debug/HiFiPlayer.coff'...
Ok

But no stepping into or setting breakpoints, no way to start debug..

can you give a hint here ?

User avatar
Panu
VLSI Staff
Posts: 2523
Joined: Tue 2010-06-22 13:43

Re: Hifiplayer: can download, but no start

Post by Panu » Mon 2011-11-21 17:45

Hi!

Great that it's working, at least sort of. There seems to still be quite a few problems with UART debugging. Usually the [Clock] icon works, which advances the execution by single clock cycle. Setting breakpoints sometimes seems to work, usually not. Sometimes it seems to help that the project folder is in a folder whose name does not have any spaces (I install VSIDE into C:\VSIDE and have my projects in C:\PANU\SOLUTIONS folder. It sounds ridiculous, I know, and yes, our software guru Lasse is working on the problem. It seems that something has changed in the Qt libraries upon which the user interface is built.

I usually resort to normal debugging, using puts("") to print to the console. And it's useful that you can use fopen to open an output file in a PC and have the software output some debugging info there.

Happy coding...!
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Mick42
User
Posts: 17
Joined: Fri 2011-10-14 22:45

Re: Hifiplayer: can download, but no start

Post by Mick42 » Fri 2011-11-25 12:57

Hi Panu,

there is a simple debug problem with HifiPlayer board:
It does not have power when you you start to debug !
When I keep pushing the power button and say "Run" in CSIDE,
it works.
But still the only way is to "RUN", no breakpoints, no stepping, no F8, no F4 (run to cursor)
so alos no way to debug and check Console outputs for "dumb debugging".
Maybe you have one more hint for me what can be done to enable stepping, run to cursor anda ll ?

many thanks !
Michael

User avatar
Panu
VLSI Staff
Posts: 2523
Joined: Tue 2010-06-22 13:43

Re: Hifiplayer: can download, but no start

Post by Panu » Fri 2011-11-25 18:15

Hi!
It does not have power when you you start to debug !
When I keep pushing the power button and say "Run" in CSIDE,
it works.
Hmmh, do you have the programming jumper set? It's next to the SPI flash IC.

To run software in the HiFi player, you must
- Remove battery
- Remove the RX lead (green)
- Reinsert the RX lead (green)
- Remove SD card
- Insert the programming jumper
- Press power (new boards have power led, most don't have so it's difficult to verify that the chip has power, but you can measure it from the uart "+" pin)
- Load the software (press the "play" button in VSIDE).


To load the code again, you must
- Press power long time to shut down the program
- Press power again to start in programming mode with the programming jumper attached.

If the code has crashed, you must do a cold reset:
- Follow all steps in the first list.
Maybe you have one more hint for me what can be done to enable stepping, run to cursor anda ll ?
The latest version of VSIDE (2.10b3, not yet released) seems to fix this issue, we will release it soon..

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply