micropython-raspberrypiのクロックアップとキャッシュ有効化(失敗)
とりあえず失敗の記録です。
micropython-raspberrypiのクロックアップとキャッシュ有効化に失敗しました。
以下が変更方法なのですが、間違っている様です。
start.s(38行から)
mrc p15, 0, r0, c1, c0, 0 /// enable unaligned access support orr r0, r0, #0x00400000 /// enable data cache orr r0, r0, #0x00000004 /// enable instruction cache orr r0, r0, #0x00001000 /// enable branch prediction orr r0, r0, #0x00000800 mcr p15, 0, r0, c1, c0, 0
rpi.c(15行から)
static uint32_t freq_cpu = 1000000000; static uint32_t freq_core = 400000000;
変更方法以上↑
mini-uart.cの99〜101行を見るとこれで合っているように思えるのですが...
考えが浅い様です。(悲)