RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Jun 25, 2019 4:13 am

All times are UTC




Post new topic Reply to topic  [ 20 posts ] 
Author Message
PostPosted: Thu Oct 15, 2015 6:39 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
http://virtuallyfun.superglobalmegacorp.com/2015/10/14/litebsd/

Here you can find instructions on how to run PIC32MZ QEMU simulator on Windows.

Image

Download link: qemu-2.3.5_win32_MIPS_LiteBSD.7z


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:08 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
libgcc_s_sjlj-1.dll is missing (win7 64b).

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:26 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
This should help, I guess:
http://qemu.weilnetz.de/w32/dll/libgcc_s_sjlj-1.dll


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:33 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Now the libssp-0.dll is missing.. So you need to download it as well
Code:
spi4 at pins sdi=F5/sdo=G0/sck=D10
uart1 at pins rx=F1/tx=D15, interrupts 112/113/114
uart4 at pins rx=F2/tx=F8, interrupts 170/171/172, console
sd0 at port spi3, pin cs=C3
sd0: type I, size 339968 kbytes, speed 12 Mbit/sec
sd0a: partition type b7, sector 2, size 204800 kbytes
sd0b: partition type b8, sector 409602, size 32768 kbytes
sd0c: partition type b7, sector 475138, size 102400 kbytes
bpf: sl0 attached
bpf: lo0 attached
WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE!

starting file system checks.
/dev/rsd0a: file system is clean; not checking
starting network
clearing /tmp
standard daemons: update.
Wed Dec 10 21:06:40 PST 2014


4.4BSD-Lite (bsd.net) (tty4)

login:

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:35 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
You can find it here as well: http://qemu.weilnetz.de/w32/dll/


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:38 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
A pity I cannot get litebsd flashed into SDZL anymore.. (a change in the bootloader?).
Serge - can you post a bootloader for SDZL which work with you, plz?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 6:45 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I just reflashed my SDZL board.
This bootloader works for me: https://raw.githubusercontent.com/UECIDE/pic32/master/boards/Majenko%20Technologies/sdzl/bootloader.hex.

NOTE: It's a serial bootloader (not USB). You have to use a USB-to-TTL module, as mentioned on this page: https://github.com/sergev/LiteBSD/wiki/Majenko%20SDZL%20board.

Image


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:15 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Yes, I am using the usb/ttl dongles. I've tried 2 dongles (prolific and ft232r) with No target find. I see the data on Tx asking pic32mz to respond, but no response. I flashed the bootlader, I see the blue led blinking, and run
Code:
C:\Users\pito>C:\Users\pito\Desktop\pic32prog.exe -d com17 C:\Users\pito\Desktop
\vmunix.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.183
    Copyright: (C) 2011-2015 Serge Vakulenko

No target found.

C:\Users\pito>

I am using SDZL's pins 8/rx and 9/tx and gnd.
I did it many times in past and it worked, so I am quite confused now..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:23 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hmm... I have no idea. May be something is wrong in hardware. Can you please add a couple of -D options for pic32prog, like "-D -D"? It will print all serial protocol transfers.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:24 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
C:\Users\pito>C:\Users\pito\Desktop\retrobsd-fubarino-2015-09-29\pic32prog.exe -
D -D -D -D -d com17 C:\Users\pito\Desktop\vmunix.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.174
    Copyright: (C) 2011-2015 Serge Vakulenko
send [7] 1b-1-0-1-e-1-14
serial_read: no characters to read
stk-probe: retry 1: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c
send [7] 1b-2-0-1-e-1-17
serial_read: no characters to read
stk-probe: retry 2: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c
send [7] 1b-3-0-1-e-1-16
serial_read: no characters to read
stk-probe: retry 3: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c
send [7] 1b-4-0-1-e-1-11
serial_read: no characters to read
stk-probe: retry 1: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c
send [7] 1b-5-0-1-e-1-10
serial_read: no characters to read
stk-probe: retry 2: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c
send [7] 1b-6-0-1-e-1-13
serial_read: no characters to read
stk-probe: retry 3: cd-02-b5-8d-fe-ff-ff-ff-f9-ad-5c

No target found.

C:\Users\pito>

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:27 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
So the bootloader does not respond. Is the ft232r dongle connected properly?


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:35 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I do not see any hw connection issue. The sdzl is powered from 5V via usb connector, voltage regulators and the chip are hot, so it runs, no sdcard inserted. Led on ft323r (green) blibs when tx sends. I tried with 2 dongles, replaced rx/tx. Loopback works. Grrh..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 7:54 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I have no idea how to help...
Do we have the same board?
I mean, the generator frequency may be different or something.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 8:01 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
To which pins is connected your tx/rx - it seems yours are different..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 8:06 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
I've posted a link above: https://github.com/sergev/LiteBSD/wiki/Majenko%20SDZL%20board
On this page you can find a connection table.
Code:
Dongle SDZL PIC32 Description
-----------------------------
RXD    A8   RB6   U2TX
TXD    A9   RB7   U2RX


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 8:09 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
:evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted:
Code:
C:\Users\pito>C:\Users\pito\Desktop\pic32prog.exe -d com17 C:\Users\pito\Desktop
\vmunix.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.183
    Copyright: (C) 2011-2015 Serge Vakulenko
      Adapter: STK500v2 Bootloader
 Program area: 1d000000-1d1fffff
    Processor: Bootloader
 Flash memory: 2048 kbytes
  Boot memory: 80 kbytes
         Data: 515384 bytes
        Erase: done
Program flash: ################################################################
done
 Verify flash: ############################################################### d
one
 Program rate: 3587 bytes per second

C:\Users\pito>

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 8:12 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Perfect!
It makes two of us with SDZL boards running LiteBSD. :)


