Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ROM monitor for m30624fgpfp controller

Status
Not open for further replies.

lince

Newbie level 4
Newbie level 4
Joined
Nov 2, 2005
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,357
Hi all,
I've been working with the M16c62A controller, but now renesas recommend me to change to the m16c62p version and is supposed that no changes in the pinout is needed.
I've been able to use flashsta for downloading but when I try to run KD30 it hangs.
Does someone has the rom monitor for the m30624fgpfp controller?.

Any recomendation?

Thanks in advance
 

renesas migration 62a 62p

Hi lince

I could help your with a monitor which suits, but are your sure the interrupts are on the right address in sec30.inc?

.lword 0FF900h ; uart1 trance (for user)
.lword 0FF900h ; uart1 receive (for user)


Gomez
 

m16c/62p

Hi Gomez,
Yes, the uart1 interrupt are configured in this way.
The problem is that I'm not able to run the program with the Kd30 or excute it step by step, it hangs. I cannot execute the first instruction step by step in the ncrt0.a30 file prior the sect30.inc file is allocated.

I see with the oscilloscope that the micro and the pc interchange information when I press the reset button in the KD30 software.

Thank you for your help. If you have more comments please let me know. I appreciate them.
 

.lword 0ff900h

Hi lince

that's a monitor for my m30624fgafp and should work with your m30624fgpfp too.
The monitor runs fine with KD30.4

Let me know when you have more problems.


Gomez
 

m16c62p

I've forgotten. You can build your own monitor.
**broken link removed**

Gomez
 

m16c62p monitor program

Hi Gomez, thank you for the file, I've donwloaded it with the flashsta and same result as with mine.
This microcontroller is a brand new one, Is trange I'll try to check if all the signals are right in the controller. But I'm a bit lost with this problem and I have no other controller for change and test.

Do you speak spanish ?.

Thnaks a lot for your support. Have you experience with the migration from A version to the P version?. Do you know if any hardware change must be implemented?.

Regards.
 

m16c62p kd30

Have you tried to compile your own monitor???

I've seen in the monitor source "com_all_M16C.bat"

------------------------------------------------------------------------
cls
REM Generate one monitor for test purpose
REM call com_processor_M16C %1 %2 %3 %4 %5 %6 %7 %8 %9

ECHO OFF
REM Parameters:
REM %1: processor name, used only in the file name
REM %2: processor type
REM 1 - 62/62A
REM 2 - 6N0/6NA
REM 3 - 62N
REM 4 - 62P, 6N4/6N5
REM 5 - 62P TS, 6N4/6N5 TS
REM 6 - 26, 1N
REM %3: RAM size in KB
REM %4: Monitor size in KB
REM %5: Flash memory size in KB
REM %6: UART used for communication
REM %7: Switch divider for peripheral clock off (only M16C/6N)
REM 0 - f(Xin)/2
REM 2 - f(Xin)/1
REM %8: Multiplier for PLL circuit. Only available with M16C/62P and M16C/6N4/6N5.
REM If PLL is not used this parameter must be set to 1.
REM %9: optional addition to indicate processors running with f(Xin) as SIO clock,
--------------------------------------------------------------------------

the 62P seems to be an other flash type (HND2-type)

-----------------mon_m16c.a30---------------------------
;Processor FLASH_TYPE RAM MON_SIZE FLASH_SIZE
;M30624FGFP 1 20 16 256
;M30624FGAFP 1 20 16 256
;M30624FGMFP 1 20 16 256
;M30624FGNFP 3 20 8 256
;M30624FGPFP 4 20 8 256
------------------------------------------------------------

Have your also tried the new KD30. It does flash the monitor automatically in the M16C when no monitor is inside.

Sorry I don't speak spanish
Maybe the next challenge when I've learnt english right ;-()

Gomez
 

interrupt für kd30

Hi Gomez,

I've recompiled the monitor also and same result. I've erased also the microcontroller flash after that I've tried the KD30 but it this situation always give me communication error, no monitor is loaded into the chip (I've tried to change the CNVss pin to Vcc and GND in several positions).

Thank you very much.
Your english is perfect for me.... But for you name I supposed you were spanish.

I send you the init files for my program, can you tell me if you observed something wrong.

Kindest regards
 

kd-30

Hi lince

sorry I was some days away.
That sounds not good what you wrote.

Your files look ok for me. But are you sure your code starts at 0xD0000 or the expansion bit is set (PM13=1)?

Has you tried to set:

;---------------------------------------------------------------
; Far ROM data area
;---------------------------------------------------------------
.section rom_FE,ROMDATA
.org 0D0000H


Maybe the KD30 cant't find your code because the sector from 0xC0000 to 0xD0000 isn't free at start yet. Look at your .x30 file with the Map-Viewer. Which code is in this area (main??)? Where is your interrupt section?

Gomez
 

renesas m30624fgfp

Thank you Gomez, I'll take a look at this and will keep you informed.

Kindest regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top