RetroBSD

2.11BSD operating system for microcontrollers
It is currently Mon Dec 17, 2018 4:20 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: MAX32 board
PostPosted: Wed Jan 20, 2016 9:23 pm 

Joined: Wed Jan 20, 2016 9:07 pm
Posts: 4
Hello,
I uploaded the unix.hex into MAX32 board with pickit3. At the moment the SD isn't connected, but I think I should get some kernel message on the console. I'm using the onboard USB connector to power the board and it is appear as USB serial what I opened in terminal at 115200bd. After reset I haven't received anything on the console. What i'm doing wrong?


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Wed Jan 20, 2016 9:31 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Quote:
I uploaded the unix.hex into MAX32 board with pickit3

Well that's your first mistake right there. Unless you're using a special bare-bones unix.hex you have just wiped out the bootloader, and hence all the startup code and config settings for the board. Nothing will work now.

You need to install the bootloader (downloadable from Digilent's website) and reinstall it using your PICkit3. Then you need to upload the unix.hex file using pic32prog.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Thu Jan 21, 2016 9:27 pm 

Joined: Wed Jan 20, 2016 9:07 pm
Posts: 4
Thanks for your help. Finally i'm managed to upload the unix.hex with avrdude. The pic32prog didn't work for me.


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Fri Jan 22, 2016 7:20 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
What's the issue with pic32prog?

I know under Windows it sometimes fails with message like "hidboot: error -1 receiving packet". I cannot reproduce this bug, so I don't know what's the problem here. Probably some USB incompatibility between different versions of Windows.


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Fri Jan 22, 2016 7:39 am 

Joined: Wed Jan 20, 2016 9:07 pm
Posts: 4
The pic32prog want me to upgrade the PICkit3 firmware. MplabX has already upgraded it, so i don't know what version could be OK. I haven't tried with Windows, i use Ubuntu 14.04 (64bit).


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Fri Jan 22, 2016 8:14 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Oh yea, pic32prog does not support the native pickit3 protocol...
But you don't need pickit3 to upload unix.hex to the Max32 board.
Just connect it with plain mini-USB cable.
Use -d option to provide a name of Max32 serial device, like:
Code:
pic32prog -d /dev/ttyUSB0 unix.hex


Top
 Profile  
 
 Post subject: Re: MAX32 board
PostPosted: Fri Jan 22, 2016 10:27 am 

Joined: Wed Jan 20, 2016 9:07 pm
Posts: 4
Ahh, i looked for solution in pic32prog.txt, but it is mentioned in readme.txt :oops:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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