You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
Hi, sry I don't want to annoy you to death but I found another issue with the code generation.
/// Port ModulepubconstPORT=struct {
pubconstbase_address=@intToPtr([*]u8, 0x41008000);
pubconstversion="U22102.2.0";
pubconstGROUP=@ptrCast(*volatile [2]packedstruct {
/// Data DirectionDIR: u32,
/// Data Direction ClearDIRCLR: u32,
/// Data Direction SetDIRSET: u32,
/// Data Direction ToggleDIRTGL: u32,
/// Data Output ValueOUT: u32,
/// Data Output Value ClearOUTCLR: u32,
/// Data Output Value SetOUTSET: u32,
/// Data Output Value ToggleOUTTGL: u32,
/// Data Input ValueIN: u32,
/// ControlCTRL: Mmio(32, packedstruct {
/// Input Sampling ModeSAMPLING: u32,
}),
/// Write ConfigurationWRCONFIG: Mmio(32, packedstruct {
/// Pin Mask for Multiple Pin ConfigurationPINMASK: u16,
/// Peripheral Multiplexer EnablePMUXEN: u1,
/// Input EnableINEN: u1,
/// Pull EnablePULLEN: u1,
reserved0: u1,
reserved1: u1,
reserved2: u1,
/// Output Driver Strength SelectionDRVSTR: u1,
reserved3: u1,
/// Peripheral MultiplexingPMUX: u4,
/// Write PMUXWRPMUX: u1,
reserved4: u1,
/// Write PINCFGWRPINCFG: u1,
/// Half-Word SelectHWSEL: u1,
}),
/// Event Input ControlEVCTRL: Mmio(32, packedstruct {
/// PORT Event Pin Identifier 0PID0: u5,
/// PORT Event Action 0EVACT0: u2,
/// PORT Event Input Enable 0PORTEI0: u1,
/// PORT Event Pin Identifier 1PID1: u5,
/// PORT Event Action 1EVACT1: u2,
/// PORT Event Input Enable 1PORTEI1: u1,
/// PORT Event Pin Identifier 2PID2: u5,
/// PORT Event Action 2EVACT2: u2,
/// PORT Event Input Enable 2PORTEI2: u1,
/// PORT Event Pin Identifier 3PID3: u5,
/// PORT Event Action 3EVACT3: u2,
/// PORT Event Input Enable 3PORTEI3: u1,
}),
/// Peripheral MultiplexingPMUX: [16]Mmio(8, packedstruct {
/// Peripheral Multiplexing for Even-Numbered PinPMUXE: u4,
/// Peripheral Multiplexing for Odd-Numbered PinPMUXO: u4,
}),
/// Pin ConfigurationPINCFG: [32]Mmio(8, packedstruct {
/// Peripheral Multiplexer EnablePMUXEN: u1,
/// Input EnableINEN: u1,
/// Pull EnablePULLEN: u1,
reserved0: u1,
reserved1: u1,
reserved2: u1,
/// Output Driver Strength SelectionDRVSTR: u1,
padding0: u1,
}),
padding0: u32,
padding1: u32,
padding2: u32,
padding3: u32,
padding4: u32,
padding5: u32,
padding6: u32,
padding7: u32,
//padding8: u32, <-- wrong//padding9: u32,//padding10: u32,//padding11: u32,//padding12: u32,//padding13: u32,//padding14: u32,//padding15: u32,//padding16: u32,//padding17: u32,//padding18: u32,
}, base_address);
};
The data sheet states that port B is at offset 0x80 from the base address, i.e. after PINCFG we need 0x20 padding bytes but regz has inserted 0x4c bytes in total.
Hi, sry I don't want to annoy you to death but I found another issue with the code generation.
The data sheet states that port B is at offset
0x80
from the base address, i.e. afterPINCFG
we need0x20
padding bytes but regz has inserted0x4c
bytes in total.The register file can be found here.
The text was updated successfully, but these errors were encountered: