IMC301A Running "Debug" on UART0 and "User" on UART1 at the same time

Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Joni
Level 1
Level 1
First reply posted First question asked Welcome!

I cannot seem to get get both the UART0 running in "Debug" mode and UART1 running in "User" mode at the same time.  I am using the following settings in MCEWizard 2.3.0.0:

UART Node Address = 1

User UART Function Definition = UART1

UART Baud Rate = tried both 57600 and 115200

UART Tx Delay = 0

Communications between MCU and MCE cores = Disable

I'm connecting an isolated USB->UART adaptor to pins 1,3,4 on J9!

Does this sound correct?

Thanks

Jonathan

0 Likes
2 Replies
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

Hi @Joni,

Please configure interfaceconf0 = 23 ( UART 1 Used as user UART) and interfaceconf1 = 0 ( Disable JCOM) in parameters.txt file

For more details refer to section 3.1.2 InterfaceConf0: iMOTION – MCE – Software Reference Manual v1.3 

Can you please share the following:

  • USB-UART adapter( Part No)  and its logic level
  • Commands sent to iMotion device
  • MCE Wizard Configuration file( .mc2)

Please refer to this How to use IMC301's User UART to communicate with STM32F103?  for more details.

Please let us know if any further clarification is needed.

 

Thanks,

Krupashankar

0 Likes
lock attach
Attachments are accessible only for community members.

Thanks Krupashankar

It looks like MCEWizard is generating the correct register values, here's the relevant bit:

InterfaceConf0		23
InterfaceConf1		0
UART0_Baudrate		0
UART0_IdleCount		10000
UART0_LinkBreakCount		10000
UART1_Baudrate		9609
UART1_IdleCount		10000
UART1_LinkBreakCount		10000

Full file attached!

My commands are good as I tested them on UART0 and they work fine, eg motor speed 500rpm:

0x01 0x03 0x00 0x00 0x88 0x13 0x77 0xE9

I'm using a ftdi ttl-232r-5v as the board is at 5V (taken from EVAL-M1-IM535), this works fine too, confirmed by scope in serial analysis mode!

mc2 file also attached.

Thanks

Jonathan

0 Likes