Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

Help, MCU script isn't running

idata
Community Manager
989 Views

I am trying to implement the "Waking up the Host CPU Using the MCU" example here https://software.intel.com/en-us/node/557354 Using the MCU SDK and API: Code examples | Intel® Software

I've managed to download the script onto the board, but when I enter the commands "cat /proc/interrupts | grep intel_psh_ipc" And "cat ttymcu0", I get "47: 27 0 IO-APIC-fasteoi intel_psh_ip" AND "cat: ttymcu0: No such file or directory", which looks like the script isnt running because I'm not getting interupts.

My best guess is that I need to load the script to mcu_fw_loader.sh, but after download is successful using the MCU SDK, I can't find any file matching what I named the project or any variant there of anywhere on the edison.

The contents of my script are

# include "mcu_api.h"

# include "mcu_errno.h"

void mcu_main()

{

/* your configuration code starts here */

while (1) /* your loop code starts here */

{

mcu_sleep(30000); /* wake up CPU every 5 minutes */

host_send((unsigned char*)"wake up!\n", 10);

}

}

The contents of my loader file look like this:

# !/bin/sh

# author: JiuJin Hong (mailto:jiujinx.hong@intel.com jiujinx.hong@intel.com)

if [ ! -d "/sys/devices/platform/intel_mcu" ];then

exit

fi

if [ ! -f "/lib/firmware/intel_mcu.bin" ];then

exit

fi

echo "on" > /sys/devices/pci0000\:00/0000\:00\:17.0/power/control

echo "load mcu app" > /sys/devices/platform/intel_mcu/control

0 Kudos
1 Solution
idata
Community Manager
129 Views

I figured it out, "cat ttymcu0" in the example should be cat /dev/ttymcu0

View solution in original post

1 Reply
idata
Community Manager
130 Views

I figured it out, "cat ttymcu0" in the example should be cat /dev/ttymcu0

Reply