DK-42688-P, a beginner guidance

By domenpuntargmailcom , 3 December 2023

I am a student of game design, trying to involve motion sensors into something unique. After buying a DK-42688-P, I see It's been quite some time since my electronics high school years. So I am new to the development board and do not quite get the instructions of the ICM42688P_Software_Guide.

All I am asking you to help me is this:
1. what is the easiest way to program a example of the accelerometer & gyroscope? Can I do this with only using SmartMotion platform, or I have to use Atmel Studio?
2. When I succeed, how to see that in Visualizer?

Thank You for your time

mustafayildiri…

2 years 3 months ago

Hi,

MotionLink is a GUI platform so there is no programming available. You can just connect your board and run MotionLink to see accelerometer & gyroscope data and their visualization. If you want to program your own firmware, you can develop a project with Atmel Studio. Our eMD firmware and user guide will give you an insight on how we programmed the board for different examples. You can always ask help here from us and other community members.

phpbb Post ID
45385

domenpuntargmailcom

2 years 3 months ago

Hi,

I don't think this is true. Not in my case. I just bought brand new DK 42688-P.

When I open MotionLink, DK is detected. But when I click connect it says: "please disconnect and flash the MCU firmware".

When I open example-algo Vizualiser, I set the com to my device, I click connect and get: "Error while opening com port Io exception: uknown error opening the serial port: file c:\w\245\pkg\sources\serial\src\impl\win.cc, line 67

phpbb Post ID
45392

domenpuntargmailcom

2 years 3 months ago

Now I managed to get it connected (Vizualiser), however, nothing is happening on the grahpics/data.

phpbb Post ID
45393

mustafayildiri…

2 years 3 months ago

Hi,

“Please disconnect and flash the MCU firmware” means you need you use the flash MCU operation of the MotionLink which is essentially a button, yet you need to have the correct connections to the board. See the attachment for the User Manual of MotionLink which will provide insight on how to get your board up and running.

phpbb Post ID
45401

domenpuntargmailcom

2 years 3 months ago

I did this. I set a configuration as it is in the attached print screen. I connected both EDGB and UART usb port. I left jumpers as they are by default. Still nothing! Do I also have to flash eMD?

phpbb Post ID
45404

domenpuntargmailcom

2 years 3 months ago

I not turned it on the power button, and guess what: "object reference not set to an instance of an object"

phpbb Post ID
45406

domenpuntargmailcom

2 years 3 months ago

*I NOW turned it on the power button*

phpbb Post ID
45408

mustafayildiri…

2 years 3 months ago

Yes, you do need to flash eMD, After the flash is done, you see a pop-up screen saying, "power cycle the board." Then, power down the board and power it back up.

phpbb Post ID
45429

zipingconggmailcom

2 years 3 months ago

I couldn't turned it on the power button, it shows that: “object reference not set to an instance of an object”. What should I do next?

phpbb Post ID
45445

zipingconggmailcom

2 years 3 months ago

Hi, I couldn't turned it on the power button, it shows that: “object reference not set to an instance of an object”. What should I do next?

phpbb Post ID
45446

domenpuntargmailcom

2 years 3 months ago

Are you also using Windows 11? As you can se under the post by SandGroper: "DK42688P development kit not working on win11", you are not the only one having this problem. It looks to me like DK-42688-P is already passe in so called "rapid development". Rapid my a*s. And proper customer support is nowhere to be found.

@MOD_Mustafa

What's new?

phpbb Post ID
45447

zipingconggmailcom

2 years 3 months ago

I used Win10 and Win11, both bring me the same: “object reference not set to an instance of an object”

phpbb Post ID
45448

zipingconggmailcom

2 years 3 months ago

@MOD_Mustafa, could you please check this problem?

phpbb Post ID
45449

kazirahmantuhhde

2 years 2 months ago

Same problem: “object reference not set to an instance of an object” Win11
I also tried prebuild examples, it's throwing me error: Failed to initialize ICM426XX, Error Code:-12 .. ""

phpbb Post ID
45476

domenpuntargmailcom

2 years 1 month ago

@kazirahmantuhhde and @zipingconggmailcom what I did, I returned that junk DK back to the seller. We have to accept it's a junk, and because of what it is, customer support ignore us. So go with some alternative. I bought esp32 and a new evaluation board with IMU.

phpbb Post ID
45494
phpbb Topic ID
45380