sdphost, blhost on Mac does not work.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sdphost, blhost on Mac does not work.

967 Views
caleb
Contributor III

Hello,

    I'm having a problem that *some* macs, with identical hardware and seemingly identical software, don't run sdphost the same.

On a mac mini (A1933), running Big Sur, sdphost works fine.  I've done a USB trace, the MIMXRT1051 enumerates fine, sdphost runs fine, blhost runs fine. Everything okay.  We'll call this 'machine A'.  I've done a USB sniffer trace, and everything is okay, device enumerates, and sdphost sends and receives 3 packets when running

sdphost -t 50000 -u 0x1FC9,0x0130 -j -- error-status

 

On a seemingly *identical* machine, we'll call 'machine B', the 1050 also enumerates fine, no issues at all during enumeration.  But when I run the same command, from the same USB stick (moved the 1050 and USB stick to the other computer), sdphost sends no USB packets and fails silently.  

I'm attempting to find the reason for the difference, but the source & build environment for sdphost doesn't seem to exist anywhere useful, so I can't build and single step through the code.

I have found:

Inside the 1050/1060 SDKs, there is a tools directory ./middleware/mcu-boot/tools/tools/sdphost/sdphost that includes some semblance of sdphost.  However, it requires a ton of files that don't exist in the SDK, and also doesn't include an xCode project for compiling on the Mac.  

Since sdphost is the first step in communicating with the 1060, I need that to work before I can work with blhost.  (right?  or am I missing something?)

 

My questions are:

  1. Has anyone seen this before on the Mac?
  2. How do I compile sdphost from source code, either on the Mac, Windows, or Linux for that matter?  The readme says it can be compiled on all 3, but only a visual studio project is included.

Thanks,

 -Caleb

 

0 Kudos
3 Replies

501 Views
faiz-lisp
Contributor I

I tried blhost 2.6.7 on macOS 13 (Ventura), but write-memory didn't work!

I wrote 4K, but 1~4K data is wrong!

---

./blhost -u -- flash-erase-region 0x60010000 0x1000

./blhost -u -- write-memory 0x60010000 test-4K.bin,0x1000

./blhost -u -- read-memory 0x60010000 0x1000 test-4K.dat

./blhost -u -- read-memory 0x600103F0 0x10

./blhost -u -- read-memory 0x60010FF0 0x10

0 Kudos

920 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi caleb:

sdphost can work on my MAC.

Not sure the problem, there is a possibility that on your ' machine B', there is another USB device whose PID/VID is the same as the target board's.  

Regards

Daniel

0 Kudos

914 Views
caleb
Contributor III

Thanks for the idea, but all other usb was unplugged

0 Kudos