[BUG - Solution] MIAC V1 software to MIAC V2, CAN Bus bug

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

[BUG - Solution] MIAC V1 software to MIAC V2, CAN Bus bug

Post by EtsDriver »

Original title: What is difference between MIACv1 and MIACv2?

When i make software that uses CAN bus, and i select "MIAC" as target, my code CAN bus works fine etc. But when i got my code too big for "V1" and i try to use "MIAC V2" as target with same code, seems like the clock speed is slower on V2 and the CAN bus is not working (The D output goes high without any reason?).

Do i have to change the pins of CAN bus component or something?

I checked inside my Miac and it has 18F4550 onboard. PCB says it is MIAC V2 CTRL V0.1

EDIT: Found some problem:

The V1 has defaulted the Chip Select pin to Port D7 (and this option is not even shown), but on V2 target you cannot select the D7 as pin. How i could fix this issue? Im using the newest 6.1.2 Flowcode.
Last edited by EtsDriver on Wed May 13, 2015 3:43 pm, edited 1 time in total.
Ill just keep the good work up!

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: [BUG] MIAC V1 software to MIAC V2, CAN Bus bug

Post by LeighM »

Hi

Thanks for the bug find.
As you reported, the CAN component was not correctly setting the CS pin for the V2 18F4550 based MIAC.
Please try the attached fixed version.
Place it in your Flowcode 6 components directory.

Leigh
Attachments
CAN.fcpx
(22.5 KiB) Downloaded 434 times

Post Reply