Fun with the P2 ROM :)
Cluso99
Posts: 18,069
Here is a sample program to have some fun with the builtin ROM SD & Monitor routines...
The attached program is for the P2-EVAL board, and below is the output to PST.
Note: This uses the SD Boot code that was designed for RCFAST. As such, it only works with the clock between 15MHz and 35MHz.
Enjoy
The attached program is for the P2-EVAL board, and below is the output to PST.
Note: This uses the SD Boot code that was designed for RCFAST. As such, it only works with the clock between 15MHz and 35MHz.
Enjoy
Fun with P2 ROM v001 File sector(length) 000042C0(00001040) Read sector 000042C0 04000: 5F 3A 64 FD 5F 70 64 FD 96 98 80 FF 1F 00 66 FD '_:d._pd.......f.' 04010: EC FF 9F FD 54 68 65 20 71 75 69 63 6B 20 62 72 '....The quick br' 04020: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04030: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04040: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04050: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04060: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04070: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04080: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04090: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040A0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040B0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040C0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040D0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040E0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040F0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04100: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04110: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04120: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04130: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04140: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04150: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04160: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04170: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04180: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04190: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041A0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041B0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041C0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041D0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041E0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041F0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' Read sector 000042C1 04000: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04010: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04020: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04030: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04040: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04050: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04060: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04070: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04080: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04090: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040A0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040B0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040C0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040D0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 040E0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 040F0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04100: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04110: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04120: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04130: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04140: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04150: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04160: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04170: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 04180: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 04190: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041A0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041B0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041C0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041D0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' 041E0: 6F 77 6E 20 66 6F 78 20 77 61 73 20 68 65 72 65 'own fox was here' 041F0: 21 20 20 20 54 68 65 20 71 75 69 63 6B 20 62 72 '! The quick br' *
Comments
It was necessary to bypass the pullup test routine which was coded for rcfast, or perhaps the routine was no longer present in cog. I haven't checked which.
Automatically detects P2D2 and P2EVAL and runs at 160MHz