Legacy microcontrollers Forum Discussions
I'm using the FM3 MCU MB9BF516N for several PCBs.
I have now some PCBs not working.
It seems that the MCU does not start, because I also get no connection with the Debugger using SWD.
What could be the reason?
In the datasheet I found in chapter 12.4.7 Power-on Reset Timing the following:
Power ramp rate dV/dt (Vcc: 0.2V to 2.7V) Min 0.8 mV/µs, Max: 1000 mV/µs
Is this a condition for proper startup of the MCU?
In other words: If the power Ramp on Vcc is slower than 0.8 mV/µs, could startup of the CPU fail?
Show LessDear sir
I use IC MB95F698K in codding. while i was erasing sector 3 , I found my code was stopped after erased sector address. below my code.
#define SA3 ((unsigned char *) 0x8000)
#define seq_8AAA ((volatile unsigned char *)0x8AAA)
#define seq_8554 ((volatile unsigned char *)0x8554)
void main(void){
LVDPW = 0xC8;
LVDCC_LVDEON = 0;
SYSC_RSTOE = 0;
SYSC_RSTEN = 0;
SYCC = 0xD8; // 4MHz
FSR_SSEN=1; //Swap SA3 2Kbytes top to SA1
erase_sector3(SA3);
/*................ task...........................*/
..........
.....
.....
....
}
int erase_sector3(unsigned char *adr ){
unsigned int flag;
unsigned char data_ee_timeout;
flag=0;
data_ee_timeout = 20;
FSR_WRE = 1; // programming enable
SWRE0 = 0x0F;
*seq_8AAA = 0xAA; // Send erase commands to SA3
*seq_8554 = 0x55;
*seq_8AAA = 0x80;
*seq_8AAA = 0xAA;
*seq_8554 = 0x55;
*adr= 0x30; // Erase !!!
while((flag==0)&&(data_ee_timeout)) // <<<<< Stop this point.
{
WDTC=0x35; //Clear watch dog timer
data_ee_timeout--;
if((*adr & DQ7) == DQ7) // Check Data polling bit
{
flag = 1; // Successfull Erase
}
if((*adr & DQ5) == DQ5) // Check Timeout bit
{
if((*adr & DQ7) == DQ7)
{
flag = 1; // Successfull Erase
}
else flag = 2; // Timeout error during erase
}
}
FSR_WRE = 0;
return(flag)
}
Show Lesshi.
Now I'm writing I2C master program referring to the following.
FM_PDL_2.0.1/example/mfs/i2c/i2c_polling/i2c_master_polling/main.c
To read some data from slave to master, the sample program is using I2c_Read().
And this function is calling Mfs_I2c_ConfigAck() to send ACK or NACK to slave.
But the description of Mfs_I2c_ConfigAck() says "Configure ACK signal sent to master", "This function is only meaningful when I2C is in slave mode". (mfs.c L.3527~)
Can I use Mfs_I2c_ConfigAck() in master program?
Why I ask this, my I2C master program (on FM0+ S6E1C) has stop in Mfs_I2c_GetStatus() loop (main.c L.272~) after reading first byte. So I doubt that NACK has not been transmitted properly.
The 1 byte looks like correct, but can't read any more.
thanks.
Show LessHi ,
Where can I download basic reference circuit for MB95636K ?
Hi, I see on FM3 32-bit family a reference to wizard pin & code configurator but no FM3 chip is supported.
Could You send me correct link/version?
Thanks
Show LessHi,
I want create a loader for 91F469G mcu, this loader I want write to I/D_RAM memory area (for example from 0x00030000 address) using internal bootloader commands (write, call, ..).
I am using Softune V6. What linker settings should be for this project?
Show LessHello, I am continuing my work with S6E2CC and now I tried to use CSIO from PDL 2.1.0. I wanted to communicate with my other board via SPI with S6E2CC as master at no avail-it failed to read or send. I measured with scope that clock is alive but I cannot see MOSI signal. I used csio polling example but there was no result. I upload my project below. I guess I fail to initialise something but I have no clue-maybe someone has experienced something like this?
Show LessIs the MB88121C/CY88121C FlexRay controller available? Is this an active and recommended product? Which is the correct P/N? Where the related documentation can be found on the Cypress website?
Show LessI am using softune IDE for sw compilation and editing.When I tried to download code into MB96F348 controller it I showing error that " Boot ROM " file not found.
Show LessDear sir
I am newbie in bootloader. I use mcu MB95F698K. I am trying to use Interrupt Vector Table in both bootloader and application but seem like it can't. Do you have any solution to use it in both bootloader and application ?
Thank sir
Show Less