Dear Colleagues,
I am setting up a testbed with a Raspberry Pi (RPi) and a Windows PC host. . Due to company policies I have had to set up the testbed as follows:
- Assigned static private IP addresses to the Windows PC host and RPi.
- The RPi and Windows PC host are connected with cables to an unmanaged switch.
- The wifi and bluetooth radios on the RPi are disabled.
- The RPi runs the uncomplicated fiirewall (ufw) with a rule that allows connections from the Windows PC host on any ports
- Password-less SSH connections are allowed from the Windows PC host to the RPi.
- Password authentication is disabled on RPi, i.e., PasswordAuthentication no in the /etc/ssh/sshd_config file
When I try to build the executable (elf) with ert.tlc for the RPi target I encounter the follwing error
Top model targets built: Model Action Rebuild Reason ==============================================================================
MMM Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date) Build duration: 0h 0m 15.784s
Error connecting to SSH server at xxx.yyy.zzz.www
Component:Simulink | Category:Block diagram error
In the above xxx.yyy.zzz.www is the IP address of the RPi. I am able to SSH from the Windows PC host command window to the RPi without a problem.
I am writing to ask
- If anyone has encountered the connection error with a password-less ssh set up and found a workaround.
- Is there a way to compile and link the executable from the command window, from either MS Windows or WSL? I have looked at the files in the MMM_rtw folder and there's an unholy mix of "regular" source and makefiles and .m and .mat files that I haven't been able to unwrap. However, I have noticed that the only place where the offending IP address shows up in cleartext is MW_target_hardware_resources.h
Thank you!
B