Legacy microcontrollers Forum Discussions
HI, I'm trying to write (program) the workflash in the chip MB9DF566. The code is as follows:
IDE: IAR for ARM
#define WFCFG_UNLOCK_CODE 0xCF6DF1A5
#define WFCFG00_MA1_BASE (0x0E000000) // Base Addr of the workflash
#define WFCFG00_UNLOCK \
{ \
WFCFG00_CPR = WFCFG_UNLOCK_CODE; \
}
void Init_WorkFlash00(void)
{
// Program enable
//WFCFG00_UNLOCK;
//WFCFG00_CR_WE = 1;
// Flash wait control
WFCFG00_UNLOCK;
WFCFG00_CR_FAWC = 2;
// Enable ECC
WFCFG00_UNLOCK;
WFCFG00_ECR_ECCOFF = 0;
// Disable DMA
WFCFG00_WCR_DMAEN = 0;
// Disable the generation of hang interrupt requests
WFCFG00_ICR_HANGIE = 0;
// Disable generation of ready interrupt requests
WFCFG00_ICR_RDYIE = 0;
// Clear interrupts
WFCFG00_ICR_HANGIC = 1;
WFCFG00_ICR_RDYIC = 1;
// Software reset
WFCFG00_UNLOCK;
WFCFG00_CR_SWFRST = 1;
}
void WorkFlash00Write(uint32_t Addr_Offset, uint32_t Data)
{
uint32_t *pDes = ((uint32_t *)WFCFG00_MA1_BASE) + Addr_Offset;
// Program enable
WFCFG00_UNLOCK;
WFCFG00_CR_WE = 1;
while(0 != WFCFG00_WSR_ST);
*pDes = Data;
while(1 != WFCFG00_SR_RDY);
// Program disable
WFCFG00_UNLOCK;
WFCFG00_CR_WE = 0;
}
When the code steps over the line:
*pDes = Data;
the regester WFCFG00_BERR_ACCIGN = 1, which means a command overrun, and the write operation fails.
Then when steps over the next line, the IAR show me a dialog "Warning: Stopped at unknown breakpoint".
Please help me to find the right way to write the workflash. Maybe directly access the workflash by point is not right, but I couldn't find a register which could access the workfalsh area.
Show LessI am developing some products with FM4 micro controller.
Is it possible to download software into FM4 mc (MB9BF564KQN / 48pin) with "SK-FM3-48PMC-USBSTICK" via USB from windows PC ?
(using OpenOCD, etc)
If not possible, are there any products suitable for FM4 mc instead of "SK-FM3-48PMC-USBSTICK" ?
I hope anyone to help me.
Thanks.
Show LessHi,I want to design an offline programmer for MB9AF116N.
Write the HEX file to Flash using the SWD protocol. Like Jlink,
does anyone know the programming principle of Jlink?
thks
Show LessPlease tell Overshoot and Undershoot Specification for MB9BF116R.
Especially, about the below pins
-Address Pin
-Data Pin
-GPIO Pin
Best Regards,
Inoue
Show LessHi,
At first, 16-bit data is transfered from 16-bit transmit data buffer on the RAM to TDR by using DMAC. Transfer width is 16-bit.
Next, 8-bit data is transfered from 8-bit transmit data buffer on the RAM to TDR by uing DMAC. Transfer width is 8-bit.
In this case, what values are in 8-bit high register(especially, D8)?
The customer assumes three answers.
a)0
b)Indefinite value
c)datas written at first.
d)others
Best Regards,
Inoue
Show LessThe customer use DMAC transfer for UART.
Can DMACB Transfer width be used both 16bit and 8bit for transfering from transmit data buffer on the RAM to TDR?
Example use case
1)8bit data
Use 8bit DMACB for transfering from 8-bit transmit data buffer on the RAM to TDR.
2)Operation Mode 1 (Asynchronous Multiprocessor Mode)
Use 16bit DMACB for transfering from 16-bit transmit data buffer on the RAM to TDR.
Best Regards,
Inoue
I have a question about the different types of the MB91F362 automotive microcontroller,
We have been using this microcontroller in the 208-pin QFP package for several years.
The following types are listed in the last PCN for changing the part number from MB to CY.
MB91F362GAPFVS-GK5E1 | CY91F362GAPVSR-GE1 |
MB91F362GAPVSR-GK5E1 | CY91F362GAPVSR-GE1 |
MB91F362GBPFVS-GK5E1 | CY91F362GBPVSR-GE1 |
MB91F362GBPVSR-GK5E1 | CY91F362GBPVSR-GE1 |
MB91F362GBPVSR-GK5E2 | CY91F362GBPVSR-GE2 |
What are the differences between these different types?
Only model MB91F362GBPFVS is listed in the data sheet as 208-pin QFP type.
The FR50 microcontroller family is also not listed on the homepage.
Is an EOL planned for these components?
Show LessDear tech-support team, I need to program/debug a MB91F522KWC target. I already got the MB2100-01A-E Speed-Box debugger with installed USB drivers and the Softune IDE V07L01 installed. Unfortunately the mentioned software crashes and quits if I select the "start debug" option (I configure it already). Can you provide a newer more stable version or can you suggest any other suitable IDE/Debug probe? Thanks in advance for your kind help! Chris
Show LessHello Community,
there is an issue with the MCAL package R403_Traveo_V2.14.00_SRC_20171215 running on Traveo S6J342AFT with a Vector ASR4 stack:
Oscillator runs on 16MHz
ClockDomain0 selected as MCU_SOURCE_CLOCK_MAIN
McuCpu0ClockSettings set to 16000000
McuLcpClockSettings set to 16000000
Therefore we expect OS Timer and Can Clock running on 16000000 and indeed we recognize cyclical messages, but not the timely distance as expected.
For OS configuration we selected high resolution timer and 0.0000000625 seconds per tick that should result in 16MHz.
Maybe there is an problem with the Mcu configuration?
Show LessI am writing device drivers for GPT12 module for TC275T controller.
I tried to write by referring user manual, but still while modifying T3CON register, the controller is going to bus error loop. Also I cleared ENDINIT with password during T3CON modification, still its unable to write anything on that register. I have no idea what to do now.
I am new to Infineon. Anybody has working driver for it?
Thanks
Partha Sarathi Mishra Show Less