Top
 Profile  
 
PostPosted: Thu Oct 15, 2015 9:49 pm 

Joined: Wed Oct 14, 2015 10:03 am
Posts: 2
Pito wrote:
libgcc_s_sjlj-1.dll is missing (win7 64b).


Ugh sorry I forgot I need to make libgcc static with this cross MinGW! !


Top
 Profile  
 
PostPosted: Fri Oct 16, 2015 3:19 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
neozeed wrote:
Ugh sorry I forgot I need to make libgcc static with this cross MinGW! !

It also makes sense to add libssp-0.dll to the package.


Top
 Profile  
 
PostPosted: Tue Dec 29, 2015 3:14 am 
User avatar

Joined: Fri Mar 06, 2015 9:13 pm
Posts: 37
Location: Barcelona, SP
I try the latest bootloader from https://github.com/chipKIT32/PIC32-avrdude-bootloader

I used to test the majenko SDZL build and it got this result

Code:
mbp:Whitecat.pic32 mferrera$ pic32prog -S -D -D -d /dev/tty.usbserial-A403IQOT vmunix.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.180
    Copyright: (C) 2011-2015 Serge Vakulenko
send [7] 1b-1-0-1-e-1-14
 got [17] 1b-1-0-b-e-1-0-8-53-54-4b-35-30-30-5f-32-2
stk-probe: OK
send [18] 1b-2-0-c-e-10-c8-64-19-20-0-53-3-ac-53-0-0-31
 got [8] 1b-2-0-2-e-10-0-5
      Adapter: STK500v2 Bootloader
 Program area: 1d000000-1d1fffff
Set parameter 44
send [9] 1b-3-0-3-e-2-44-b-58
 got [8] 1b-3-0-2-e-2-0-16
Set parameter 45
send [9] 1b-4-0-3-e-2-45-b0-e5
 got [8] 1b-4-0-2-e-2-0-11
Set parameter 46
send [9] 1b-5-0-3-e-2-46-af-f8
 got [8] 1b-5-0-2-e-2-0-10
Set parameter 47
send [9] 1b-6-0-3-e-2-47-de-8b
 got [8] 1b-6-0-2-e-2-0-13
Get parameter 44
send [8] 1b-7-0-2-e-3-44-57
 got [9] 1b-7-0-3-e-3-0-b-19
Value b
Get parameter 45
send [8] 1b-8-0-2-e-3-45-59
 got [9] 1b-8-0-3-e-3-0-b0-ad
Value b0
Get parameter 46
send [8] 1b-9-0-2-e-3-46-5b
 got [9] 1b-9-0-3-e-3-0-af-b3
Value af
Get parameter 47
send [8] 1b-a-0-2-e-3-47-59
 got [9] 1b-a-0-3-e-3-0-de-c1
Value de
    Processor: Bootloader
 Flash memory: 2048 kbytes
  Boot memory: 80 kbytes
         Data: 510704 bytes
        Erase: send [13] 1b-b-0-7-e-12-96-0-ac-80-0-0-b1
 got [8] 1b-b-0-2-e-12-0-e
send [18] 1b-c-0-c-e-10-c8-64-19-20-0-53-3-ac-53-0-0-3f
 got [8] 1b-c-0-2-e-10-0-b
done
Program flash: Adjusting address 0x1d000000 to 0x00000000....................
Load address: 0
send [11] 1b-d-0-5-e-6-0-0-0-0-1b
 got [8] 1b-d-0-2-e-6-0-1c
Programming page: 0x1d000000
send [272] 1b-e-1-a-e-13-1-0-0-0-0-0-0-0-0-0-60-1a-40-10-0-5a-33-12-0-40-13-0-0-0-0-0-40-1a-40-82-d5-1a-0-80-d0-1a-0-48-c1-1b-8c-21-d8-7a-3-0-0-7b-8f-ba-0-60-13-0-40-1a-40-82-d2-1a-0-f8-f-5a-33-21-d8-7a-3-0-0-7a-8f-4-0-7b-8f-0-10-9a-40-0-18-9b-40-6-0-0-42-18-0-0-42-0-40-1a-40-0-c0-1b-3c-23-d0-5b-3-2-d3-1a-0-0-a0-1b-3c-48-3d-7b-8f-2b-d8-5b-3-23-0-60-13-1-0-5b-33-c-0-60-17-80-d0-1a-0-0-a0-1b-3c-30-3d-7b-8f-21-d8-7a-3-0-0-7a-8f-4-0-7b-8f-0-10-9a-40-2-0-5a-33-5e-0-40-13-0-18-9b-40-6-0-0-42-18-0-0-42-0-a0-1b-3c-30-3d-7b-8f-21-d8-7a-3-fc-ff-7a-8f-0-0-7b-8f-0-18-9b-40-2-0-7b-33-53-0-60-13-0-10-9a-40-6-0-0-42-18-0-0-42-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-9d-ff-ff-ff-ff-4c
serial_read: no characters to read
Program flash failed.
serial_read: no characters to read
send [9] 1b-f-0-3-e-11-1-1-8
serial_read: no characters to read
mbp:Whitecat.pic32 mferrera$


maybe something changes on the github code.... :?: :?:
because with the hex file link provided by Vak https://raw.githubusercontent.com/UECIDE/pic32/master/boards/Majenko%20Technologies/sdzl/bootloader.hex it works nice I like to add our board and change uart2 to uart1, etc....

AT MOMENT SOLVED !! compiled with XC32 1.34 instead of XC32 1.40 maybe FPU / Plibs issues.

_________________
Dennis MacAlistair Ritchie (Sep.09.1941 - Oct.12.2011)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission