Hi Daniel,
Daniel,i opened the MCToolbox\rappid564xl\Examples\adc_pit_block.mdl Simulink model,and click the Build model Button of simulink,as shown :
but there is an Error popup as shown below:
About the question i did as follow,but can not solve it,
I made the J18 of the board in the short circuit state,shown as below:
and configure the RAppID BL Tool as below:
As discribtion above,and i can not solve it!
Help me!
Hi Eden,
As your questions:
Firstly, asume you are using UART(serial boot via SCI), you should make sure your on-board boot settings as FAB=1, and ABS0 = 0; ABS2 = 0 to make the MCU enter corresponding BAM mode; so you should leave J17 open and close both J18 and J19, at the same time, add a pull up(recommend 10K resistor ) circuit to FAB pad to drive the pin high for its reset default configuration is internal pull-down and no pull-up circuit on the board you are using.
Secondly, the RAppID bootloader communication with the board(target MPC5643L MCU) via SCI or CAN is independly with FreeMaster settings in your Matlab simulink project. so in oder to make the RAppID(BAM) bootloader work, you should ensure the SCI(UART) or CAN's communication with your host PC is OK, and the ralated USB to UART(you can download and install the EVB board driver via the website link:http://www.nxp.com/downloads/en/device-drivers/MTRCK_56xx_USB_UART_drivers.zip ) or USB CAN tools driver is well installed and the communication is OK.
Best Regards,
Enwei Hu(胡恩伟).
Thank you enwei for your valuable feedback.
Myself and cuongbui were kind of stuck into this.
Do you know if there any other way to check that the BAM is in the Serial Boot over SCI apart of going into debug with JTAG and check the SSCM_STATUS[BMODE] . Something like a blinking LED or some pin to show that state.
Thank you!
Daniel
Hi edenli,
Unfortunately, i do not have such setup in my inventory - i have a different one with the same processor.
I think your issue is related with the board setup.
In order to program the board via the serial protocol, the board needs to be have the BAM (boot assist module) active.
According with the MCP5643L Reference Manual - chapter 9.4.2 Boot Through BAM, the BAM is executed only on one or both of the following cases:
• serial boot mode has been selected by FABM pin;
• hardware hasn’t found a valid Boot ID in any flash memory boot locations
According with the board manual there are 3 Jumpers that controls this:
I would try only with J17 closed and the other 2 jumpers open.
Hope this helps!
Daniel
Hi Daniel,
I'm sorry to tell you that I try only with J17 closed and the other 2 jumpers open but i still do not down load the program!
I read the file named that RAppidBL_UserManual,shown that as below:
fig 3
and the board circuit shown that :
fig 4
and so i short the j18,but i found a phenomenon that i test the pin 1 of J18,pin 1 of j19 and pin 1 of J17 using the multimeter and the result shown that is zero. is not the high 1.i don't konw that is right or not?
Now i can not down load the program to the board!!!!
My simulink model configured as below:
fig 5
There is another doubt that as figure 6 shown below:
the LIN0_TXD and LIN0_RXD is Lin,Whether we should configure Freemaster to Lin rather than to Serial 0?
fig 6
Daniel,i can not solve it now!
Hi edenli,
Sorry - now is see that the pins are connected to the ground. So what i was trying to suggest earlier was to keep only J17 open (processor pin 1) while the other two shall be connected/zero ( to ground).
When you say you measured with the voltmeter and all shows 0 - even without pulling them to the ground - are you sure the processor is power on ?
Have you managed so far to run the demo using the NXP reference application ?
I'm trying to find someone that have experience with setting up these boards in the meanwhile.
Best regards,
Daniel
Hi edenli
Not yet. The Bootloader team does not have a board similar with your and takes time to order/shipping.
In the mean time i asked them to double check the board schematics to see if there is something particular with that board to enable the boot loader.
The processor itself if mounted on a standard development board XPC56xx EVB motherboard revB works fine. That is why i think it might be just a documentation issue about how to configure that type of board.
Best regards,
Daniel
Hi Daniel,
These days i found some doubt:
1#According to the tip,we should make ABS2 =1 ,FAB =1,and ABS0=0.
and i short J18 to ABS0=0,but ABS2 is not equal to 1,i thought the design of cricuit is not support the function,Whether is it design a pull cricuit in the board?
2# i wanna make sure a doubt that the configure is right or not?
i do not know the TX_Pin and Rx_Pin is right or not?
Hi Dainel,
When i received the board ,there is program in the chip,and i connected the power ,the Motor running.
but i find another question the D114 is not light when i connect the power!
I read the cricuit:
Whether the borad about the power supply has question!