Legacy microcontrollers Forum Discussions
What is the difference between the errors in Softune:
Invalid communication status( or cable connection). "(11)"
and
Invalid communication status( or cable connection). "(17)"
Thanks
Show LessI am try reading data status register from flash W25N01GVZEIG TR, logic analyzer show that all ok
but i am getting 0xFF. Receive works in interupt mode, code: https://godbolt.org/z/MbGacj
What i am doing wrong. Show Less
To all,
I have place a Windows PC terminal source code in C# on the Code sharing forum.
PC Terminal Program with C# Source Code
Enjoy,
Len
Show LessI am browsing the market of secure elements, looking at candidates offered by ST, Microchip, etc. After looking at Trust-M github section it seems to me that all information required for a new design, how to set up a custom CA and to how to customiz Trust-M chips for use in our application environment is available. So I can just buy some chips from a distributor - without any need to sign an NDA with Infineon. Can you confirm?
Thx, Kersten Show Less
Hello,
In the MB9B410T Series datasheet (Document Number: 002-04689 Rev. *E), page 91, concerning CSIO,
Baud rate = 8 Mbps max
Serial clock cycle time = 4tCYCP min
where "tCYCP indicates the APB bus clock cycle time"
If we consider that tCYCP min = 13.8 ns = 1/72 MHz that makes a maximum of 72/4 =18 Mbps ?
So why is the maximum specified baud rate 8 Mbps ?
Thanks in advance for your response
Gilles Carré
dipl. ing. eln.
Show LessI'm trying to configure the PWM using the IAR example for S6J3200, but i don't understand what are they meaning by duty and cycle when setting the duty cycle.
Here the example code:
int main(void) {
int tmr;
// Finalize initialization to default settings.
// (this will do IRQ and NMI initialization and global IRQ/NMI enable)
Start_Init();
/* PWM - configuration */
stc_pwm_config_t stcPwmConfig = { .enPrescaler = PwmDiv1, /* Clock further divided by 1 */
.bRestartEnable = TRUE, /* Enable restart */
.bPulseOutputMaskEnable = FALSE, /* normal polarity */
.enTriggerInputEdgeSelection = PwmSoftwareOnly, /* Trigger with Software */
.bOutputPolarityInverse = FALSE, /* normal polarity */
.bOneShotOperation = FALSE, /* run cyclic */
.pfnTriggerCallback = &PWMTriggerCallback, /* use callback for interrupt */
.pfnDutyMatchCallback = &PWMDutyMatchCallback, /* use callback for interrupt */
.pfnUnderflowCallback = &PWMUnderflowCallback}; /* use callback for interrupt */
/* PWM - cycle configuration */
stc_pwm_cycle_config_t stcPwmCycleConfig = { .u16Cycle = 0xEA60, /* PWM Cycle 60MHz-1ms cycle */
.u16Duty = 0x7530, /* PWM Duty 60MHz-1ms cycle*/
.u16StartDelay = 0x0000, /* Start Delay Value */
.u16AdcTriggerValue = 0x0000}; /* ADC Trigger Value */
/* PORT - port pin configuration */
stc_port_pin_config_t stc_port_pin_config = { .enOutputFunction = PortOutputResourceG,
.enOutputDrive = PortOutputDriveA,
.enPullResistor = PortPullResistorNone,
.enInputLevel = PortInputLevelCmosA,
.bInputEnable = FALSE,
.bNoiseFilterEnable = TRUE,
.enGpioDirection = PortGpioOutput,
.enGpioInitOutputLevel = PortGpioLow};
/* Configure the single port */
Port_SetPinConfig(6, 0, &stc_port_pin_config);
/* Init Timer with above configuration */
Bt_Pwm_Init ((stc_btn_pwm_t*)&BT00_PWM, &stcPwmConfig);
/* Start PWM by software trigger */
Bt_Pwm_Start ((stc_btn_pwm_t*)&BT00_PWM, &stcPwmCycleConfig, TRUE);
// Endless main loop
for (;;)
{
/* Get timer data */
tmr = BT00_PWM_TMR;
// Clear hardware watchdog
ClearWatchdog();
}
}
Using IAR Workbench v8.50.1
Show LessFor one of the old project, we are using an SAA-XC886CLM controller and the code is generated using DAvE 2.2.
The controller has 2 CAN nodes (node0,node1) and there is a Gateway source object and a destination object on either side.
I want to change this configuration to have 1 gateway source object and multiple destination objects. For e.g: MO0 is a gateway source in node0 and MO1,2 are destination objects in node1.
I read in the infenion documents that this is possible by using the BOT,TOP pointers in the configruation and making MO1,2 as transmission FIFO base/slave objects.
However, in DAvE 2.2, as soon as i configure the MO0 as Gateway source object and give BOT and TOP as MO1,2 resp.; I cannot configure MO1,2 as transmission FIFO objects, those fields are blacked out.
Thus, the generated code doesn't work properly as well.
In DAvE 4 however, I see that MOs can be configured as Transmission FIFO objects after they have been set as Gateway destination object.
Is it the case that the config. I need (Gateways with FIFO) cannot be done in DAvE 2.2? If it is possible, how can it be done?
It would be great if someone could give some input in this!
Best regards,
Vishak Nathan Show Less
Hi
I need to save calibration parameters and since the MCU does not have EEPROM, I need to use flash to save them.
I am experiencing serious issues with the mainflash routines in PDL2.1.
- The MFlash_SectorErase function erases the sector, but he MCU "hangs" and need a reset to work again. This is a big issue as you need to clear the sector before you can write again to that area.
- the MFlash_WriteData32Bit function writes one 32bit word and "hang" the MCU, requiring a reset.
- The MFlash_WriteData16Bit works only if you write one 16bit halfword. If you try to write more than one halfword, the MCU "hang" end require a reset.
- The MFlash_WriteData16Bit routine requires a 16bit address, which means you cannot write to an address above 64K on the 88K and 128K MCU's
Not related to the PDL, I cannot seem to find the sector size in any of the documentation.
I managed to get 3) to work with multiple writes by changing the PDL routine, but it writes at word boundaries, not halfword boundaries.
I have lost a lot of development time tracking down some of the issues and is really disappointed that the provided library functions does not work as advertised.
Any assistance to get this resolved will be appreciated.
Best regards
Chris
Show LessI am building a controller around S6E2GM6J0AGV2000A. I came across documentations that showed that it can be programmed using USB and RS232 protocols. Is debugging possible when programming using these protocols? Can JTAG protocol be used for programming and debugging? If yes, then is there any Cypress programmer available for the same?
P.S. - I am fairly new to controller design
Show LessHi,
We are considering low power applications.
We have confirmed for "32 Bit Microcontoroller FM0+ Family Peripheral Manual"
The frequency division (1 to 16) exists in the P.44 Figure 2-1 block diagram below.
/*
32 Bit Microcontoroller FM0+ Family Peripheral Manual URL
https://www.cypress.com/file/223051/download
*/
Assuming this block diagram, will the ARM Cortex-M0+ operate at 500kHz, which is a division of 8MHz into 16?
If it works at 500kHz, Do you know the current consumption at the set clock?
Regards,
Show Less