Renesas M32C
The Renesas M32C is a family of 16-bit microcontrollers (MCUs) known for their high performance and compact size, built using CMOS technology with the M32C/80 series CPU core. They are commonly used in applications like audio, cameras, office equipment, communication devices, and portable equipment. Key features include a 16-Mbyte address space, advanced instruction manipulation for efficient code execution, and integrated peripherals like multipliers and DMACs for high-speed processing.
- Core Architecture:
The M32C utilizes the M32C/80 series CPU core, which is designed for efficient processing of complex instructions with fewer bytes, resulting in faster execution speeds.
- Memory:
The M32C family offers a 16-Mbyte address space, providing ample room for program code and data storage.
- Peripherals:
These MCUs often include integrated peripherals like multipliers and DMACs (Direct Memory Access Controllers) for handling tasks like multiplication and data transfer, making them suitable for high-speed processing applications.
- Applications:
The M32C family is versatile and can be found in a variety of applications including audio equipment, cameras, office automation, communication devices, and portable devices.
- Package Options:
The M32C/80 Group is available in 100-pin plastic molded LQFP/QFP packages. The M32C/8A Group is available in 144-pin and 100-pin plastic molded LQFP packages.
Flash Banks
Depending on the device, there are different numbers of flashbanks available. The available flashbanks can be observed in U-Flash after selecting the CPU under the "Device info" tab.
When loading the programming data, U-Flash checks whether flashbanks are available for the specified address ranges. If data is outside the available flashbanks, an error message is displayed.
Connection
The CPU's built-in flash loader is used for programming. A synchronous and an asynchronous interface are available. The synchronous interface enables significantly faster programming cycles than the asynchronous interface. Depending on the adapter used, the Busy pin must be selected accordingly in the setup.
With the asynchronous interface, the best fitting baud rate is determined based on oscillator deviations around the specified baud rate.
Here are the two corresponding wirings for the two available modes:
Password
M16C can be password protected. If a password is activated, the flashloader does not allow any access to the system memory.
The default password is 7 times 0xFF. Any password must be entered in HEX.
If you do not know the password, ALeRASE in HEX can be entered as password (see blue box). Please keep in mind that the device is completely erased! An ALeRASE is only possible directly after an POWER_ON cycle.
- A chip that was ALeRASED always starts UNLOCKED! till an ID Code is set and a POWER_ON Reset is executed
- An ALeRASE ONLY works after an POWER_ON Reset! (On an R5F364AMNFB it takes approx. 1.5s)
- A locked device can be unlocked with Password after POWER_ON Reset. (You have only up to 3 retries after POWER_ON)
Troubleshooting
In case of trouble please increase the "Verbosity level" to get more information about what is going wrong. You find this entry in U_Flash under "Configure project" "Analysis".
Type #AUTO or #START in the U-Flash console window and note the messages. Wiring errors, selecting the wrong Busypin and password are often the cause of login problems.
The last flash page contains the password. If the last page is flashed, the password may be changed based on the content of the data file. It becomes active after the next Power On reset.